Design decisions#
The architecture decision records of the repository’s decisions/ folder,
one page each, in the order they were taken. The first record says how the
records are kept.
- Record architecture decisions
- Use strict TypeScript
- Build the editor with Svelte 5 and Vite
- Use pnpm workspaces
- Lint and format with Biome
- Test with Vitest and Svelte mounting utilities
- Enforce the package ladder with dependency-cruiser
- Serve the app with FastAPI and uvicorn
- Manage Python with uv, hatchling and Ruff
- Bundle the built editor inside the wheel
- Write the exact rationals of
coreourselves - Depend on
@timetoalign/timetosharefor the schema and fixtures - Test properties with fast-check
- Compile the TikZ figures with TeX Live from the Ubuntu archive in CI
- Write fractional indices in
core - Rasterize review renders with rsvg-convert
- Autosave to IndexedDB written in
editor, tested with fake-indexeddb - The workspace store and its command journal
- Arrange blocks with Svelte Flow, one node per block
- Test the editor end to end with Playwright, inside its image
- Check accessibility of the running editor with axe-core
- Opening and saving files written in
editor - Read and write the inspector’s YAML with
yaml - Read and write the inspector’s TOML with
@decimalturn/toml-patch - Set the inspector’s title line in IBM Plex Mono, bundled with the editor
- Write the editor’s combobox ourselves, after the WAI-ARIA pattern
- Look values up in Wikidata, the GND and YouTube from the browser, and in MusicBrainz through the server
- Hold the MatchClaim table as typed columns of exact values
- Send the MatchClaim table to the server as bytes and answer it as aligned arrays behind a JSON header
- Read a MatchClaim’s provenance on demand and answer a belief with the new table
- Read a MatchClaim’s events on demand from the MatchClaim table
- The server reads and writes the user’s files by path below a root folder
- Unfold a raised ancestor card from its member card by one tweened progress
- Elision modes are style properties; group elisions belong to the frame
- Arrangements are placement; a root drawn once along the row
- One message system with three levels
- A public mode serves the editor without a token and without files
- Build the documentation site with Sphinx, MyST and TypeDoc