Hackathon monorepo: Chrome extension + Node API + shared types + Gemini prompt helpers + Video Intelligence normalization (mocked).
| Path | Owner mindset | Purpose |
|---|---|---|
apps/extension |
Frontend / UX | MV3 Chrome extension (popup + service worker). Calls the API via src/services/apiClient.ts. |
apps/api |
Backend | Express + TypeScript HTTP API. Mock route demonstrates @mindmesh/shared, @mindmesh/ai, @mindmesh/video. |
packages/shared |
Everyone | Source of truth for SceneContext and related types. Import from @mindmesh/shared. |
packages/ai |
ML / prompts | String-only Gemini prompt templates (buildSceneSummaryPrompt, etc.). No SDK calls here yet. |
packages/video |
Video / GCP | Placeholders for Video Intelligence normalization + transcript/visual fusion. |
docs/ |
Tech lead / all | Architecture, HTTP contracts, prompt I/O, demo script. |
From the repo root:
npm installBuild all packages and apps (Turbo respects dependency order):
npm run buildnpm run dev --filter=@mindmesh/apiDefaults to http://localhost:8787. Copy .env.example → .env when you add real keys.
Health check: GET http://localhost:8787/health
Mock scene: GET http://localhost:8787/api/v1/mock/scene
-
Build packages + extension (once, or after changes):
npm run build
-
Chrome → Extensions → enable Developer mode → Load unpacked → choose
apps/extension/dist. -
Ensure the API is running so the popup’s mock fetch succeeds.
Dev rebuild loop:
npm run dev --filter=@mindmesh/extensionReload the extension in Chrome after each rebuild.
npm run typecheckmain: demo-ready, always builds.- Short-lived branches per surface:
feat/extension-…,feat/api-…,feat/shared-…,feat/ai-…,feat/video-…. - Touch
packages/sharedonly when the JSON contract changes; updatedocs/api-contract.mdin the same PR. - Rebase or merge from
mainfrequently; resolve conflicts insharedfirst, then propagate types to consumers.
The shared contract lives in packages/shared/src/scene.ts as SceneContext and canonicalMockScene.