A web application that fetches random Wikipedia articles and summarizes them using the Groq AI API. Discover interesting knowledge in a concise format!
- Fetches random Wikipedia articles
- Summarizes articles using Groq's LLM capabilities
- Provides a link to the full Wikipedia article
- Simple, clean UI with intuitive controls
- Next.js - React framework for server-side rendering
- TypeScript - Type-safe JavaScript
- Tailwind CSS - Utility-first CSS framework
- Groq API - LLM API for text summarization
- Wikipedia API - For fetching random articles
- wtf_wikipedia - For parsing Wikipedia markup
- Framer Motion - For UI animations
- Node.js 18+ and npm
-
Clone the repository:
git clone https://github.com/yourusername/wiki-bee.git cd wiki-bee -
Install dependencies:
npm install
-
Create a
.env.localfile in the root directory with your Groq API key:GROQ_API_KEY=your_groq_api_key_hereYou can get a Groq API key by signing up at console.groq.com.
-
Start the development server:
npm run dev
-
Open http://localhost:3000 in your browser to see the application.
- The application automatically loads a random Wikipedia article and displays its summary when you first visit.
- Click the "Read Full Article" button to open the complete Wikipedia article in a new tab.
- Click the "Get Another Article" button to fetch and summarize a new random article.
This project is open-source and available under the MIT License.