Skip to content

Pulkit0111/ai_news_aggregator

Repository files navigation

AIBUZZ - AI News Intelligence

πŸš€ MVP Release - Your intelligent AI news aggregator. More features coming soon!

AIBUZZ Next.js React TypeScript Tailwind

AIBUZZ is a modern, AI-powered news aggregator that curates, categorizes, and analyzes the latest developments in artificial intelligence. Stay ahead of the AI wave with intelligent features and a beautiful neobrutalist design.

✨ Features

πŸ€– AI-Powered Intelligence

  • Smart Summarization - Get instant AI-generated summaries with key insights and significance analysis
  • Top Stories Detection - AI analyzes weekly trends and identifies the most impactful stories
  • Auto-Categorization - Automatic classification into LLMs, Research, Ethics, Tools, and more
  • Semantic Search - Find exactly what you're looking for across thousands of articles

πŸ“° News Aggregation

  • Multi-Source - Aggregates from trusted AI news sources including research labs and tech blogs
  • Real-Time Updates - Automated fetching keeps you up-to-date with the latest developments
  • Smart Filtering - Filter by source, category, or search terms
  • Responsive Design - Beautiful UI that works seamlessly on all devices

πŸ”’ Privacy & Security

  • 100% Free - Completely free to use, no hidden costs
  • No Signup Required - Start exploring immediately
  • Your API Key - Users provide their own OpenAI API key for AI features
  • Client-Side Storage - API keys stored only in your browser, never on servers

🎨 Design

AIBUZZ features a bold neobrutalist design with:

  • Thick black borders and vibrant colors
  • Bold typography and high contrast
  • Smooth hover animations
  • Consistent visual language throughout

πŸ› οΈ Tech Stack

πŸš€ Getting Started

Prerequisites

  • Node.js 20+ and npm
  • PostgreSQL 18
  • OpenAI API key (users provide their own)

Installation

  1. Clone the repository
git clone <your-repo-url>
cd ai_news_aggregator
  1. Install dependencies
npm install
  1. Set up environment variables
cp .env.example .env.local

Edit .env.local:

DATABASE_URL="postgresql://user:password@localhost:5432/ai_news_aggregator"
CRON_SECRET=your-secure-secret-here

Note: OpenAI API key is NOT needed in .env.local. Users provide their own keys through the application.

  1. Set up the database
# Generate Prisma client
npx prisma generate

# Run migrations
npx prisma migrate dev

# Seed initial data
npm run seed
  1. Start the development server
npm run dev

Visit http://localhost:3000 πŸŽ‰

πŸ“š Project Structure

ai_news_aggregator/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ page.tsx              # Landing page
β”‚   β”‚   β”œβ”€β”€ news/                 # News browsing page
β”‚   β”‚   └── api/                  # API routes
β”‚   β”‚       β”œβ”€β”€ articles/         # Article endpoints
β”‚   β”‚       β”œβ”€β”€ article/          # Single article operations
β”‚   β”‚       └── fetch-articles/   # RSS aggregation
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ ApiKeyModal.tsx       # API key input modal
β”‚   β”‚   β”œβ”€β”€ ApiKeySettings.tsx    # Key management
β”‚   β”‚   β”œβ”€β”€ ArticleCard.tsx       # Article display
β”‚   β”‚   β”œβ”€β”€ FilterBar.tsx         # Search & filter
β”‚   β”‚   β”œβ”€β”€ Logo.tsx              # AIBUZZ branding
β”‚   β”‚   └── ...
β”‚   └── lib/
β”‚       β”œβ”€β”€ prisma.ts             # Database client
β”‚       β”œβ”€β”€ openai.ts             # OpenAI client
β”‚       β”œβ”€β”€ categorizer.ts        # Auto-categorization
β”‚       └── rss-parser.ts         # RSS feed parsing
β”œβ”€β”€ prisma/
β”‚   β”œβ”€β”€ schema.prisma             # Database schema
β”‚   └── seed.ts                   # Seed data
└── public/                       # Static assets

πŸ”‘ API Key Setup

Users need to provide their own OpenAI API key to use AI features:

  1. Visit the landing page and click "Browse News"
  2. A modal will appear requesting your OpenAI API key
  3. Get your key from platform.openai.com/api-keys
  4. Enter the key (format: sk-...) and continue
  5. Your key is stored only in your browser (localStorage)

Managing Your API Key

Click the "πŸ”‘ API Key" button on the news page to:

  • Change your API key
  • Revoke your key and return to home page
  • View your masked current key

πŸ“Š Database Schema

Models

  • Source - News sources (websites, RSS feeds)
  • Category - Article categories (LLMs, Research, Ethics, etc.)
  • Article - News articles with metadata
  • Relations - Many-to-many between Articles and Categories

🎯 Available Scripts

npm run dev          # Start development server
npm run build        # Build for production
npm start            # Start production server
npm run lint         # Run ESLint
npm run seed         # Seed database with initial data

🌐 Deployment

Environment Variables for Production

DATABASE_URL="your-production-database-url"
CRON_SECRET="your-secure-cron-secret"

Recommended Platforms

  • Frontend: Vercel (optimal for Next.js)
  • Database: Supabase or Railway
  • Domain: Custom domain for professional appearance

Pre-Deployment Checklist

  • Update CRON_SECRET to a secure random string
  • Set up production PostgreSQL database
  • Configure environment variables on hosting platform
  • Run npm run build to verify production build
  • Test API key flow in production environment

🀝 Contributing

This is an MVP (Minimum Viable Product). Contributions, issues, and feature requests are welcome!

πŸ“ License

This project is open source and available under the MIT License.

πŸ‘¨β€πŸ’» Author

Made with ❀️ by Pulkit

πŸ™ Acknowledgments

  • OpenAI for the amazing API
  • Next.js team for the incredible framework
  • Vercel for hosting and deployment tools
  • All the AI news sources that make this aggregator possible

⭐ Star this repo if you find it useful!

πŸ› Found a bug? Open an issue

πŸ’‘ Have a feature idea? Start a discussion

About

AIBUZZ is a modern, AI-powered news aggregator that curates, categorizes, and analyzes the latest developments in artificial intelligence. Stay ahead of the AI wave with intelligent features and a beautiful neobrutalist design.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages