FormaJS

Reactive DOM library with fine-grained signals, islands architecture, and SSR hydration. ~15KB gzipped.
Install
npm install @getforma/core
Quick Start
import { createSignal, h, mount } from '@getforma/core';
const [count, setCount] = createSignal(0);
mount(() =>
h('button', { onClick: () => setCount(count() + 1) },
() => `Clicked ${count()} times`
),
'#app'
);
Features
- Fine-grained reactivity — signals, effects, computed values via alien-signals
- Virtual DOM —
h() function with reactive attribute and text binding
- Islands architecture —
activateIslands() for partial hydration of server-rendered HTML
- Conditional rendering —
createShow(), createSwitch() with cached branches
- List rendering —
createList() with keyed reconciliation, handles 50K+ rows
- State management —
createStore() with deep reactivity, history, persistence
- SSR support — server-side rendering runtime with hydration
Ecosystem
License
MIT