ceres

Web development for me.

ceres is a UI framework for the web built around observables.

const Greeter = $createComponent<{ greeting: string }>(($props) => {
   const name = $store("you");

   return $fragment(
      $element(
         "div",
         {},
         $element("input", { type: "text", bind: { value: name } }),
         $element(
            "button",
            { on: { click: () => (name.value = "ceres") } },
            "Greet myself"
         )
      ),
      $element("span", {}, $format`${$props.greeting} ${name}!`)
   );
});

const app = Greeter({ greeting: "Hey" });
app.mount(root);

It works by making small changes to the DOM whenever your data changes, and it feels like writing svelte with hyperscript.

Directives

Special renderables

App state

Note

ceres is a WIP framework I’m writing for fun using some of my free time.

I’m gonna use it. You shouldn’t.

Indices and tables