Streax Champ
| Section | Details |
|---|---|
| Inspiration | Gamifying Knowledge: Turn passive Reddit scrolling into active competition. Infinite Content: Make “anything can be a quiz” possible so users never run out of content. Retro Nostalgia: 90s pixel arcade aesthetics blended with a modern neon interface. |
| What It Does | Infinite Quiz Generator: Generate a unique 5-question quiz on any topic instantly using Google Gemini. Creator Studio: Users can build and publish their own custom 5-question quizzes. Daily Challenges: Community-wide quiz resets every 24 hours with a shared leaderboard. Global Leaderboards: Track high scores and streaks under “StreaxChamp.” Interactive Robot Companion: Mouse-tracking, reactive robot that responds to gameplay states. Social Sharing: Post scores directly to Reddit comments. |
| How We Built It | Platform: Reddit Devvit. AI Engine: Google Gemini Pro with unified in-memory validation pipeline. Frontend: React 19, Vite, Framer Motion, NES.css, TailwindCSS. Backend: Firebase Firestore (REST), Redis (Devvit) for caching and rate limiting. Architecture: Atomic generation pipeline validating answer indices, options, and JSON structure before persistence. |
| Challenges | AI Hallucinations: Mismatched answers and invalid indices required a self-healing validation layer. Platform Constraints: Built a custom REST layer for Firestore inside Devvit sandbox. Rate Limiting: Balanced quotas across Reddit, Firestore, and Gemini APIs. Mobile Responsiveness: Reworked windowed dashboard UI for smaller screens. |
| Accomplishments | Unified Pipeline: Generate → validate → persist in one atomic flow, preventing broken quizzes. Visual Polish: Neon retro interface with CRT effects and interactive robot using minimal assets. Instant Play: Optimistic updates and caching reduce perceived latency. |
| What We Learned | Trust but Verify: Strict runtime validation (Zod + custom logic) is mandatory for structured generation. UX Matters: Feedback states outperform simple loading spinners during generation delays. |
| Next Steps | Multiplayer Duels: Real-time head-to-head mode. Community Curation: Remix and edit generated quizzes. New Modes: Sudden Death and Time Attack. Multi-Agent Orchestration: More granular validation and control over generation flow. |
Built With
- express.js
- firebase
- framer-motion
- gemini
- nes.css
- react
- tailwind
- typescript