Skip to content

Packages and the registry

DomusVox stays small in its core; furniture, building elements, materials, data sources and smart home connections come as packages. This chapter describes what a package is, how it is built, where packages come from (the domusvox-registry), how the Workbench installs them, and which existing open catalogues we can reuse (decision D50).

The plan deliberately follows Ablago's package system (same developer, in use since Ablago 0.63): a registry repository, a static catalogue with checksums per archive, a publisher per package, and installation in Workbench → Packages; signing the catalogue follows in a second step, as it did in Ablago. Where DomusVox differs, this chapter says why.

What goes into packages

Kind Brings Code Examples
Foundation the basic elements every home needs; always installed, every other content package may depend on it no basis: door, window, passage, the room scan categories as plain blocks
Element packages building elements with placement rules no elements: fireplace, stairs, radiator, built-in kitchen row
Furniture packages furniture as elements with 2D symbol and 3D model no furniture_kenney, furniture_kaykit
Material packages floor, wall and worktop materials (textures with size in metres) no materials_ambientcg
Looks a style for plan and 3D (colours, lines, light) no the looks from #112 as packages later
Languages interface texts and element names in one more language no language.fr
Add-ons extend exactly one other package (more colours, more languages for its elements) no furniture_kenney.colours
Function packages data sources, integrations, views and layers yes osm, sachsen, open_meteo, homey, homeassistant

Two rules keep packages apart, as in Ablago:

  • An element type lives in exactly one package. Others refer to it as package:key (e.g. basis:door) and name the package as a dependency.
  • The house never depends on a package to be shown. A placed piece keeps its footprint and height in the house model (as Furniture does today). If its package is missing or removed, DomusVox draws a plain block in its place and says which package would show more. Handover files (D26) stay readable everywhere.

Renate never reads the word "package" (architecture rule 2): the setup assistant offers "furniture as simple shapes" or "furniture with a wooden look"; only the Workbench shows packages by name, for Ben.

Elements and placement rules

Every element in a content package is described the same way, so the element palette (#164) can show all of them and place them correctly.

Property Meaning
key stable within the package, never renamed (ersetzt-style list for renames)
category one of a fixed list (seating, table, bed, storage, kitchen, bath, appliance, heating, door, window, stairs …); the room scan categories map onto it
names name per language, plus a short spoken description for screen readers ("Sofa for three, 2.2 metres wide")
size default width × depth × height in metres, with the allowed range per side if it can be resized
placement one rule from the list below
clearance areas that must stay free, e.g. the swing of a door, the front of an oven, sitting space at a table
symbol 2D plan symbol as a restricted SVG (paths and shapes only, no scripts, no links, no text)
model, modelDetailed, modelFit optional 3D model as glTF binary (.glb), light enough for the tablet, optionally a detailed one for desktops, and whether it stretches to the chosen size or keeps its proportions; metres, Y up, origin at the centre of the footprint on the floor, front towards +Z. Without a model the 3D view draws a block of size
scanCategories RoomPlan categories this element can stand in for, e.g. sofa, so a scanned block can become a model (see "swapping blocks")
variants versions that differ in looks only, one model each, e.g. a wardrobe with closed, mirror or glass fronts; the first is the default. A placed piece keeps its variant
colours parts whose colour people choose, e.g. body and front; the slot names a material in the models, the first option is the default. A placed piece keeps its colours (slot → option)
licence, attribution SPDX identifier and the credit line, per element where it differs from the package
products optional: GTIN/EAN numbers and product names this element stands for (#46)

Placement rules (from #164):

Rule Behaves like Examples
in-wall sits inside a wall, snaps to the nearest wall, never free door, window, passage
at-wall stands with its back to a wall, with an optional gap wardrobe, kitchen row, radiator, fireplace at the wall
free stands anywhere and turns freely table, armchair, free-standing fireplace
under fits under another element (named categories) chair under table, washing machine under worktop
on stands on another element microwave on worktop, lamp on side table
ceiling hangs from the ceiling ceiling lamp, smoke detector

Placement rules are data, not code; the editor in the core interprets them. A package can therefore never change how placing works, only what is placed.

Package format

One folder per package, the same in the registry and as an uploaded archive (<id>-<version>.zip):

furniture_kenney/
  manifest.json        required
  elements.json        element types (schema above)
  symbols/             2D symbols, SVG
  models/              3D models, GLB
  texts/de.json        names and descriptions per language (English in elements.json)
  README.md            what it brings, with screenshots
  LICENSE              licence text(s)
  CHANGELOG.md         changes per version
  tests/expected.json  what must be there after installation

DomusVox uses JSON (with a published JSON Schema, like the house model) rather than Ablago's YAML: the house model, the core and the browser already speak JSON, and the browser can check it without another parser.

{
  "schema": 1,
  "id": "furniture_kenney",
  "publisher": "domusvox",
  "kind": "furniture",
  "version": "1.0.0",
  "name": { "en": "Furniture, low poly", "de": "Möbel, schlicht" },
  "description": { "en": "About 140 pieces of furniture in a simple, friendly look." },
  "licence": "CC0-1.0",
  "authors": [{ "name": "Kenney", "url": "https://kenney.nl" }],
  "domusvox": ">=0.6.0",
  "dependencies": { "basis": ">=1.0.0" },
  "extends": null,
  "content": { "elements": "elements.json" },
  "network": [],
  "regions": ["*"],
  "size": { "download": 4200000, "unpacked": 9800000 }
}
  • schema is required; another value is rejected. Unknown fields are ignored, so new optional fields never break older DomusVox versions (as in Ablago).
  • id: lower-case letters, digits and _, 2 to 40 characters; one dot marks an add-on (furniture_kenney.colours, then extends names the main package).
  • publisher: who publishes it. Official packages carry domusvox; others a reversed domain (org.example). The same id from a different publisher is never accepted as an update. Once the project has a domain, domusvox becomes that reversed domain.
  • network: the hosts a package talks to; empty for content packages. This is what the Workbench shows as "sends data to …" (architecture rule 4).
  • regions: as in D45 for data sources (*, DE, DE-SN).
  • Function packages additionally name their entry module and the core interface they implement (SiteSource, Integration, later Layer); they are also published to npm under @domusvox/* for developers.

Versions

  • Packages follow SemVer. Element keys are part of the public interface: removing or renaming one is a major version, with a replaces list so placed pieces move to the new key.
  • domusvox names the range of DomusVox versions the package needs; the Workbench only offers versions that fit.
  • Updates only add or change; an update never deletes pieces from the house. Removing a package leaves blocks (see above).

Where packages come from: the registry

Variant How it works For Against
A: npm scope @domusvox every package is an npm package; DomusVox installs from npm already set up with Trusted Publishing and provenance; developers know it needs Node and a server to install, not possible from the browser demo or tablet; install scripts are a known supply chain risk; no single signature over "what the project approved"; furniture models do not belong on npm
B: static catalogue domusvox-registry (recommended) a repository motom001/domusvox-registry with one folder per package; CI checks every pull request, builds <id>-<version>.zip, writes catalog.json with SHA-256 per archive and publishes it on GitHub Pages (signed later) works from the browser and the server; once signed, one signature proves the whole catalogue; offline bundles possible; same model as Ablago's dms-registry, proven there one more repository and signing keys to keep
C: own index repo pointing to npm a signed index lists npm tarballs and their checksums npm stays the storage still no browser install for content; two systems to understand
D: OCI artefacts on ghcr.io packages as container registry artefacts signing with Sigstore built in not readable from the browser without a proxy; unfamiliar for contributors

Recommendation: B, with npm alongside for developers. The Workbench installs only from catalogues; function packages are additionally published to npm so server builds and other projects can use them.

  • Repository: motom001/domusvox-registry (Apache-2.0 for the tooling, each package with its own licence), with RULES.md (licences, what is forbidden, naming), JSON Schemas, a template and a check script that runs in CI on every pull request.
  • Catalogue: catalog.json lists per package id, publisher, kind, versions, licence, sizes, required DomusVox version, dependencies, network, regions, the archive URL and its SHA-256. The archives lie next to the catalogue on GitHub Pages; the gh-pages branch keeps every published version, and a published version never changes. In step 2 a catalog.sig comes next to it.
  • Where it lives: GitHub Pages of the registry repository (later a domain of its own). GitHub Pages serves CORS headers, so the browser demo and the tablet can read it directly.
  • First packages: official packages that already exist in this repository (osm, sachsen, open_meteo, demo_house) stay here and ship with DomusVox; they move into the catalogue once function packages can be installed (see "Code in packages").

Security

The registry starts without signatures (step 1) and gets them before anything riskier than content can be installed (step 2). Step 1 is acceptable because content packages contain no code, the catalogue address is fixed in DomusVox and only fetched over HTTPS, and every archive is checked against its checksum in the catalogue. Step 2 comes at the latest before code packages or further catalogues (expert mode) can be installed.

Step 1, from the start:

  • Checksums: every archive must match its SHA-256 in the catalogue; otherwise nothing is installed.
  • Fixed address: DomusVox only reads the official catalogue from its built-in HTTPS address and follows redirects only to https://.

Step 2, later (signing):

  • Signed catalogue: Ed25519 over the exact bytes of catalog.json, two project keys (one in the registry's CI secret, a reserve key offline with the maintainer), both public keys built into DomusVox. The browser checks with WebCrypto (Ed25519 is supported in current Chrome, Safari and Firefox), the server with Node's crypto.verify, without further dependencies. Same file format as Ablago's katalog.sig.
  • Never older: DomusVox remembers the creation time of the last valid catalogue and rejects an older one, so nobody can slip back a corrected package.
  • Publisher binding: only the signed official catalogue can deliver publisher domusvox. Other catalogues (expert mode, later) are trusted like SSH on first contact: the person confirms the key's fingerprint once.

In both steps:

  • Content packages contain no code. The registry check and DomusVox both enforce it: only the listed file types, SVG reduced to shapes and paths (no scripts, no links, no external references, no foreignObject), glTF checked with the Khronos glTF Validator, no external URIs in models, no file names with .., limits against ZIP bombs (e.g. 64 MB per archive, 128 MB unpacked).
  • Size budget for the tablet: at most about 3,000 triangles per piece at the light level, textures at most 512 × 512 px, about 300 KB per piece; the registry check measures it (gltf-transform) and rejects heavier models. A heavier level for desktop is optional.
  • Privacy: the catalogue is only fetched when someone presses "Look for packages", never in the background; DomusVox sends nothing but the request (no identifier, no house data). Links to the catalogue website carry the DomusVox version only in the fragment after #, as in Ablago.
  • Code in packages: at first only official function packages, reviewed in this repository and shipped with DomusVox. Installing code from a catalogue follows later, with declared permissions confirmed by the person and a sandbox (Web Worker or WebAssembly as in Ablago's package runner); this is a separate decision.

Installing in the Workbench

A view Packages in the Workbench, like Ablago's:

  • Installed: each package with version, publisher, origin ("official catalogue", "uploaded on …") and what it brought (12 pieces of furniture, 4 materials).
  • Available: "Recommended for you" on top (by region from the address, D45; by what the room scan found, e.g. "your scan has 3 sofas and a bed: furniture with a simple look"), then all others; a search field; filter by kind.
  • Preview before installing: name, description, screenshots, licence and credit line, size, what comes with it (needed packages are added and marked "comes along, needed by …"), and in plain words what it sends outside ("nothing" for content packages).
  • One step for several packages, one button, everything checked before the first package; if one fails, it is undone completely.
  • Updates only on request ("Look for new versions"), with the changes listed; remove keeps blocks in the house.
  • Without internet: upload a package or a bundle file made on another device (later, as in Ablago).
  • Element palette: the palette in the floor plan editor (#164) shows the elements of all installed packages grouped by category, with search; without any package it shows the foundation (doors, windows, passages, blocks).

Accessibility:

  • The package list is a real list with headings and buttons, no tiles that only work by pointer; every action works by keyboard in a fixed order (search, filter, list, preview, install).
  • Progress and result are announced in a polite live region ("2 of 3 packages installed") and shown as text, never by colour or animation alone (two-channel principle, D29).
  • States such as "signed by the DomusVox project", "not checked" or "update available" are text with an icon, not colour alone.
  • Every element has a spoken description and a size in words, so Jonas can place and find furniture in the list view without the plan.
  • Descriptions in short sentences; an Easy Language summary for each official package.
  • No drag and drop needed: elements are placed by "choose element, then place" (#164); dragging is an extra.

Where installed packages live: until the core server exists, in the browser of the device (IndexedDB and the Cache API), so the demo and the setup on one tablet work; with the core server (persistent storage, later) the server keeps them and every device gets the same packages.

Reusable catalogues

Checked on 1 December 2026. Only licences that can be passed on together with an Apache-2.0 project are recommended for the official registry: CC0, CC BY 3.0/4.0 for content and MIT, BSD, Apache-2.0 for code. Copyleft content (GPL, CC BY-SA, Free Art License) is not refused because it is bad, but because every model would carry its own share-alike terms into the house files people pass on; such packages can live in other catalogues. Non-commercial, no-derivatives, "royalty free" and unclear licences are never accepted.

Source Licence Format Amount and quality Fit for web and tablet Verdict
Kenney Furniture Kit CC0 GLB, OBJ, FBX (to confirm per download) about 140 files, low poly, friendly look very good, small yes: first furniture package
KayKit Furniture Bits (Kay Lousberg) CC0 1.0, no credit needed OBJ, FBX, glTF 50+ pieces in the free version, low poly very good yes: second package or merged by category
Ultimate Interior Props Pack (Zsky, on Poly Pizza) CC BY 4.0, credit "Assets made by Zsky" FBX, glTF 100+ props (lamps, plants, kitchen) good yes with credit line
Quaternius packs CC0 glTF, FBX several house and interior packs, low poly good yes, per pack after checking its page
Poly Haven models CC0 glTF, blend few dozen pieces of furniture, photo-real, heavy textures only reduced; too heavy as is later, hand-picked and reduced for the "natural" look
ambientCG and Poly Haven textures CC0 PNG/JPG maps hundreds of floors, woods, tiles good when scaled to 512 px yes: material package
Sweet Home 3D libraries free catalogue: GPL or CC BY; contributed libraries: mostly Free Art License, some GPL, some CC BY / CC BY 4.0; licence per library, not per model SH3F (ZIP with OBJ and a properties file), OBJ, DAE thousands of models, mixed quality medium (OBJ, often heavy) not as a whole; single CC BY libraries possible (e.g. staircases, CC BY 4.0). Better: a local import so Ben loads his own SH3F libraries into his DomusVox; nothing is redistributed (fits D23)
BlenderKit free assets CC0 or "Royalty Free"; Royalty Free may not be passed on as a library blend, via add-on and account very many, often high quality heavy, needs Blender to convert no as a source; single CC0 pieces only by hand
FreeCAD library (parts and BIM objects) CC BY 3.0 (assumption, licence file to check) FCStd, STEP, partly IFC technical parts, some doors, windows, sanitary needs conversion maybe later for doors and windows
BIM objects from manufacturers and portals (e.g. BIMobject) own terms, usually no redistribution IFC, RFA exact products heavy no for the registry; IFC only as import of the person's own files
react-planner MIT (code) JS catalogue (lines, holes, items) small demo catalogue; last change April 2024 — no assets, but confirms the split "in the wall" (holes) versus "in the room" (items) used above
Amazon Berkeley Objects CC BY-NC 4.0 glTF many real products — no (non-commercial)
Trimble 3D Warehouse, Sketchfab, Objaverse per model; 3D Warehouse forbids collections various huge, mixed — no for the registry

Product lookup for #46: Open Products Facts (database under ODbL) can name a product by its EAN at runtime, on request, with a credit line; its data is not copied into the registry. Manufacturer 3D models ("view in your room") stay links the person opens, not packages.

Recommended start: basis (doors, windows, passages, blocks for the room scan categories), furniture_kenney and furniture_kaykit (CC0), materials_ambientcg (CC0); then the Zsky props with credit, then a Sweet Home 3D import for one's own libraries.

Swapping blocks for models

A room scan delivers furniture as blocks with a RoomPlan category (sofa, bed, table …). With a furniture package installed, the Workbench suggests a model per block ("3 blocks look like a sofa, show them as 'Sofa, 3 seats'?"); the footprint stays, the model is scaled to it within its allowed range. This works in the list view as well as in the plan.

Open questions

  • The publisher name (until then domusvox). The registry lives at registry.domusvox.de.
  • When signing starts (step 2), and who signs: the registry CI alone, or also Sigstore provenance per archive as in our releases (D40).
  • The sandbox for function packages from catalogues (Web Worker or WebAssembly) and their permission list.
  • Whether looks (#112) become packages already now or later.