Show HN: 利用 Issues 实现 GitHub 原生预测市场(无需数据库)
1 分•作者: _1tan•8 个月前
我搭建了一个完全基于 GitHub Issues 的小型预测市场——无需外部数据库。每个市场都是关于代码库工作的具体问题,例如“Issue #123 是否会在 2025 年 11 月 15 日之前关闭?” 协作人员购买 YES/NO 份额来表达他们的看法,价格(0 - 1)反映了团队的集体预测。这有助于规划、优先级排序,并使预期透明化——无需真金白银。<p>幕后技术:嵌入在 issues 中的签名 JSON 快照(市场和账本),LMSR 定价,基于序列号的乐观并发,并带有重试机制,仅限协作人员交易。<p>我还没有为代码库部署公共实例——计划在整合初步反馈后进行。代码库:
<a href="https://github.com/philippnagel/gantt" rel="nofollow">https://github.com/philippnagel/gantt</a><p>我非常希望收到关于治理方面的反馈(每个用户的上限、利益冲突),哪些问题最有用(截止日期、PR 合并、发布),以及评论驱动交易的 UX。
查看原文
I built a tiny prediction market that lives entirely in GitHub Issues—no external database. Each market is a concrete question about repo work, e.g., “Will Issue #123 be closed by 2025-11-15?” Collaborators buy YES/NO shares to express beliefs, and the price (0 - 1) reflects the team’s collective forecast. This helps with planning, prioritization, and making expectations transparent - without real money.<p>Under the hood: signed JSON snapshots (market and ledger) embedded in issues, LMSR pricing, seq-based optimistic concurrency with retries, and collaborator-only trading.<p>I haven’t deployed a public instance yet for the repo - planning to do so after incorporating initial feedback. Repo:
<a href="https://github.com/philippnagel/gantt" rel="nofollow">https://github.com/philippnagel/gantt</a><p>I’d love feedback on governance (caps per user, conflicts of interest), which questions are most useful (deadlines, PR merges, releases), and the UX of comment-driven trading.