Domma Reactive User Manual
Text size
Font
Line spacing
Margins
Theme
Layout
Contents
- Welcome to Domma Reactive
- 01 Getting started
- 02 Reactive state
- 03 HTML and bindings
- 04 Components
- 05 Reference
API reference
Updated by Darryl Waterhouse on 17 October 2026 · 1 min read
Thirty-three names. Anything not listed here is an internal detail and may change without a major version bump.
State
| Name | Signature |
|---|---|
observable |
(initial, {equals?}) → {value, peek(), set(v), subscribe(fn), extend(spec)} |
observableArray |
(initial?, {equals?}) → {value, length, peek(), set(a), remove(valueOrTest), removeAll(), indexOf(v), replace(old, new), destroy(valueOrTest), destroyAll(), subscribe(fn), extend(spec), …mutators} |
isEqual |
(a, b) → boolean - the deep comparison the change gate uses |
Graph
| Name | Signature |
|---|---|
computed |
(fn | {read, write}, {label?}) → Computation - read via .value or .get(); writable only with write |
effect |
(fn, {label?}) → Computation - runs immediately; .dispose() to stop |
untracked |
(fn) → any - run fn with dependency collection suspended |
flushSync |
() → void - drain the pending queue now, synchronously |
Dep |
class - one reactive slot; track(), trigger() |
DepMap |
class - lazily-populated keyed collection of Deps |
Computation |
class - the node type behind computed and effect |
trackingProxy |
(target, depFor, {onSet?}) → Proxy - wrap a host store's data so reads are tracked |
Bindings
| Name | Signature |
|---|---|
compile |
(template, data, container, renderFn?, options?) → controller |
applyBindings |
(data, rootElement) → handle |
annotate |
(template, options?) → {annotated, bindings} - string-only; no DOM needed |
scanBlocks |
(template) → block records - string-only |
TemplateCompiler |
the above grouped as an object, plus resolvePath |
registerBinding |
(name, handler) → handler |
unregisterBinding |
(name) → boolean |
registerExtender |
(name, fn) → fn - throws on a bad name |
unregisterExtender |
(name) → boolean - refuses the built-ins |
registerComponent |
(name, {template, create?}) → definition - throws on a bad definition |
unregisterComponent |
(name) → boolean |
createRootContext |
(data) → context |
createChildContext |
(parent, data, index?, length?) → context |
Expressions and rendering
| Name | Signature |
|---|---|
parseExpression |
(source, options?) → AST | null |
evaluateAst |
(ast, context) → any |
evaluateExpression |
(source, context, options?) → any |
compileExpression |
(source, options?) → (context) => any | null |
expressionDependencies |
(sourceOrAst, options?) → Set<string> |
registerHelper |
(name, fn) → fn - throws on a bad name |
unregisterHelper |
(name) → boolean |
clearExpressionCache |
() → number - entries dropped |
renderTemplate |
(template, data, {partials?}) → string |
Back where you left off.