Sitekit
Sitekit is a build tool. It makes a static room catalogue from data files. It then checks the catalogue in a browser before release.
- Runtime
- Node.js 22 or later; Python 3.13 or later with Playwright for the browser audit
- Status
- 0.1.0 source preview, no release
- Source
- mariyaholic/sitekit, commit
13c87e7 - License
- Apache-2.0
Build a room catalogue
- Install Node.js 22 or later and Python 3.13 or later.
- Install the Python development requirements into a virtual environment:
.venv/bin/pip install -r requirements-dev.txt - Install the Playwright Chromium browser:
.venv/bin/python -m playwright install chromium - Run the builder:
node build.mjs
The builder writes dist/ from the example catalog examples/room-catalog/catalog.json. The file requirements-dev.txt contains the exact reviewed Python versions.
To run the build and the freshness check together, run ./scripts/build.sh. On Windows, run scripts/build.ps1. The generated dist/ and audit-report.json are local outputs. The repository does not track them.
Check the build
- After each edit, run
node build.mjs --check. This command verifies the generated output. - Run the browser audit:
.venv/bin/python audit.py - Run the test suite:
npm test
The audit checks the room and item counts, the navigation, the details interaction, the reduced-motion behaviour, the theme tokens and the horizontal overflow. It checks at narrow and wide viewports.
The builder implements a narrow room-catalogue contract and a limited subset of JSON Schema. Read the contract before you add fields.
Command reference
| Command | Purpose |
|---|---|
node build.mjs | Render the example catalog into dist/. |
node build.mjs --check | Verify that dist/ is byte-identical. The command never writes. Exit code 1 means stale output. |
node build.mjs --catalog <file> --out <dir> | Build another compatible catalog. |
node build.mjs --warn-unsupported | Warn instead of fail on unsupported schema keywords. |
.venv/bin/python audit.py | Audit dist/ against the catalog on a loopback server. |
python3 audit.py --browser chromium --no-report | Name the browser and write no report file. |
npm test | Run the Node unit and golden tests plus the Python pytest suite. |
| Tool | Code | Meaning |
|---|---|---|
| Builder | 0 | Success |
| Builder | 1 | Invalid input or stale output |
| Builder | 2 | Usage or input/output error |
| Audit | 0 | All checks pass |
| Audit | 1 | A check failed |
| Audit | 2 | Setup failed (missing Playwright, browser or config) |
The audit fails when the browser is missing. It never passes silently.
Configure the audit
The audit reads the file audit.config.json. Pass the file with --config audit.config.json. CLI flags override the values in the file.
The file sets the audit viewports, the tokens and the paths. The example file sets a narrow and a wide viewport, and the token selectors under --sk-. See docs/CONTRACT.md for details.
Use the catalog contract
The builder validates a catalog against a documented subset of JSON Schema. The subset has six keywords: type, properties, required, items, enum and additionalProperties.
An unsupported keyword in a supported subschema fails the build by default. Without this default, partial validation could look like full JSON Schema support.
A room id maps to a fixed asset path: assets/rooms/<id>.svg.
docs/CONTRACT.md documents the page contract, the ARIA wiring and the audit report shape. ROADMAP.md lists what stays out of scope.
Project layout
| Path | Purpose |
|---|---|
build.mjs | Builder CLI |
src/ | Argument parsing, subset validator, renderer, freshness check |
audit.py | Audit CLI |
sitekit_audit/ | Config merging, expectations, server, browser checks, report |
examples/room-catalog/ | Example catalog, schema, CSS/JS and room illustrations |
tests/node/ | Node test unit and CLI tests |
tests/python/ | Pytest config, server, report and browser tests |
tests/golden/ | Recorded golden HTML and Markdown |
docs/CONTRACT.md | Supported v1 contract |
Keep everything local
The builder never uses the network.
The audit starts a loopback HTTP server on 127.0.0.1 with a random port. The server serves the local built site. Playwright drives a local browser. Nothing is uploaded and there is no telemetry.
You install Playwright and its browser one time. This is a developer step.
Limits
Sitekit is a source tool. It is not a general-purpose site generator and not a verified npm release.
Sitekit is in early development with the v1 scope. Sitekit is not affiliated with MetaQuotes. MetaTrader 5 (MT5) is a MetaQuotes trademark, and sitekit contains no MT5 integration.
This project ships source only. It does not ship Windows binaries. Windows binaries, if someone produces them in future, are not code-signed yet. Windows SmartScreen may warn when they are downloaded or run.
The Python requirement files pin the reviewed runtime and test dependencies exactly. See THIRD_PARTY.md for the dependency licence policy and asset provenance. For test guidance, see docs/TESTING.md.
Release changes
0.1.0, unreleased source
- Added: catalog-driven static generation and an optional browser audit.