NewsQuest is a full-stack, AI-powered, gamified news platform that transforms passive news consumption into an interactive learning experience for the users.
Instead of endlessly scrolling headlines, users can:
๐ฎ Play through news like a game ๐งช Solve quizzes generated from real articles ๐ฎ Predict future outcomes of world events โ๏ธ Battle other users in real-time quiz challenges ๐ Earn XP, maintain streaks, and climb leaderboards
NewsQuest combines education, engagement, prediction intelligence, and competitive gameplay into one immersive platform.
=======
Watch the project demo and screenshots here:
NewsQuest is a gamified news intelligence platform that turns everyday news into a story-driven learning game.
It blends:
- real news articles
- AI-generated quizzes
- predictive gameplay
- social competition
- progress tracking
This makes current events engaging, memorable, and fun.
Traditional news platforms are often:
โ Passive and boring โ Difficult to retain and understand โ Overwhelming with endless information โ Lacking interaction and personalization โ Not designed for younger digital audiences
This results in low engagement, poor knowledge retention, and reduced critical thinking around current events.
======= Most news apps are:
- โ passive and text-heavy
- โ hard to retain
- โ low on engagement
- โ missing meaningful feedback loops
NewsQuest changes that by making news:
- โ interactive
- โ game-like
- โ reward-driven
- โ knowledge-centered
NewsQuest solves this by combining:
๐ฐ Interactive news consumption ๐งช AI-generated quizzes ๐ฎ Real-world prediction systems โ๏ธ Competitive battle modes ๐ XP, streaks, and gamification ๐ค AI-powered content generation ๐ก Real-time backend systems
The platform transforms news into a daily learning game that rewards curiosity, consistency, and critical thinking.
News APIs โ Backend Processing โ AI Content Generation โ Quiz & Prediction Engine โ Supabase Database โ React Frontend โ User Gameplay โ XP / Leaderboards / Streak Tracking
NewsQuest uses AI to intelligently enhance news content and gameplay.
Role: Automatically generate MCQs from live news articles.
Powered By:
- Qwen API
- NewIO API
Features:
- Context-aware questions
- Instant explanations
- Difficulty balancing
- Fast response generation
Output:
- Multiple-choice questions
- Correct answers
- Explanations
- XP rewards
Role: Turn real-world events into prediction challenges.
Examples:
- โWill inflation rise next month?โ
- โWill this bill pass parliament?โ
- โWill Team X win the finals?โ
Features:
- Confidence-based answering
- Prediction history tracking
- Accuracy analytics
- Long-term performance scoring
Output:
- User prediction score
- Accuracy percentage
- Prediction leaderboard ranking =======
- Structured stories for fast reading
- Topic categories like Polity, Economy, Tech, and Health
- Featured headlines and personalized summaries
- 4 quiz questions per article
- Instant feedback and scoring
- Quiz content generated from article metadata
- Built to reinforce reading and retention
- Article-based prediction prompts
- Confidence-driven answer format
- Outcome tracking for accuracy over time
- Designed to make learners think about context and consequences
โ Bite-sized news format โ Fast and clean reading experience โ Category-based filtering โ Mobile-first UI โ Interactive article experience
Categories include:
- Politics
- Economy
- Technology
- Sports
- Science
- Global Affairs
Every article includes interactive quizzes.
๐ฏ 2โ3 AI-generated MCQs per article โก Instant feedback ๐ Answer explanations โญ XP rewards for correct answers ๐ Performance tracking
Users can compete against others in live quiz battles.
โก Fast-paced question answering ๐ Bonus XP rewards ๐ Rank progression ๐ฎ Competitive learning environment
Battle scoring depends on:
- Accuracy
- Speed
- Consistency
๐ฐ Reading articles ๐งช Solving quizzes ๐ฎ Making predictions โ๏ธ Winning battles ๐ฅ Maintaining streaks
๐ Global leaderboards ๐ Daily quests ๐ฅ Daily streak tracking ๐๏ธ Level progression system
Role: Encourage consistent learning habits.
Features:
- Daily login streaks
- Reading streaks
- Quiz streaks
- XP multipliers for consistency =======
- Real-time competition with other players
- Battle sessions, queue joining, and invites
- Points earned for speed and correctness
- Competitive gameplay built on news knowledge
- Gain XP through reading, quizzes, predictions, and battles
- Level progress shown in dashboard UI
- Encourage continuous exploration and habit building
- Daily engagement tracking
- Reward streaks for consistent users
- Encourages return visits and sustained learning
- Cause-chain exercises for article analysis
- Break down event logic and consequences
- Reinforces deeper understanding beyond headlines
NewsQuest uses AI to create:
- quiz questions
- prediction scenarios
- article summaries
- cause-chain prompts
Global rankings based on:
โญ XP earned ๐งช Quiz performance ๐ฎ Prediction accuracy โ๏ธ Battle victories
Features:
- Weekly resets
- Competitive ranking
- User progression tracking =======
- Bytez for article intelligence
- Supabase for real-time data and user sync
Users receive dynamic daily objectives such as:
โ Read 5 articles โ Complete 3 quizzes โ Make 2 predictions โ Win 1 battle
Rewards: โญ Bonus XP ๐ Progress boosts ๐ฅ Streak protection
- โ Authentication
- โ Database storage
- โ Real-time systems
- โ User progression tracking =======
- Node.js + TypeScript
- Express server with API routing
- Rate limiting and error handling
- Caching for news and article content
- User profiles
- XP & levels
- Quiz history
- Predictions
- Streak data
- Leaderboards
- React.js
- TypeScript
- Tailwind CSS
- Vite
โจ Modern gaming-inspired UI ๐ Dark theme with neon accents ๐ฑ Mobile-first responsive design โก Smooth transitions & animations
โ News aggregation โ AI quiz generation โ Prediction processing โ Real-time gameplay systems โ XP & progression handling โ Supabase integration
Read news ๐ฐ Take quiz ๐งช Make prediction ๐ฎ Battle players โ๏ธ Earn XP โญ Maintain streak ๐ฅ Climb leaderboard ๐ Repeat ๐
๐ค AI-generated summaries ๐ค Voice-based news (TTS) ๐ง Avatar progression system โ๏ธ Multiplayer tournaments ๐ง Personalized recommendations ๐ Advanced analytics dashboard ๐ฑ Mobile app version
โ
Environment variables protected using .env
โ
Supabase authentication system
โ
API keys hidden via .gitignore
โ
Modular scalable architecture
โ
Type-safe frontend using TypeScript
- Node.js 18+
- npm
- Internet connection for news APIs
cd backend
npm installCreate:
backend/.env.localAdd:
NEWSDATA_API_KEY=your_api_keyRun backend:
npm run startDefault backend URL:
http://127.0.0.1:3001
=======
- Supabase for authentication and storage
- Stores user progress, activity, predictions, and leaderboard stats
- Real-time updates for engaged gameplay
---
## ๐ฎ Player Experience
1. Read a news article
2. Answer quiz questions
3. Predict the likely outcome
4. Earn XP and rewards
5. Join a leaderboard battle
6. Track streaks and progress
---
## ๐ Project Structure
```bash
NewsQuest-main/
โโโ backend/ # Express + TypeScript backend
โ โโโ src/
โ โ โโโ routes/ # auth, news, battle, predictions, leaderboard, cause chain
โ โ โโโ services/ # news data, battle logic, user activity
โ โ โโโ lib/ # AI content generation, profile sync
โ โโโ package.json
โ โโโ tsconfig.json
โโโ frontend/ # React + Vite + Tailwind frontend
โ โโโ src/
โ โ โโโ pages/
โ โ โโโ components/
โ โ โโโ hooks/
โ โ โโโ lib/
โ โ โโโ store/
โ โโโ package.json
โ โโโ vite.config.ts
โโโ SQL_MIGRATION_EXECUTE_ME.sql
โโโ README.mdcd frontend
npm install
npm run devDefault frontend URL:
http://127.0.0.1:4000=======
- Frontend: React, Vite, TypeScript, Tailwind CSS, Radix UI, Zustand, React Router
- Backend: Node.js, Express, TypeScript, Supabase, dotenv, cors
- Data: Supabase, custom news generation logic, cached article metadata
- Deployment: npm scripts, build-ready Express server
GET /api/newsGET /api/news/search?q=...GET /api/news/category/:typeGET /api/news/featuredPOST /api/news/generate
POST /api/activity/trackGET /api/activity/heatmap/:userId
GET /api/battle/session?userId=...POST /api/battle/queue/joinPOST /api/battle/invite
POST /api/predictions/resolve
GET /api/leaderboard
GET /api/cause-chain/:articleIdPOST /api/cause-chain/generatePOST /api/cause-chain/submitGET /api/cause-chain/stats/:userId
POST /api/users/sync
GET /api/health
cd backend && npm install
cd ../frontend && npm installCreate backend/.env.local with your keys. Example:
NEWSDATA_API_KEY=your_news_api_key
SUPABASE_URL=https://...
SUPABASE_KEY=...If the frontend needs a custom backend, create frontend/.env with:
VITE_API_URL=http://localhost:3001cd backend && npm run start
cd ../frontend && npm run dev- Backend:
http://127.0.0.1:3001 - Frontend:
http://127.0.0.1:4000
npm run devnpm run buildnpm run lintnpm run test
npm run startnpm run buildnpm run typecheck
- News becomes a game, not just a feed
- AI-generated quizzes and prediction gameplay
- Real-time battle mode for knowledge competition
- Supabase-backed progress, streaks, and leaderboard
- Learning through active news interaction
- native mobile app or PWA
- voice-enabled news summaries
- daily challenge and achievement system
- richer analytics for students and readers
- more adaptive AI quiz generation
npm run dev
npm run build
npm run lint
npm run testnpm run start
npm run build
npm run typecheckNewsQuest/
โ
โโโ frontend/
โ โโโ src/
โ โ โโโ components/
โ โ โโโ pages/
โ โ โโโ services/
โ โ โโโ utils/
โ โ โโโ assets/
โ โโโ package.json
โ
โโโ backend/
โ โโโ routes/
โ โโโ services/
โ โโโ utils/
โ โโโ .env.local
โ โโโ package.json
โ
โโโ public/
โโโ README.md
โโโ .gitignore๐ Combines news + gaming + AI + prediction systems ๐ Makes current affairs interactive and addictive ๐ Encourages critical thinking & retention ๐ Turns learning into competition ๐ Creates daily knowledge-building habits
| SDG | Goal | Implementation |
|---|---|---|
| SDG 4 | Quality Education | Interactive learning through gamified news |
| SDG 9 | Industry, Innovation & Infrastructure | AI-powered news intelligence platform |
| SDG 16 | Peace, Justice & Strong Institutions | Encourages informed civic awareness |
๐งช AI-generated quizzes from live news ๐ฎ Real-world prediction gameplay โ๏ธ Real-time battle system โญ Full XP & progression mechanics ๐ฅ Habit-building streak system ๐ Competitive leaderboard ecosystem ๐ง AI-enhanced educational experience
NewsQuest is not just a news app โ itโs a gamified intelligence platform.
โDonโt just read the news. Play it. Predict it. Master it.โ ๐ ======= NewsQuest is more than a news reader โ it is a gamified learning companion for curious minds.
โRead, answer, predict, and compete with the news.โ
Give it a โญ on GitHub and support interactive learning through AI-powered news gaming!!
