Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Semantic search across 6,236 Quran verses and 12,416 authentic Hadiths for Islamic guidance.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
ใช้ได้ทั้ง Claude บนเว็บ แอปคอมพิวเตอร์ และมือถือ:
https://criterion.life/api/mcpพิมพ์คำสั่งนี้ใน Terminal
claude mcp add --transport http criterion https://criterion.life/api/mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"criterion": {
"url": "https://criterion.life/api/mcp"
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"criterion": {
"type": "http",
"url": "https://criterion.life/api/mcp"
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ChatGPT ต่อได้เฉพาะ server ที่อยู่บนอินเทอร์เน็ต:
https://criterion.life/api/mcpชื่อเมนูอาจต่างกันเล็กน้อยตามแพ็กเกจและรุ่นของแอป
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
ยังไม่ได้อ่านรายการเครื่องมือของตัวนี้ เราตรวจ endpoint ทีละชุดวนไป
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 9 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub BalajSaleem ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้ตรวจ เราตรวจ endpoint ทีละชุดวนไป
ยังไม่ได้ตรวจ เราตรวจ endpoint ทีละชุดวนไป
ยังไม่ได้ตรวจ เราอ่านรายการเครื่องมือตอนตรวจ endpoint
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนคลาวด์ของผู้ทำ ต่อผ่านอินเทอร์เน็ตได้เลย ไม่ต้องลงโปรแกรม แต่ข้อมูลที่ส่งให้จะผ่านเซิร์ฟเวอร์ของผู้ทำ
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.0.0) เข้า registry 10 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต่อผ่าน URL จึงใช้กับโปรแกรมที่รับ remote MCP ได้ เช่น ChatGPT ที่เปิดโหมดนักพัฒนา
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Criterion - Islamic Knowledge Assistant
An AI-powered Da'i (invitor to Islam) bringing authentic Islamic guidance to seekers worldwide.
Built on the Quran and authentic Hadith. Free forever. For the sake of Allah.
Mission · Features · Tech Stack · Getting Started · MCP Server · Documentation
Criterion exists to bring authentic Islamic knowledge to anyone seeking truth, using modern technology to make divine guidance accessible to all of humanity — freely, forever, for the sake of Allah alone.
👉 [Read the full mission and vision in MISSION.md](./MISSION.md)
Mission-Aligned:
Technical Excellence:
✅ Semantic Quran Search — Ask natural language questions, get relevant verses ✅ Semantic Hadith Search — Search authentic Hadith with grade & collection filtering ✅ Contextual Understanding — Top results include surrounding context for proper meaning ✅ Accurate Citations — Every response cites real sources with hyperlinks ✅ Multilingual Reading — English (fast) + Slovak (single JOIN <200ms) ✅ Shareable URLs — /quran/search?q=patience, /hadith/search?q=charity, and /quran/2/255 with metadata ✅ Real-time Streaming — Progressive response generation with token-by-token delivery ✅ Tool-Based RAG — LLM autonomously decides when to retrieve from Quran/Hadith
User Question
↓ XAI Grok 4 LLM (decides which tools to use) ↓ Tool Selection:
Vector Search (768-dim Gemini embeddings) ↓ Context Enhancement (top 3 get ±2 surrounding verses) ↓ LLM Generates Response with Citations ↓ Real-time Stream to User (Server-Sent Events)
git clone <repo-url>
cd criterion
pnpm install
Create a .env.local file:
# Database
POSTGRES_URL=postgresql://...
XAI_API_KEY=xai-... AI_GATEWAY_API_KEY=...
AUTH_SECRET=...
pnpm db:enable-pgvector
pnpm db:migrate
pnpm ingest:quran
This will take 10-15 minutes to complete.
pnpm test:quran
pnpm dev
Your app should now be running on localhost:3000.
pnpm dev # Start dev server
pnpm build # Build for production pnpm start # Start production server
pnpm db:generate # Generate Drizzle schema
pnpm db:migrate # Run migrations pnpm db:studio # Open Drizzle Studio (GUI)
# Quran
pnpm clear:quran # Clear all Quran data pnpm ingest:quran # Ingest Quran verses and generate embeddings pnpm ingest:quran:slovak # Ingest Slovak translation pnpm test:quran # Test Quran search functionality
pnpm clear:hadith # Clear all Hadith data pnpm ingest:hadith # Ingest Hadith and generate embeddings
Criterion exposes its semantic search capabilities through the Model Context Protocol (MCP), allowing AI assistants like Claude Desktop and Cursor to search Quran and Hadith directly.
Quick Setup:
{
"mcpServers": { "criterion": { "url": "https://criterion.life/api/mcp" } } }
Available Tools:
search_quran — Search 6,236 Quran versessearch_hadith — Search 21,641 authentic Hadiths from 6 collectionsget_verse — Retrieve specific verse by reference (e.g., "2:255")👉 [Read full MCP documentation in MCP.md](./MCP.md)
criterion/
├── app/ │ ├── (auth)/ # Authentication routes │ ├── (chat)/ # Chat interface and API │ │ └── api/chat/ # Main chat endpoint │ ├── search/ # Quran search page │ │ └── api/ # Quran search API │ ├── hadith/ │ │ └── search/ # Hadith search page and API │ └── quran/ # Quran reading pages ├── lib/ │ ├── ai/ │ │ ├── embeddings.ts # Core RAG logic │ │ ├── prompts.ts # Da'i system prompts │ │ └── tools/ │ │ ├── query-quran.ts # Quran search tool │ │ └── query-hadith.ts # Hadith search tool │ └── db/ │ ├── schema.ts # Database schema │ └── migrations/ # SQL migrations ├── components/ │ ├── chat.tsx # Main chat UI │ ├── quran-verses.tsx # Quran display component │ ├── hadith-narrations.tsx # Hadith carousel │ └── hadith/ │ └── hadith-card.tsx # Reusable hadith card ├── scripts/ │ ├── ingest-quran.ts # Quran data ingestion │ ├── ingest-hadith.ts # Hadith data ingestion │ └── test-*.ts # Test scripts └── data/ ├── quran*.txt # Quran translations └── *-full.json # Hadith collections
| Document | Purpose |
|---|---|
| MISSION.md | Vision, values, pillars, and long-term goals |
| CRITERION_DETAILED.md | Technical architecture, database schema, components, and best practices |
| CRITERION.md | Quick start, commands, and core concepts |
| README.md | Getting started, features, and project overview |
components/
├── Chat UI (QuranVerses, HadithNarrations, MessageActions) ├── Search Pages (Quran and Hadith semantic search with filters) ├── Hadith Components (reusable HadithCard for search and chat) ├── Quran Pages (shared components for context, language selection) └── UI Components (buttons, inputs, etc.)
lib/ ├── ai/ │ ├── embeddings.ts (vector search logic) │ ├── prompts.ts (Da'i system prompts) │ └── tools/ (queryQuran, queryHadith, requestSuggestions) ├── db/ │ ├── schema.ts (Drizzle ORM definitions) │ └── queries.ts (database functions) └── monitoring/ (performance tracking)
app/ ├── (chat)/api/chat (main chat endpoint) ├── quran/search/ (Quran search page and API) ├── hadith/search/ (Hadith search page and API) ├── quran/ (Quran reading pages) └── (auth)/ (authentication)
Criterion is built with these commitments:
We welcome contributions from developers, scholars, and community members who share our mission. Please see CONTRIBUTING.md for guidelines.
"Invite to the way of your Lord with wisdom and good instruction, and argue with them in a way that is best." — Quran 16:125
_May Allah accept this work and make it a means of
ตัดมาแค่ช่วงต้น อ่านต่อใน repo