Mount in the browser
Call render() to mount a view. Keep state inside its generator and use
signals when several components need to observe the same value.
A browser-native web framework with generator components, compiled DOM slots, and lazy revival.
npx @fierst/aster@1.2.3 my-app
Start with a component and work through routing, streaming, and server rendering.
Read the docsRun a generator in the guide, switch to its source, and copy the component and CSS.
See the examplesLook up component lifecycles, reactive primitives, and DOM rendering APIs.
Browse the APIAster keeps a JavaScript generator alive for the lifetime of a component. Setup runs once. A click changes a local variable, then the generator yields its next view. The compiler has already identified the button’s dynamic text slot.
For multi-step interactions, yield* hands the view to a child workflow.
When a confirmation returns, the parent can continue on the next line. A
finally block gives the step a place to release its resources when the user
leaves.
export function* Counter() {
let seats = 1;
for (;;) {
yield (
<button onClick={() => seats++}>
Seats: {seats}
</button>
);
}
}
Run the local-state example
Call render() to mount a view. Keep state inside its generator and use
signals when several components need to observe the same value.
Render a document on the server. Aster can stream async results, preload an island on focus, and claim its existing DOM on the first supported interaction.
Routing, streaming, and revivalExpose a component as a custom element with typed attributes, or put it in an Astro island. In Astro, the page chooses the activation directive.
Use Aster inside AstroA client-mounted counter using Aster 1.2.3 loaded 6.56 KiB of gzipped JavaScript in our production fixture. An app with routing, charts, fonts, and network requests has a different budget.
Inspect the measurements and tradeoffsTry it on a workflow where pausing, resuming, and canceling are part of the product. A small review flow can tell you more about the programming model than a counter.
If you already rely on a renderer-specific component library, include migration and maintenance in the decision. An Astro island gives an existing content site a way to try one interaction at a time.
Add accessible forms, overlays, and data displays to your Aster project.