Technical communication artifact · v0.3

Full System Design Overview

Knowledge Graph là canvas engine dùng chung. Fullstack Engineering chỉ là built-in Knowledge Pack; research hoặc curriculum khác có thể import thành workspace riêng, lưu local và dùng cùng projection/runtime.

Knowledge Pack schema 1.0IndexedDB workspacesCanvas projectionsBrowser QA gated

Architecture flow

Read path, import/export path, local authoring và deployment được tách thành các boundary rõ ràng để sau này thay IndexedDB bằng authenticated API mà không phải viết lại canvas engine.

Workspace → runtime → delivery

Một engine, nhiều Knowledge Packs, cùng validation và projection contract.

Current architecture
Knowledge sourcesBuilt-in Fullstack packResearch / notes / AI outputMinimal / example templatePortable .kg.json Import boundarySchema version checkNode / edge validationHierarchy cycle checksOverlay / profile refsPreview before persist Workspace RepositoryIndexedDB local packsManifest + graphOverlay + profilesView hints + inboxActive ID in localStorage Workspace ManagerSwitch · Create · RenameDelete · Import · ExportDownload templatesUse example previewPer-workspace Inbox importvalidated writemanage Workspace data bridgeResolve active workspaceVirtual graph / overlay / profileBuilt-in static fallbackStable renderer contract Canvas engineLibrary · Search · InspectorCareer · Growth · EvidenceFocus Realm / Deep DiveNavigate / Edit · Pan / ZoomResponsive tablet / mobileFullscreen · BreadcrumbNo workspace-specific fork Daily usersExplore a knowledge mapDeep dive one subjectCapture new researchExport / share / teach active packfetch contractinteract Quick CaptureDraft CRUDSelected-node contextWorkspace-scoped storageExport with pack Quality gatesGraph + JSON validationJS syntax + load orderDeep Dive browser smokeWorkspace IndexedDB smokePR validates without deploy GitHub ActionsCheckout · Validate · Browser QAConfigure Pages on main onlyUpload static site artifactDeploy immutable buildNo runtime secret GitHub PagesStatic HTML / CSS / JSBuilt-in JSON packTemplates + public docs authoring QAdeployworkspace inbox Future repository adapterIndexedDB → authenticated API → user/team/tenant sync, without replacing Canvas Engine

System responsibilities

Knowledge Pack

Portable contract gồm manifest, canonical graph, overlay, optional profiles, view hints và inbox. Pack có thể import/export độc lập.

Workspace Repository

Built-in pack đọc từ static JSON; personal packs persist trong IndexedDB. Active workspace được resolve qua một data bridge trước renderer.

Canvas Engine

Không biết pack thuộc Fullstack, AI hay domain nào. Nó chỉ đọc graph contract và render các projection chung.

Import / export contract

Knowledge Pack (.kg.json)
├── schemaVersion: 1.0
├── manifest
├── graph
│   ├── nodes
│   └── edges
├── overlay
├── profiles[]
├── views
└── inbox[]

Import safety

  • Validate before IndexedDB write.
  • Reject duplicate / dangling IDs.
  • Reject invalid hierarchy cycles.
  • Keep learner state outside canonical nodes.
  • Check overlay and profile references.
  • Preview stats, warnings and errors before confirm.

Runtime & storage layout

site/
├── workspace-runtime.js
├── workspace-manager.js
├── templates/
│   ├── minimal.kg.json
│   └── example.kg.json
├── data/                  # built-in pack
│   ├── graph.json
│   ├── overlays/huy.public.json
│   └── profiles/backend-engineer.json
├── app.js                 # canvas engine
├── focus-mode.js
├── capture.js
└── changelog/

Storage boundary

  • IndexedDB: imported/local Knowledge Packs.
  • localStorage: active workspace ID and lightweight preferences.
  • Knowledge Inbox is scoped per workspace.
  • Built-in Fullstack data stays cacheable static JSON.
  • No GitHub token exists in the public runtime.

Quality attributes

AttributeCurrent strategyEvolution trigger
PortabilityVersioned `.kg.json` contract + templatesSchema migrations need dedicated registry/tooling
Personal adaptationMultiple IndexedDB workspaces on one deviceCross-device sync or collaboration
SecurityNo runtime secret; import validates before persistAuthenticated cloud repository
ReliabilityDeep Dive + Workspace browser regression gatesBroader E2E matrix / visual regression
MaintainabilityRepository adapter separates data source from canvasComponent pressure justifies framework migration
AuditabilityGit history + public changelog for product; exported packs for local dataMulti-editor event audit log

Evolution path

Now · v0.3

Generic canvas engine, built-in Fullstack pack, portable imports/exports, IndexedDB workspaces and browser QA.

Next

Schema migration helpers, richer pack authoring, private overlays, pack metadata/share previews and curriculum projections.

Later

Swap the local repository for an authenticated API supporting users, teams, tenants, sync and collaborative mentoring.