v1.2.3 WEB FRAMEWORK

Build closer to the browser.

A browser-native web framework with generator components, compiled DOM slots, and lazy revival.

npx @fierst/aster@1.2.3 my-app
Release workflowLIVE EXAMPLE

Follow a click through a generator.

Aster 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.

Try confirming and canceling a change
Counter.jsx
export function* Counter() {
  let seats = 1;

  for (;;) {
    yield (
      <button onClick={() => seats++}>
        Seats: {seats}
      </button>
    );
  }
}
Run the local-state example

Decide when a component wakes up.

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.

State, bindings, and cleanup

Send HTML first

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 revival

Join an existing page

Expose 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 Astro

What does the runtime cost?

A 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 tradeoffs

Why not just use CrankJS?

When would you choose Aster?

Try 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.

Meet AsterUI.

Add accessible forms, overlays, and data displays to your Aster project.

Explore AsterUI