Skip to content

overview

Everything you import from @statorjs/stator comes through an explicit subpath — there is no root export.

SubpathWhat it isStability
/serverApp assembly, routing, dispatch, storesStable
/machineThe isomorphic state-machine engine (browser-safe)Stable
/templatehtml, read, control flow, directivesStable
/clientIsland authoring: StatorElement, use, bind, dispatchStable
/devThe Vite-embedded dev serverStable
/buildProduction build + type syncStable
/componentsBuilt-in server components (JsonLd)Stable
/compilerThe .stator compilerInternal
/viteThe Vite plugins the dev server and build useInternal

The seven stable subpaths are semver-stable: their exports only break in a major. compiler and vite are internal seams — they exist as subpaths because the framework’s own tooling imports them, but their shapes may change in a minor. Don’t build on them.

The package ships its src/ TypeScript directly — no dist/, no bundles. Vite (dev, islands) and tsx (production server) consume TS natively, so a build step would only add a layer where sourcemaps and stack traces can lie. Your app’s toolchain must be able to load TS, which every supported entry point already is.