Skip to content
Xote 7.2 is out — see what’s new →

Signals,
all the way down.

Build applications with fine-grained reactivity while leveraging a robust type system with ReScript.

Get started →
npm install xote
↓ See it in code
Examples

See some examples. Then try it yourself.

Have a quick look at how small applications written in Xote look. Then try it yourself in the playground.

All examples →
Counter.res
1open Xote
2
3@xote.component
4let make = () => {
5 let count = Signal.make(0)
6 let doubled = Computed.make(() => Signal.get(count) * 2)
7
8 <button onClick={_ => Signal.update(count, n => n + 1)}>
9 {"Doubled: " ++ Int.toString(Signal.get(doubled))}
10 </button>
11}
count = 0

Click it: only the button’s text changes.

How it works

Meet the triad. The core of everything in Xote.

Signals hold state, computed values derive from it, and effects carry changes out to the page. That’s everything you need before you build.

Read the guide →
  1. 01 · Source

    Signal

    Holds a value and tells whoever reads it when it changes.

    1let count = Signal.make(0)
  2. 02 · Derived

    Computed

    Derives a value from other signals and keeps it current on its own.

    1let doubled = Computed.make(() =>
    2 Signal.get(count) * 2
    3)
  3. 03 · Reaction

    Effect

    Runs whenever what it reads changes: update the page, save, log.

    1Effect.run(() => {
    2 Console.log(Signal.get(doubled))
    3 None
    4})
Why it matters

Less to learn and hold. Less to break.

A small API on top of a sound type system: fewer concepts to hold in your head, and fewer surprises once it ships.

Fast by default

No virtual DOM. Updates touch only the nodes that changed.

Sound types

ReScript catches mistakes before they reach the browser.

Small surface

Sixteen modules you can keep in your head.

Full stack

Router, SSR and hydration when you need them.

Start with
one signal.

Install the package, add the JSX transform, and render your first component in a few minutes.

Read the quick start →
npm install xote