DEV Community

droober
droober

Posted on

I built Coindle — a daily crypto guessing game powered by Pyth Network price feeds

Hey everyone! I built Coindle for the Pyth Playground Community Hackathon. It's a daily cryptocurrency guessing game, pretty much think Wordle but for the silly internet coins.

Coindle uses 4 distinct Pyth integration points:

Live Price Display — Real-time prices via Pyth Hermes API, polling every 30 seconds with a green pulse indicator

24h Price Change — Calculated using Pyth historical timestamp endpoint to show percentage change

Price Tier Game Logic — Prices mapped to 10 logarithmic tiers for the guessing mechanic (cached server-side)

90-Day Sparkline Charts — Historical price data sampled every 3 days from Pyth, rendered as SVG sparklines in easy mode

All 141 coins have verified Pyth Hermes feed IDs. The price data is what actually drives the gameplay — without accurate oracle data, the price range category wouldn't work.

How it works

Every day at midnight UTC, a new mystery coin is selected from a pool of 141 cryptocurrencies. You get 6 guesses to figure out which coin it is. Each guess reveals clues across 6 categories:

Type — L1, L2, DeFi, Oracle, etc.

Logo Color — Primary color of the coin's logo

Launch Year — When the coin launched

Ticker Length — Length of the ticker symbol

Price Range — Current price tier (powered by live Pyth feeds)

FDV Range — Fully diluted valuation bucket

Each category shows green (exact match), yellow (close/adjacent), or red (wrong) — plus directional arrows for numeric categories so you know whether to guess higher or lower.

Features

Two difficulties — Easy mode (3 hints + sparkline chart) and Hard mode (no hints, just raw knowledge)

Daily mode with stats tracking, win streaks, and share-able emoji grids

Free play mode for unlimited practice

Discord bot — /coindle slash commands so you can play in your server

Farcaster mini app — playable directly inside Warpcast

Mobile responsive — works great on phone

Dark/light theme — charcoal/navy dark mode, beige/green light mode

Tech Stack

Next.js 16 (App Router) + TypeScript + Tailwind CSS 4

Pyth Hermes API for all price data

Vercel deployment

Discord.js bot on Railway

Links

Play: https://coindle.xyz

Source: https://github.com/droo4you/coindle

Discord Bot: https://discord.com/oauth2/authorize?client_id=1485813922580926515&permissions=2048&scope=bot%20applications.commands

Farcaster: Coindle mini app on Warpcast

License: Apache 2.0

Would love feedback! What coins should I add to the pool? Any category ideas? I could also maybe include equities since this is all powered by Pyths Price Feeds.

Top comments (0)