Lëtzebuergesch

Entwécklerguide Iwwersiicht

Repository-Layout

Wat all Ordner vun der Repository enthält.

Op dëser Säit

D'Repository ass en npm-Workspace mat zwee Packagen, app an server. D'Design-System, d'Recherche an d'Docs-Site sinn niewendrun.

De Bam

text
archipelego/
  app/                    React + TypeScript + Vite client
    src/App.tsx           the workspace: top bar, panels, toolbar, keyboard
    src/canvas/           the 2D canvas, rulers, cursors, post-its, nesting geometry
    src/panels/           toolbox, inspector, layer editor, explain, library, AI settings, docking
    src/chat/             the room chat, the Architect client, Markdown rendering
    src/features/         Feature Architecture: model, draft cleaning, Features panel
    src/rich/             rich chat UI: A2UI renderer, MCP Apps host
    src/collab/           room, presence, identity, Yjs hooks
    src/model/            types, templates, JSON / HTML / JPEG export and import
    src/ai/               catalog and router settings, browser key store
    src/three/            the 3D explorer (react-three-fiber)
    src/ds/               the single entry point to the design system
    src/sound.ts          the sound cues, synthesised with WebAudio
  server/                 Node server
    src/                  TypeScript sources: rooms, Explain, the Architect, feature drafts
    src/llm/              router, providers, catalog, vault, offline simulator
    src/mcp.ts            the MCP Apps host backend: built-in and remote servers
    src/mcp-apps/         the built-in canvas overview app
    dist/                 compiled server (npm run build)
    data/                 saved canvases and server keys (default data folder)
    library/              reference architectures, one JSON canvas each
    llm/catalog.json      the model catalog the router reads
  design-system/          the Archipelego design system
    project/              tokens.json, brand book, component bundle, glyphs, logo
    dev/                  build-tokens.js, compiled tokens.css, showcase server
    gen-previews.js       generates component previews and glyph files
  design-prototype/       the clickable Claude Design prototype artboards
  docs/
    research/             reference architecture research and the LLM catalog research
    ux/                   UX research, such as Feature Architecture and docking
  scripts/                build scripts for the library, the LLM catalog and the docs site
  docs-site/              this documentation site: generator, theme, content per language
  Dockerfile              the container image
  compose.yaml            a Docker Compose wrapper around the same image

Root-Scripten

D'Root-package.json definéiert d'Scripten, déi Dir am meeschten benotzt:

Script Wat et mécht
npm run dev Kompiléiert d'Tokens, féiert dann de Server an d'App zesummen aus.
npm run build Kompiléiert d'Tokens, baut d'App, baut dann de Server.
npm start Start de gebauten Server, deen och déi gebaut App ausliwwert.
npm run typecheck Kontrolléiert d'Typen vun der App an dem Server.
npm run tokens Kompiléiert design-system/project/tokens.json an design-system/dev/tokens.css.
npm run library Baut server/library/agentic-insurer.json aus der Recherche nei.
npm run llm-catalog Baut server/llm/catalog.json aus der Recherche nei.

Dateien, déi Dir net vun Hand ännere sollt

  • design-system/dev/tokens.css gëtt aus tokens.json generéiert. Et gëtt vu git ignoréiert.
  • server/library/agentic-insurer.json gëtt vu scripts/build-library.mjs generéiert.
  • server/llm/catalog.json gëtt vu scripts/build-llm-catalog.mjs generéiert.
  • app/dist, server/dist an docs-site/dist sinn Build-Output.