LongShot
March 1, 2026
Using Claude Code and Cursor, I developed a paper prediction market called LongShot. The project aims to bring the fun of prediction markets to small communities such as a group of friends. Users can create markets on any topic, buy and sell shares based on their predictions, and track the market’s performance over time.

The app uses a Constant Product Market Maker (CPMM) to determine share prices and ensure liquidity.
The MVP was architected, designed, built, and deployed within an hour. I refined it multiple times afterwards using my background in full stack development.
This project was both an exploration of AI-assisted development tools as well as a demonstration of system design principles. Some examples of decisions I had to make included:
- Including a price graph for each market and the design of the graph
- How to query DB for dashboard performance (previously 100+ queries per dashboard load, now 5 query per dashboard load)
- Decision to not poll DB on main pages and only poll when buying/selling shares
- Stale quote detection
- Atomic balance updates
- Almost all frontend design decisions
You can visit the live app here.