A modern Magic 8-Ball API built with Next.js that provides fortune-telling responses to questions. The API offers various endpoints for random, biased, and sentiment-based responses.
- Random fortune responses (classic 8-ball experience)
- Sentiment analysis of questions
- Biased responses based on question sentiment
- "Lucky" mode to influence response bias
- Multi-language support
- Edge runtime for optimal performance
- Clone the repository:
git clone https://github.com/jacobschwantes/eight-ball-api.git
cd eight-ball-api- Install dependencies:
npm install- Run the development server:
npm run dev- Open http://localhost:3000 to see the application
- Next.js - React framework with API routes
- Sentiment - Sentiment analysis library
- Zod - TypeScript-first schema validation
- Tailwind CSS - Utility-first CSS framework
- TypeScript - Type safety and developer experience
This project is open source and available under the MIT license.
