The first platform where AI generates games in 60 seconds, players earn real tokens, and communities thrive on-chain
๐ฏ Live Demo โข ๐ Documentation โข ๐ฅ Video Demo โข ๐ Pitch Deck โข ๐ Hedera Hack Track 3
- Project Description
- System Architecture
- Hedera Integration Summary
- Deployed Hedera IDs
- Judge Setup (< 10 minutes)
- Quick Start
- Running Environment
- Security & Secrets
- Code Quality & Auditability
- Links
The $200B+ gaming industry faces critical challenges:
- ๐ฎ High Barrier to Entry: Game development requires months of work and specialized skills
- ๐ฐ No Real Ownership: Players spend billions on in-game assets they don't truly own
- ๐ Centralized Tournaments: Prize pools controlled by platforms, not communities
- ๐ค Isolated Communities: No cross-game social features or unified identity
- โก Slow Rewards: Traditional play-to-earn models are clunky with high gas fees
- ๐จ Limited Creativity: No tools for instant game creation and experimentation
We're building the world's first AI-powered gaming operating system that combines instant game generation, play-to-earn mechanics, esports infrastructure, and social featuresโall powered by Hedera.
We aim to create an immersive, impartial and inclusive ecosystem for web3 gamers worldwide.
Millions of gamers across Africa face high mobile data costs, limited access to fair esports infrastructure, and prohibitively high blockchain fees that make micro-rewards impossible. Centralized leaderboards and prize management erode trust, while cross-game identity and asset ownership remain siloed.
- Ultra-low fees enable true micro-rewards for every action (login, score, achievement).
- Immutable leaderboards via HCS guarantee fair ordering and tamper-proof results.
- HTS-native tokens/NFTs provide real ownership of profiles, assets, and achievements.
- Smart contract marketplace & prize escrow automate trustless payouts.
- Mirror Node reads keep analytics fast and essentially free.
- HTS: 1 FT (REALM) + 3 NFT collections (Profile, Game Assets, Achievements).
- HCS: 3 topics (Scores, Game Events, Tournaments) with real-time UI subscriptions.
- HSCS: Marketplace, Escrow, Guild Treasury contracts for atomic swaps and payouts.
- HFS: Store generated game HTML and NFT metadata with verifiable file IDs.
- Mirror Node: REST queries for history, balances, and topic messages.
- Hedera Agent Kit: Orchestrates on-chain actions from AI agents.
Track 3: Gaming & NFTs
From text prompt to playable game in 60 seconds with AI-powered game generation.( built on top of Hedera Agent Kit)
- Natural Language Input: "Create a space shooter with power-ups" โ Instant game
- 9 Game Templates: Shooter, Platformer, Puzzle, Racing, Idle, Card, Arcade, Strategy, Board
- Phaser.js Engine: Production-ready games with physics, collisions, and scoring
- GPT-4 Powered: Intelligent prompt parsing and game specification generation built on the stack of Hedera Agent Kit.
- Instant Preview: Play immediately in browser or download as HTML
- NFT Minting: Convert generated games into tradeable NFTs
Try it: /create-game โ Type your idea โ Play in 60 seconds
Professional games with blockchain integration
| Game | Type | Rewards | Features |
|---|---|---|---|
| โ๏ธ Chess | Strategy | 1-20 REALM | Stockfish AI, multiplayer, ELO ranking |
| ๐ข Sudoku | Puzzle | 1-20 REALM | Multiple difficulties, hints, timer |
| ๐งฑ Tetris | Arcade | 1-20 REALM | Classic gameplay, high scores, combos |
| ๐ Wordle | Word | 1-20 REALM | Daily challenges, streak bonuses |
| ๐ค Crypto Crossword | Puzzle | 1-20 REALM | Blockchain-themed, collaborative |
| ๐ Snake & Ladder | Board | 1-20 REALM | Multiplayer, tournaments |
All games: Instant score submission to HCS, automatic REALM rewards, leaderboard tracking
Every action earns real value
- Micro-transactions: ~$0.0001 per transaction (99.9% cheaper than Ethereum)
- Instant Rewards: 3-5 second finality, no waiting
- Multiple Earning Streams:
- ๐ฏ High scores: 50-500 REALM
- ๐ Tournament wins: Prize pool + Trophy NFT
- ๐บ Watch streams: 0.1 REALM/min (max 2hrs)
- ๐ Daily login: 10 REALM + streak bonus
- ๐ฅ Referrals: 200 REALM per friend
- ๐๏ธ Achievements: 100 REALM + NFT badge
Economics: REALM token backed by platform fees, sustainable tokenomics
Professional tournaments with automated prize distribution
- 5 Tournament Formats: Single/Double Elimination, Round Robin, Swiss, Battle Royale
- Automated Brackets: AI-generated with ELO-based seeding
- Live Streaming: Livepeer integration with watch-to-earn
- Prize Escrow: Smart contract-managed prize pools
- Instant Distribution: Automated HBAR/REALM payouts via HTS
- NFT Trophies: Top 3 receive achievement NFTs
- HCS Recording: Immutable tournament results on-chain
Prize Structure: 50% 1st, 30% 2nd, 20% 3rd + NFT trophies
Trade game assets, achievements, and AI-generated games
- 3 NFT Collections: Profile NFTs, Game Assets, Achievement Badges
- HTS Native: Built on Hedera Token Service for speed and low cost
- Dual Listing: Fixed price or auction
- Multi-currency: HBAR or REALM tokens
- Smart Royalties: 5% creator royalties on secondary sales
- Platform Fee: 2.5% (sustainable revenue model)
- Atomic Swaps: Trustless NFT + payment exchange via smart contracts
Live: /marketplace โ Browse 20+ NFTs
Build communities, compete with friends, join guilds
- Guild System: Create/join guilds with treasury, tournaments, and chat
- Friend Network: Add friends, track status, send challenges
- Co-op Challenges: Team-based missions with shared rewards
- Direct Messaging: Private conversations
- Activity Feed: Track friends' achievements and high scores
- ELO Rankings: 9 rating tiers from Beginner (800) to Legendary (2800+)
Guilds: treasury, proposal-based governance, contribution tracking
HCS-powered immutable rankings
- Global Leaderboards: Cross-game rankings
- Game-Specific: Per-game high scores
- Seasonal: Monthly/quarterly competitions
- Live Updates: Real-time score streaming via HCS
- Tamper-Proof: All scores verified on Hedera Consensus Service
- Historical Data: Complete score history and trends
Powered by: Hedera Consensus Service (HCS) for immutable records
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ APPLICATION LAYER โ
โ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โ โ Next.js โ โ AI Game โ โ 7 Built-in โ โ Social โ โ
โ โ Frontend โ โ Generator โ โ Games โ โ Features โ โ
โ โ (React) โ โ (GPT-4) โ โ (on Hedera)โ โ (Guilds) โ โ
โ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ORCHESTRATION LAYER โ
โ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โ โ Hedera โ โ LangChain โ โ Livepeer โ โ Prisma โ โ
โ โ Agent Kit โ โ Agents โ โ Streaming โ โ ORM โ โ
โ โ Plugins โ โ (3 AI) โ โ (Video) โ โ (20+ DB) โ โ
โ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BLOCKCHAIN LAYER (Hedera Native) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Hedera Network โ โ
โ โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ โ
โ โ โ HTS โ โ HCS โ โ HSCS โ โ HFS โ โ โ
โ โ โ Tokens โ โ Topics โ โContracts โ โ Files โ โ โ
โ โ โ โข REALM โ โ โข Scores โ โโข Market โ โ โข Assets โ โ โ
โ โ โ โข 3 NFTs โ โ โข Events โ โโข Escrow โ โ โข Meta โ โ โ
โ โ โ โข Native โ โ โข Immut. โ โโข Treasuryโ โ โข IPFS โ โ โ
โ โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Performance
- โก 3-5 second finality vs 12-60s on EVM chains
- ๐ฐ $0.0001 per transaction vs $5-50 on Ethereum
- ๐ 10,000+ TPS vs 15-30 TPS on other chains
Sustainability
- ๐ฑ Carbon negative certified network
- โป๏ธ Energy efficient hashgraph consensus
- ๐ ESG compliant for institutional adoption
Security
- ๐ aBFT consensus - mathematically proven security
- ๐ก๏ธ No MEV - fair ordering guaranteed
RealmOS is Hedera-native across tokens, consensus, contracts, files, and analytics.
- Why: Native primitives with predictable low fees; enables micro-rewards and affordable NFT minting for assets, achievements, and profile identity.
- Transaction types:
TokenCreateTransaction,TokenMintTransaction,TokenAssociateTransaction,TransferTransaction,TokenUpdateTransaction. - Economic justification: ~$0.001/mint or transfer โ sustainable rewards for every action without breaking unit economics.
- Why: Scores and tournament results require tamper-proof history with consensus timestamps for fair esports.
- Transaction types:
TopicCreateTransaction,TopicMessageSubmitTransaction,TopicInfoQuery,TopicMessageQuery. - Economic justification: ~$0.0001/message โ log every score/event transparently.
- Why: Auctions, royalties, atomic swaps, and prize distribution need programmable logic and deterministic costs.
- Transaction types:
ContractCreateTransaction,ContractExecuteTransaction,ContractCallQuery,FileCreateTransaction,FileAppendTransaction. - Economic justification: ~$0.001/execute โ frequent marketplace operations viable.
- Why: Store AI-generated game HTML and NFT metadata directly on Hedera with chunked uploads and verifiable file IDs.
- Transaction types:
FileCreateTransaction,FileAppendTransaction,FileContentsQuery. - Economic justification: Cheap, verifiable storage without custom storage contracts.
- Why: Efficient reads for tokens, NFTs, contracts, and topics without running an indexer.
- Queries: Account balances/history, token/NFT info, contract logs/results, HCS topic messages.
- Economic justification: Off-chain reads keep costs near-zero while retaining on-chain verifiability.
Tokens (HTS):
- REALM Token (Fungible):
0.0.7171833 - Profile NFT Collection:
0.0.7171835(RealmOS Profile) - Game Asset NFT Collection:
0.0.7171837(RealmOS Game Assets) - Achievement NFT Collection:
0.0.7171838(RealmOS Achievements)
Topics (HCS):
- Leaderboard Scores:
0.0.7171840(Immutable score records) - Game Events:
0.0.7171843(Gameplay events and logs) - Tournament Results:
0.0.7171847(Tournament outcomes)
Smart Contracts (HSCS):
- NFTMarketplace:
0.0.7171576(Fixed price + auction listings) - PrizeEscrow:
0.0.7171580(Tournament prize management) - GuildTreasury:
0.0.7171583(Multi-sig guild funds)
Note: Run
bun run setup:hederato create these resources and auto-populate your.envfile
- Clone
git clone <repo-url>bun install(ornpm install)
- Environment
cp .env.example .env- Fill
HEDERA_OPERATOR_ID,HEDERA_OPERATOR_KEY,OPENAI_API_KEY,DATABASE_URL,NEXT_PUBLIC_WALLET_CONNECT_ID.
- Database
bun run build:prismanpx prisma migrate dev
- Provision Hedera (Testnet)
bun run setup:hedera(creates HTS tokens + HCS topics and writes IDs into.env)
- Run
bun run devโ open http://localhost:3000- Frontend (Next.js) and API routes run on the same server.
Judge access: Invite
Hackathon@hashgraph-association.comas a collaborator on this GitHub repo.
- Hedera Hashgraph - Core blockchain infrastructure
- HTS - Native token standard (1 fungible + 3 NFT collections)
- HCS - Consensus service for immutable leaderboards
- HSCS - Smart contracts (Solidity 0.8.20)
- HFS - File service for game assets and metadata
- Mirror Nodes (REST) - Analytics & history service
- Hedera Agent Kit - AI agent framework with LangChain using OpenAI
- @hashgraph/sdk - Official Hedera SDK v2.67
- OpenAI GPT-4 - Game specification generation
- LangChain - AI agent orchestration
- Phaser.js 3.80 - Game engine for 9 templates
- 3 AI Agents: Game Assistant, Tournament Manager, Reward Distributor
- Minigame Agent: AI agent for minigame generation using Hedera Agent Kit
- Next.js 15 - React framework with App Router
- TypeScript 5 - Type safety throughout
- TailwindCSS 4 - Utility-first styling
- Shadcn/UI - Beautiful component library
- Framer Motion - Smooth animations
- Hedera Wallet Connect - Multi-wallet support (HashPack, Blade)
- PostgreSQL - Primary database
- Prisma ORM - Type-safe database access (20+ models)
- Livepeer Studio - Decentralized streaming
- HFS - Decentralized NFT metadata storage
- TypeScript-first with strict types and descriptive errors.
- Linters/Formatters: ESLint + Prettier (
eslint.config.mjs,.prettierrc). - Clear modules: Hedera clients live in
src/lib/hedera/(e.g.,token.ts,consensus.ts,marketplace-contract.ts,scheduled-transaction-service.ts). - Readable APIs: Next.js routes in
src/app/api/**mirror service names for easy auditing. - Docs: This
README.md+GETTING_STARTED.mdprovide setup and reasoning for reviewers.
- โ Only platform with AI game generation (9 templates)
- โ 3 specialized AI agents for gaming operations
- โ 60-second game creation vs months of development
- โ Complete ecosystem, not just single feature
| Operation | Ethereum | Polygon | Hedera | Savings |
|---|---|---|---|---|
| Mint NFT | $50 | $0.10 | $0.001 | 99.998% |
| Submit Score | $10 | $0.02 | $0.0001 | 99.999% |
| Transfer Token | $20 | $0.05 | $0.001 | 99.995% |
| 1000 Operations | $80,000 | $170 | $1.10 | 99.999% |
- โ HTS: 1 fungible + 3 NFT collections
- โ HCS: 3 topics for immutable records
- โ HSCS: 3 smart contracts (Marketplace, Escrow, Treasury)
- โ HFS: NFT metadata storage
- โ Hedera Agent Kit: AI-powered operations
- โ Multi-wallet: HashPack, Blade, WalletConnect
- โ 50,000+ lines of TypeScript
- โ 100+ components with modern UI
- โ 20+ database models for scalability
- โ 7 playable games with blockchain integration
- โ 90% complete - production-ready, not prototype
- ๐ฐ Platform fees: 2.5% marketplace revenue
- ๐ฎ Tournament fees: Entry fee model
- ๐จ NFT royalties: 5% on secondary sales
- ๐ Token utility: REALM for all platform operations
// User input: "Create a space shooter with power-ups"
import { generateGame } from '@/lib/agents/game-generator';
const game = await generateGame({
prompt: "Create a space shooter with power-ups",
template: "shooter"
});
// Returns: Playable Phaser.js game + download linkimport { HederaConsensusService } from '@/lib/hedera/consensus';
await HederaConsensusService.submitLeaderboardScore({
gameId: 'chess',
userId: 'user123',
score: 1500,
metadata: { moves: 42, time: 1200 }
});
// Score recorded immutably on Hederaimport { HederaTokenService } from '@/lib/hedera/token';
const nft = await HederaTokenService.mintNFT({
tokenId: process.env.ACHIEVEMENT_NFT_TOKEN_ID,
metadata: {
name: "Chess Master",
description: "Won 100 chess games",
image: "ipfs://...",
attributes: { rarity: "LEGENDARY" }
}
});
// NFT minted and transferred to userimport { MarketplaceContract } from '@/lib/hedera/marketplace-contract';
await MarketplaceContract.purchaseNFT({
listingId: "listing123",
buyerAccountId: "0.0.123456",
price: "10" // HBAR
});
// Atomic swap: NFT transferred, payment distributed# Node.js 18+ or Bun
node --version # or bun --version
# PostgreSQL 14+
psql --version
# Hedera testnet account (free)
# Get at: https://portal.hedera.com# 1. Clone repository
git clone <repository-url>
cd hedera-verse
# 2. Install dependencies
bun install
# 3. Configure environment
cp .env.example .env
# Edit .env with your credentials:
# - HEDERA_OPERATOR_ID # preferred (legacy HEDERA_ACCOUNT_ID supported)
# - HEDERA_OPERATOR_KEY # preferred (legacy HEDERA_PRIVATE_KEY supported)
# - OPENAI_API_KEY
# - DATABASE_URL
# - NEXT_PUBLIC_WALLET_CONNECT_ID
# 4. Setup database
bun run build:prisma
npx prisma migrate dev
# 5. Initialize Hedera (creates tokens + topics)
bun run setup:hedera
# 6. Deploy smart contracts (optional)
cd contracts
npm install
npm run deploy
# 7. Start development server
cd ..
bun run dev
# 8. Open browser
open http://localhost:3000# AI
OPENAI_API_KEY="sk-..."
# Hedera
# Prefer OPERATOR_*; legacy names supported
HEDERA_OPERATOR_ID="0.0.xxxxx"
HEDERA_OPERATOR_KEY="302e..."
# Legacy fallback (optional)
# HEDERA_ACCOUNT_ID="0.0.xxxxx"
# HEDERA_PRIVATE_KEY="302e..."
HEDERA_NETWORK="testnet"
NEXT_PUBLIC_WALLET_CONNECT_ID="..."
# Database
DATABASE_URL="postgresql://user:pass@localhost:5432/realmos"
# Streaming
NEXT_PUBLIC_LIVEPEER_API_KEY="..."
- Frontend: Next.js dev server at
http://localhost:3000 - API: Next.js App Router endpoints under
src/app/api/** - Network: Hedera Testnet (
HEDERA_NETWORK=testnet) - Runtime: Node.js v18+ or Bun
- Core Hedera infrastructure (HTS, HCS, HSCS, HFS)
- AI game generator agent with 9 templates
- 7 playable games with blockchain integration
- NFT marketplace with smart contracts
- Tournament system with prize escrow
- Guild system with multi-sig treasury
- Play-to-earn reward distribution
- Real-time leaderboards via HCS
- Livepeer streaming integration
- 3 AI agents (Game Assistant, Tournament Manager, Reward Distributor)
- Demo video and documentation
- Security audit of smart contracts
- Onboard 100 beta users
- Launch 10 community tournaments
- Mobile-responsive improvements
- Real-time chat (WebSocket)
- Deploy to Hedera mainnet
- 10,000+ active players
- 50+ guilds created
- 100+ AI-generated games
- Partnership with gaming influencers
- Integration with gaming platforms
- Advanced analytics dashboard
- Mobile apps (iOS, Android)
- VR/AR game templates
- Cross-chain bridges
- DAO governance launch
- Developer SDK for third-party games
- Games partnerships
Contributions welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT License - see LICENSE for details.
- Demo: https://realmos.xyz
- Video: https://youtu.be/lC7Cd4cRWwM
- Pitch Deck: https://drive.google.com/drive/folders/17X9utbxDeg_Og3AOe2Fi0wt6xk2MtzCp?usp=sharing
- Twitter: @RealmOS
- ๐ Track 3: Gaming and NFTs
- ๐ Hedera Docs: docs.hedera.com
- ๐ค Agent Kit: github.com/hashgraph/hedera-agent-kit
- ๐ Testnet Explorer: testnet.hashscan.io
- ๐ฌ Hedera Discord: hedera.com/discord