Documentation navigation

A typed UI toolkit for Effect

Interfaces that stay true to your model.

wseffect brings the Elm architecture to Effect: explicit models, typed messages, pure updates, and accessible components you can compose from a single source of truth.

Static-first by design. Use Astro or any host for content; render examples at build time and opt into runtime only for the interfaces that need it.

One architecture, from control to application

Build small controls with Foldkit, compose complete experiences with Themes and Foldkit UI, then add routing, persistence, offline support, and code generation as your application grows.

Design and components

Explore the accessible component system and its design tokens.

Themes →
Foldkit UI

Built around explicit state

type Model = { count: number }
type Message = { _tag: 'Increment' } | { _tag: 'Decrement' }

const update = (model: Model, message: Message) =>
  message._tag === 'Increment'
    ? { model: { ...model, count: model.count + 1 } }
    : { model: { ...model, count: model.count - 1 } }

Updates are ordinary typed transitions; commands and subscriptions make effects explicit. Read the Model–Message–Update–View guide or browse the source on GitHub.