A multi-perspective historical narrative platform that presents historical events through the lens of different countries, communities, religions, ideologies, and academic viewpoints โ all side by side.
View Demo ยท Report Bug ยท Request Feature
|
Get 5+ unique perspectives on any historical event โ from different countries, communities, religions, and academic schools of thought. Beautiful light and dark modes with system preference detection for comfortable viewing. Powered by Groq's ultra-fast inference delivering responses at ~500 tokens/second. |
Clean, ChatGPT-inspired interface with horizontal card carousel for easy comparison. Seamless experience across desktop, tablet, and mobile devices. Every perspective includes academic sources and bias acknowledgments for transparency. |
- Node.js 18+
- npm or yarn
- Groq API Key (Get one free)
# Clone the repository
git clone https://github.com/harshwardhan-kp/PolyLens.git
# Navigate to project directory
cd PolyLens
# Install dependencies
npm install
# Create environment file
echo "GROQ_API_KEY=your_groq_api_key_here" > .env.local
# Start development server
npm run devOpen http://localhost:3000 in your browser ๐
PolyLens/
โโโ ๐ app/
โ โโโ ๐ api/
โ โ โโโ ๐ chat/
โ โ โโโ ๐ route.ts # Groq API endpoint
โ โโโ ๐ page.tsx # Main chat interface
โ โโโ ๐ page.module.css # Component styles
โ โโโ ๐ layout.tsx # Root layout
โ โโโ ๐ globals.css # Design system
โโโ ๐ lib/
โ โโโ ๐ prompts.ts # AI prompts & types
โโโ ๐ .env.local # Environment variables
โโโ ๐ package.json
โโโ ๐ README.md
| Feature | Description | Status |
|---|---|---|
| ๐พ Save Conversations | Persist chat history to database | ๐ Planned |
| ๐ค User Accounts | Authentication with Google/GitHub | ๐ Planned |
| ๐ Analytics Dashboard | Track popular queries and perspectives | ๐ Planned |
| ๐ Multi-language | Support for 10+ languages | ๐ Planned |
| ๐ฑ Mobile App | Native iOS/Android with React Native | ๐ Planned |
| ๐ฏ Custom Perspectives | User-defined viewpoint categories | ๐ Planned |
| ๐ Source Links | Direct links to academic papers | ๐ Planned |
| ๐ค Multiple LLMs | Switch between GPT-4, Claude, Gemini | ๐ Planned |
Contributions are what make the open source community amazing! Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.