Developers
Criterion is fully open source. Built to help people understand Islam through authentic sources using modern AI technology.
What is Criterion?
An AI assistant that helps people learn about Islam through:
- 6,236 Quran verses - Full Arabic text with English translations
- 12,416 Hadiths - From authentic collections (Sahih Bukhari, Muslim, etc.)
- Semantic search - Find verses and hadiths by meaning, not just keywords
- RAG technology - Grounded responses with citations
Why Open Source?
- Transparency - Anyone can verify our sources and methodology
- Trust - Open code builds confidence in authenticity
- Education - Learn how to build AI applications with RAG
- Collaboration - Community can improve and extend the project
- Islamic values - Knowledge should be shared freely
Tech Stack
- Frontend: Next.js 15, React 19, TypeScript, Tailwind CSS
- AI: GPT-4o Mini, Gemini embeddings, Vercel AI SDK
- Search: PostgreSQL + pgvector (HNSW index)
- Hosting: Vercel, Neon Database
How to Contribute
- Fork the repository on GitHub
- Clone and set up locally (see README)
- Pick an issue or suggest a feature
- Make your changes and test
- Submit a pull request
All contributions welcome - features, bug fixes, documentation, or ideas!
Documentation
Check the repository for detailed documentation:
README.md- Quick start guideCRITERION.md- System overviewCRITERION_DETAILED.md- Technical deep dive
Report Issues
Found a bug? Have a feature request? Let us know
Join Discussions
Ask questions, share ideas, or help others
License
Criterion is open source. Check the LICENSE file for details.