Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Local-first, persistent memory for AI coding agents — remember, recall, forget, and list, over MCP.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
NORN_DETECT_CONFLICTSต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"norn": {
"command": "npx",
"args": [
"-y",
"@samad001z/norn-server"
],
"env": {
"NORN_DETECT_CONFLICTS": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add norn --env NORN_DETECT_CONFLICTS='ใส่ค่าของคุณ' -- npx -y @samad001z/norn-serverเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"norn": {
"command": "npx",
"args": [
"-y",
"@samad001z/norn-server"
],
"env": {
"NORN_DETECT_CONFLICTS": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"norn": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@samad001z/norn-server"
],
"env": {
"NORN_DETECT_CONFLICTS": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
NORN_DETECT_CONFLICTS envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub samad001z ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.2.3) เข้า registry 4 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Persistent, visible memory for AI coding agents.
[Live site](https://norn-web-three.vercel.app) · Releases · Quickstart · Connect your AI tool
Your AI forgets you every session. Norn is a local MCP server that remembers your decisions, preferences, and project context across every session and project, for Claude Code, Cursor, and any MCP client. Unlike most memory tools it is fully local and fully inspectable: a dashboard lets you see exactly what it stored and forget anything you do not want.
What you need: just Node.js 20 or newer — you don't install Norn separately, the command below fetches it automatically. Check with node --version; if it's missing or below v20, grab the LTS from nodejs.org.
Connect to Claude Code — one command, no clone:
claude mcp add norn -- npx -y @samad001z/norn-server
Or use the CLI in your terminal — run it on demand, or install the norn command:
npx @samad001z/norn-core list # no install — npx fetches it each time
npm install -g @samad001z/norn-core # or put the norn command on your PATH
Any other MCP client — add this to its MCP config:
{
"mcpServers": { "norn": { "command": "npx", "args": ["-y", "@samad001z/norn-server"] } } }
Restart your tool. Norn registers four tools: remember, recall, forget, list.
Optional — flag possible conflicts: add
"env": { "NORN_DETECT_CONFLICTS": "1" }
to the config above and Norn will surface memories that might disagree, for you to
resolve in the dashboard. Off by default; it downloads a small extra model the first
time it finds a candidate, and it never changes your store on its own.
Not sure where that config goes? The [Connect Norn to your AI tool](docs/connecting.md)
guide has exact, copy-paste setup for Claude Desktop, Cursor, Windsurf,
VS Code + GitHub Copilot, and Gemini CLI — plus a beginner "what you need" and
troubleshooting. (VS Code + Copilot uses a
serverskey instead ofmcpServers.)
Verify it's connected: tell your assistant *"Remember that I prefer pnpm over npm,"* then in a new chat ask *"What package manager do I prefer?"* — it should answer pnpm by calling Norn's recall tool.
The first
rememberorrecalldownloads a local embedding model
(all-MiniLM-L6-v2, ~25 MB) once, then runs fully offline.
Or run from source
git clone https://github.com/samad001z/Norn.git
cd Norn npm install npm run build -w @samad001z/norn-core && npm run build -w @samad001z/norn-server claude mcp add norn -- node "$(pwd)/server/dist/index.js"
Memory survives across sessions, and recall is semantic: it matches meaning, not keywords.
Session 1
You: Remember that we deploy to production from the main branch on Vercel.
Claude calls
remember("deploy to production from the main branch on Vercel", project: "acme")
Session 2, the next day, in a fresh context window
You: How do we ship to prod?
Claude calls
recall("how do we ship to prod")
Norn returns "Deploy to production from the main branch on Vercel." even though the
query shares no keywords with the stored note.
Norn does not record your sessions. It is a memory store, not a logger — it never silently captures your prompts, code edits, or terminal commands. A memory exists only when the agent calls remember(), which happens in two ways:
main on Vercel."* The agent calls remember(...) and the note is saved.That is the point: you decide what's kept, so the store stays signal, not noise. The flip side is that if you never ask, nothing is saved — so a sparse dashboard after a long working session is expected, not a bug. The work itself lives in git; Norn is for the durable facts you want recalled later.
A few habits that make it pay off:
recall() on demand.Everything saved this way shows up in the dashboard, and you can forget any of it.
Three local pieces share one local database:
Claude Code / Cursor ──MCP (stdio)──► Norn MCP server ┐
├──► ~/.norn/norn.db Dashboard (Next.js) ────────────────────────────┘ (SQLite + sqlite-vec)
/server): exposes remember, recall, forget, list over stdio./core): SQLite + sqlite-vec, with embeddings from a local MiniLM model (no API key). recall blends semantic similarity with recency and trims results to a token budget; remember dedupes near-identical notes./web): a Next.js app to browse and manage everything.All three resolve to the same store, so a memory written by your agent appears in the dashboard, and a memory you forget in the dashboard is gone for the agent too. The store is chosen in this order:
NORN_DB_PATH, if set — an explicit override always wins..norn/norn.db, walking up from the working directory (see Per-project memory).~/.norn/norn.db.With no project store and no override, this is the original behavior: one global ~/.norn/norn.db.
Give a repo its own memory that ships with it. From the project root:
npx @samad001z/norn-core init # or: norn init
This creates a .norn/ directory holding that project's norn.db. Because each project has its own database file, memories never bleed across projects: an agent working in one repo only sees that repo's memory.
Norn finds your project the way git does — by walking up from the working directory to the nearest ancestor that contains a .norn/ directory. Run your agent (or the CLI) anywhere inside the repo and it resolves to the same store. The store is chosen in this order:
.norn/norn.db, walking up from the working directory.Even without norn init, projects stay isolated in the shared global store: every memory is stamped with the project root it was written under (a scope, derived from the nearest .git/.norn ancestor — distinct from the freeform project label), and recall only returns the current project's memories plus global ones. Separate db files are the primary isolation; the scope stamp is defense in depth for the shared store.
norn export/norn importare available from v1.1 onward. On earlier versions,
commit the binary
norn.dbdirectly (the defaultnorn initsetup).
norn.db is a binary SQLite file — it holds embedding vectors, so it has no readable git diffs and can conflict on merge. To version your memory cleanly, commit a diffable text export instead and let each checkout rebuild its own database:
norn export # writes .norn/memory.json — text, tags, project, ids, timestamps (no vectors)
memory.json is sorted deterministically, so re-exporting an unchanged store produces an empty diff. Embeddings are not stored in it; they are regenerated locally on import, so the file stays small and review-friendly. Commit it and gitignore the binary store with a .norn/.gitignore like:
# .norn/.gitignore — commit memory.json, ignore the binary store.
norn.db norn.db-wal norn.db-shm norn.db-journal
norn init(v1.1+) writes exactly this.gitignorefor you, somemory.jsonis the
committed artifact out of the box. Prefer to commit the binary
norn.dbinstead — no
import step on clone, at the cost of readable diffs? Just delete the
norn.dbline.
On a fresh clone, rebuild the local database from the committed file:
norn import # reads .norn/memory.json and regenerates embeddings locally
import upserts by id, so it is safe to re-run; it never duplicates a memory.
A self-contained, copy-paste walkthrough (uses npx, no install; needs Node 20+ and git):
# 1. Two separate projects, each with its own committed memory store.
mkdir -p /tmp/demo/alpha /tmp/demo/beta
cd /tmp/demo/alpha npx @samad001z/norn-core init npx @samad001z/norn-core remember "Alpha API rate limit is 600 requests per minute per token"
cd /tmp/demo/beta npx @samad001z/norn-core init npx @samad001z/norn-core remember "Beta deploys to prod from the main branch on Vercel"
npx @samad001z/norn-core recall "what is the request rate limit"
cd /tmp/demo/alpha npx @samad001z/norn-core export # writes .norn/memory.json git init -q && git add .norn/memory.json && git commit -qm "Add project memory"
mkdir -p /tmp/demo/alpha-clone/.norn cp .norn/memory.json /tmp/demo/alpha-clone/.norn/memory.json
cd /tmp/demo/alpha-clone npx @samad001z/norn-core import # regenerates embeddings locally npx @samad001z/norn-core recall "what is the request rate limit"
NORN_DETECT_CONFLICTS=1 and Norn flags memories that might disagree so you choose which to keep — it never auto-resolves, edits, or deletes. Off by default; the extra model only downloads once you turn it on.remember, recall, and forget as it happens, plus conflicts that need your call. See Norn Live.Local by default. The store is a SQLite file on your disk, the embedding model runs on your machine, and nothing leaves it: no account, no API key, no telemetry. Delete ~/.norn/norn.db and the memory is gone.
The dashboard lets you browse by project, search, and forget any m
ตัดมาแค่ช่วงต้น อ่านต่อใน repo