v0.1.0-alpha: interactive demo platform core

- Fastify API: demos/steps CRUD, content-addressed assets, scoped API keys
  (read/author/publish/admin, draft-only default per D4)
- Player: image + sandboxed DOM steps, hotspots, tooltips, keyboard nav,
  privacy-first beacons (no IP storage, viewer tokens only — R7)
- Editor: React SPA — demo list, drag-to-draw hotspots, annotations, publish
- MCP server: Streamable HTTP, scope-filtered tools, untrusted-data wrapping
  on viewer-supplied content (R8); platform never calls a model
- Capture extension (MV3): screenshot-flow recording, hotspots pre-placed
  from real clicks
- Docker: single app image + postgres, Traefik-ready (expose only)

E2E verified: capture->author->publish->play->beacon->lead->analytics + full
MCP tool surface with scope filtering.
This commit is contained in:
Scot Thom 2026-07-18 05:17:45 +00:00
commit 9b09f14916
33 changed files with 5555 additions and 0 deletions

22
apps/api/package.json Normal file
View file

@ -0,0 +1,22 @@
{
"name": "@demo-platform/api",
"version": "0.1.0",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch"
},
"dependencies": {
"@fastify/multipart": "^9.0.1",
"@fastify/static": "^8.0.3",
"@modelcontextprotocol/sdk": "^1.12.0",
"fastify": "^5.2.0",
"pg": "^8.13.1",
"zod": "^3.24.1"
},
"devDependencies": {
"@types/node": "^22.10.2",
"@types/pg": "^8.11.10",
"typescript": "^5.7.2"
}
}