Skip to content

Latest commit

 

History

History
131 lines (87 loc) · 2.97 KB

File metadata and controls

131 lines (87 loc) · 2.97 KB

Codespaces quickstart

Try ai-knot without installing Python, Node, or local dependencies first.

Open the repo in GitHub Codespaces:

The repo already ships .devcontainer/devcontainer.json, which installs:

  • Python dev deps plus mcp, postgres, and server extras
  • the npm workspace dependencies in npm/

Wait for the post-create step to finish, then run one of these proofs.

Fastest first runs

Core memory loop

ai-knot demo

What you see:

  • the installed product-level add / search / list / get / delete loop
  • temporary local storage, so you can prove the behavior without cleanup
  • the shortest path from "repo opened" to "memory works"

For the raw Python API:

python examples/quickstart.py

What you see:

  • direct add / search / recall on a local store
  • deterministic retrieval with no LLM call
  • the shape of the core Python API in under a minute

HTTP JSON proof

python examples/http_sidecar_surface_demo.py

What you see:

  • the HTTP sidecar JSON routes exercised without binding a real port
  • /health, POST /v1/facts, POST /v1/search, GET /v1/facts, GET /v1/facts/{fact_id}, and delete
  • the same surface ai-knot serve exposes to polyglot runtimes

Visual/browser proof

python examples/browser_inspector_demo.py

What you see:

  • the HTTP sidecar starts locally
  • sample facts are seeded automatically
  • you can open /inspect from the forwarded port and inspect the memory store in a browser

TypeScript / Vercel AI SDK proof

npx ai-knot-demo
cd npm
npm run example:basic-memory-loop

What you see:

  • the packaged npm bridge can route into the built-in proof command
  • the repo-native Node example shows the same add / search / list / delete loop from TypeScript

For the Vercel AI SDK surface specifically:

cd npm
npm run example:vercel-ai-sdk-surface

What you see:

  • the exact system / messages surface built by AiKnotAISDKMemory
  • no Python-side MCP process required
  • no model call required

If the real npm client path fails, run:

cd npm
npm run doctor

CLI proof

ai-knot add assistant "User prefers Python and deploys with Docker"
ai-knot search assistant "what stack does the user use?"
ai-knot list assistant

What you see:

  • the market-standard memory loop from the terminal
  • the same CRUD/search language shown in the README

If something fails

Start with:

ai-knot doctor --json

Then check:

Next surfaces after the first proof