A newspaper-style web development & AI news dashboard powered by Google Gemini AI.
- Real-time AI news — Gemini fetches fresh web dev & AI news every session
- Hinglish style — Hindi-English mix headlines for Indian developers
- Smart caching — localStorage caches news for 30 minutes to avoid repeated API calls
- Category filters — Filter by AI Models, Dev Tools, Frontend, Backend, Design, Strategy
- Load More — Fetch additional batches of news with a single click
- Dark editorial UI — Beautiful newspaper-aesthetic dark theme
- Framework: Next.js 14+ (App Router)
- Styling: Tailwind CSS v4
- AI: Google Gemini API (
gemini-1.5-flash) - Language: TypeScript
Visit Google AI Studio and create a free API key.
Open .env.local and replace the placeholder:
NEXT_PUBLIC_GEMINI_API_KEY=your_actual_key_here
npm install
npm run devOpen http://localhost:3000 in your browser.
app/
page.tsx # Hero/Landing page
news/page.tsx # News Dashboard
layout.tsx # Root layout + fonts
components/
HeroPage.tsx # Landing page with background fetch
NewsCard.tsx # Individual news card
NewsDashboard.tsx # News grid + filters + pagination
NewsModal.tsx # Full article popup
LoadingSkeletons.tsx
lib/
gemini.ts # Gemini API integration
cache.ts # localStorage cache helpers
types/
news.ts # TypeScript interfaces
- Hero page loads → triggers background Gemini API call
- Status badge shows 🔴 fetching → 🟢 ready
- Click "Read Today's News" → News page reads from localStorage
- Category pills filter client-side (no extra API calls)
- Load More fetches next 10 stories from Gemini (with skip prompt)
- Cache expires after 30 minutes → fresh fetch on next visit
- No backend server required — all API calls are client-side
- No database — news is fetched fresh each session (cached in browser)
- API key is exposed client-side (prefixed
NEXT_PUBLIC_) as this is a client-only app