DEV Community

Cover image for PIRBGEN
Mersau1t
Mersau1t

Posted on

PIRBGEN

Trading Web3 Simulator

What is Pirbgen?

Pirbgen isn't your standard trading dashboard. It’s an interactive sandbox that gamifies trading mechanics and demonstrates exactly why sub-second price updates matter in Web3. You face off against a trading Pirb, where your fate is dictated by onchain randomness.

Instead of one single core loop, Pirbgen offers a variety of distinct modes depending on the level of chaos you are looking for.

Choose Your Chaos: The Game Modes

Pirbgen features several different ways to play, each utilizing Pyth infrastructure in unique ways:

Solo Mode: The Pure RNG Challenge

If you want to test your luck against the blockchain, Solo Mode strips away complex charts and leaves you with pure, adrenaline-fueled RNG.

When you start a run, the game utilizes Pyth Entropy or classic to generate a completely random, cryptographically fair trading setup.

The Asset: Which of the supported Pyth Hermes price feeds you will trade.

The Direction: Long or Short.

The Leverage: Randomly assigned multipliers.

The Limits: Randomly placed Stop Loss and Take Profit levels.
Once you are strapped into the position, you watch the chaos unfold live as the hyper-fast Pyth oracles update your PnL in real-time.

1v1 Duel Mode

Prefer to ruin your friend's day? Duel Mode is a fast-paced 1v1 arena where two players face off in a strict 60-second time limit. Both players are subjected to randomized starting positions, and the goal is simply to finish the minute with a higher PnL than your opponent.

Abilities: ( TEST MODE )

This is a special ruleset for duels that introduces tactical "abilities," turning an abstract technical concept—oracle latency—into an interactive weapon.

If your opponent is winning, you can cast a debuff that temporarily switches their price feed API from Pyth to slower competitor oracles (like Chainlink or RedStone). Because these alternative oracles have slower update frequencies, your opponent's price chart literally "freezes." They are stuck with stale prices while you continue trading at the speed of light with Pyth.

To survive, the debuffed player must actively "cleanse" themselves by reverting their API back to the Pyth network. You can also use abilities to flip the direction of positions mid-match. And disappoint opponent with pirb rage.

Gainzy Mode

For the true degens. This mode throws all logic out the window, locking your leverage at an insane 200x

PythOIL 24/7

Flying Pyth barrel on main screen , gives you opportunity to trade only with $PYTHOIL

The Benchmark Tab: Proving the Point

Alongside the playable game modes, Pirbgen has a serious underlying purpose. The project includes a dedicated Benchmark Tab.

This isn't a game mode; it's a live, practical demonstration. The tab directly compares the real-time update speeds of oracles: Pyth, Chainlink, and RedStone.

By visualizing the data side-by-side, the Benchmark tab clearly shows speed of price updates. It takes the abstract concept of "oracle latency" and makes it instantly understandable.

Under the Hood

Pirbgen was built from the ground up to showcase what solo developers can achieve with modern tools:

Real-Time Prices: The game integrates Pyth Hermes price feeds.

Provable Fairness: Pyth Entropy guarantees secure, on-chain randomness for generating all the crazy starting positions with keccak256 logic for rerolls

The Tech Stack: SPA + BaaS

Instead of writing a custom Node.js/Express backend, I opted for a modern, serverless-friendly stack:

Frontend: React (Vite) + TypeScript
Styling & UI: Tailwind CSS (v3), Radix UI (shadcn), Framer Motion (for buttery smooth animations)
Physics: Matter.js and Poly-decomp (for those falling 2D particles)
Web3: wagmi, viem, and @rainbow-me/rainbowkit for seamless EVM wallet connections.
Backend & DB: Supabase (PostgreSQL, Auth, Edge Functions)

Conclusion

You will be PIRBED

Links

Live: https://pirbgen.vercel.app/
X: https://x.com/StanovAndrew
Pyth Network: https://www.pyth.network/
Built for Pyth Community Hackathon 2026: https://dev-forum.pyth.network/t/pyth-community-hackathon/548

Top comments (0)