AsterDocsv1.2.3

Docs / Architecture

Vite+ and the runtime

Aster uses a build step to identify slots in JSX. The browser needs the resulting templates and their runtime. Keeping the compiler in a separate entry point lets an application choose where that build step runs.

What runs during a build?

The Aster Vite plugin parses JSX and TSX with Oxc before Vite removes TypeScript syntax. It emits the template, bindings and source mappings. For an exported component that can become an island, it records the module and export so the browser can find the component later. A production client build emits the files and manifest the server needs to construct browser URLs. A component must be reachable from the client build for the manifest to include it. Configure the plugin and build the client.

What runs in the browser?

Application modules import the runtime from @fierst/aster. Aster provides separate entries for the router and revival loader. A client using tagged html templates can write its views directly in JavaScript. The Vite plugin supplies JSX binding transforms, island metadata and development updates. Choose the entry point that provides the behavior your application needs. Compare JSX and tagged templates.

How to inspect the cost

Build an entry that renders the interaction you intend to ship. Count the JavaScript that the browser must fetch to use it, including shared dependencies. The comparison page includes the source and build settings for one small counter, with compressed bytes and a description of the timing method. Inspect the measured fixture.

Summary of the architecture decision accepted on 2026-11-24.