Skip to content

ManintheCrowds/OpenAtlas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAtlas

Next.js app in portfolio-harness for an operator context graph (co-access across .cursor/state handoffs and daily notes) plus D3 visualization demos and a legacy multi-step intake form (portfolio sample, not medical use).

Package name: open-atlas. App folder: OpenAtlas (renamed from Med-Vis). If you still see a stale Med-Vis directory (e.g. locked node_modules), close IDEs/processes using it and delete that folder—use OpenAtlas as the canonical path.

Context graph (no Supabase required)

  • Viewer: /context-atlas (alias of the same UI as /brain-map).

  • Data: GET /api/brain-map/graph reads public/brain-map-graph.local.json when that file exists (personal / vault merges; gitignored), otherwise public/brain-map-graph.json.

  • Regenerate (from portfolio-harness root):

    python .cursor/scripts/build_brain_map.py

    Optional env: CURSOR_STATE_DIR (one root), CURSOR_STATE_DIRS (merge several; use ; on Windows or , between paths), CURSOR_STATE_DIR_LABELS (prefixes for sessions in JSON), BRAIN_MAP_VAULT_ROOTS / BRAIN_MAP_VAULT_LABELS (Obsidian/Foam vault roots; when vault roots are set and BRAIN_MAP_OUTPUT is unset, default output is OpenAtlas/public/brain-map-graph.local.json), BRAIN_MAP_OUTPUT. CLI: repeated --state-dir / --label, --vault-root / --vault-label (see script --help).

  • Optional auth: set BRAIN_MAP_SECRET on the server. If the UI must send a header, NEXT_PUBLIC_BRAIN_MAP_SECRET is supported — that value is embedded in the browser bundle (obfuscation only, not a true secret). See docs/security/NEXT_PUBLIC_AND_SECRETS.md.

Full JSON contract: docs/BRAIN_MAP_SCHEMA.md. Tools, APIs, and how this relates to OpenHarness: docs/OPENATLAS_SYSTEMS_INVENTORY.md.

Local-first notes

The graph path is static JSON + optional secret—you can run the viewer without configuring Supabase. For broader local-first patterns (sync, ownership, AI safety), see Open Local First and optionally the sibling local-first workspace (README.md, RESOURCES.md, AI_SECURITY.md).

Future ingest hooks

  • Watch: debounced watcher on state markdown → rerun build_brain_map.py.
  • SQLite: optional merge/index step that still writes the same JSON shape for the UI.

Routes (App Router)

Path Purpose
/ Home
/context-atlas, /brain-map Context graph (same UI)
/operator-intake, /survey Legacy intake form (same UI)
/visualization D3 demos
/login, /admin/* Supabase-backed areas (require env)

Features (accurate)

  • D3 / Three.js visualizations (Sankey, chord, constellation, etc.).
  • Context graph from handoff/daily/decision-log derived paths.
  • Multi-step form sample with Supabase submission when configured.
  • Admin / theme controls when Supabase is available.

Agents and APIs

Quick start

Prerequisites: Node 18+, npm.

cd OpenAtlas   # path under portfolio-harness
npm install
cp .env.example .env.local   # if present; add Supabase keys only if you need auth/survey persistence
npm run dev

Windows (PowerShell): Use ; not && to chain commands, e.g. Set-Location OpenAtlas; npm run dev.

Open http://localhost:3001. Visit /context-atlas after generating public/brain-map-graph.json.

Scripts

Command Description
npm run dev Development server (port 3001)
npm run clean Remove .next and node_modules/.cache (fixes chunk errors)
npm run dev:clean Clean then start dev server
npm run build Production build
npm run lint ESLint
npm run type-check tsc --noEmit
npm run test Placeholder (exits 0 until unit tests exist)
npm run verify CI / agents: lint + type-check + test (single pass/fail). Note: type-check may fail until known TS issues in src/app/test-chord/, test-context/, dataAdapter, etc. are cleared—run npm run lint alone if you only need ESLint.
npm run verify:e2e verify then Playwright (test:e2e; dev server started by Playwright config when needed)
npm run test:e2e Playwright

License / attribution

Portfolio-derived sample; anonymized from earlier client work. Not a medical product.

About

Operator context graph and brain-map visualization. Co-access across handoffs and daily notes; D3/Three.js; static JSON, no Supabase required. Pending development into being Alignment GUI

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors