okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

albedocmake: strata_kernels links strata_kernels_cpu (iq_kernels.cu reads the latent colscale table from expert_layout.cpp; strata-q36ref failed to link)a4af4df61

main
7 folders7 files

files

audit-fixes/
docs/
public/
scripts/
server/
src/
tests/
.gitignore86 B
README.md4.3 KiB
index.html2.0 KiB
package-lock.json71.2 KiB
package.json1.5 KiB
tsconfig.json598 B
vite.config.ts1.2 KiB

Strata app: developer guide

This folder is the app's Node host (server/) and its web interface (src/, React and Vite). The desktop shell that wraps them is ../desktop (Tauri). The engine and Strata Control are Python and C++ and live elsewhere in the repository; see docs/SOURCE_INSTALL.md and packaging/README.md.

Start from a fresh clone

You need Node 24.12 or newer (engines in package.json) and npm. Nothing else: no model, no engine, no GPU, no sibling design folder.

cd apps/host
npm ci
npm run build          # makes dist/, which the preview and `npm run serve` need (dist/ is not checked in)
npm run preview:ui     # simulated hardware and models; open http://localhost:5272/#/models

preview:ui starts an isolated host and a fixture server on temporary data and prints "UI PREVIEW ONLY". Nothing it shows is real: no engine is started, no model is loaded, no files outside its temporary folder are touched. Ctrl+C stops it.

CommandWhat it does
npm run buildBuilds the interface into dist/.
npm run typechecktsc --noEmit.
npm testThe host and interface tests (tests/*.test.mjs, node --test). They write to scratch copies of the per-user folders, never to your own profile. A test that hangs fails after 10 minutes (STRATA_TEST_TIMEOUT_MS).
npm run devThe source host (port 8791) and the Vite dev server (port 5199) together; Vite proxies /api to the host.
npm run serveThe host with the built dist/ (run npm run build first).
npm run checkTypecheck plus the interface audits (audit, contrast, measure, luminance).

Preview, source host and packaged Control

The version numbers in package.json are the app's. They are checked against docs/data/release.json by python tools/release_manifest.py --check.

Styles, icons and fonts

The checked-in files are the source. There is no generator and no sibling design folder.

Languages

The app speaks English, Chinese, Japanese, German, French, Spanish, Russian, Portuguese and Korean. The English text is the key: src/locales/en.json (with fix-en.json, tune-en.json and tools-en.json) holds every string, and each language has the same four files (fr.json, fix-fr.json, ...).