Backend

The frontend can run in two modes. Demo stores everything in your browser so you can poke around the UI without infrastructure. Live talks to a real Northcontext backend (you, after deploying the Worker).

leave blank to stay in demo mode.

How to deploy your backend

Short version (full instructions in the README):

cd worker
npm install
npx wrangler login
npx wrangler d1 create northcontext
npx wrangler vectorize create northcontext-memories \
  --dimensions=768 --metric=cosine
# paste the IDs into wrangler.toml, then:
npx wrangler d1 execute northcontext --file=schema.sql --remote
npx wrangler deploy