Skip to content

API reference

Everything exported from @madenowhere/phaze. The subpaths you import directly when usedphaze/store, phaze/portal, phaze/catch, phaze/time, phaze/match, phaze/numeric, phaze/list, phaze/revalidate, phaze/hydrate — are documented inline below or on their own pages.

The rest you don’t import by hand: phaze/static and phaze/defer are emitted by the compiler (from staticSubtreeHoist and the defer: namespace); phaze/dom is a low-level runtime/compiler barrel (only when you’re driving the DOM yourself); phaze/ssr-internal is SSR-only internal plumbing; and phaze/jsx-runtime / phaze/jsx-dev-runtime are the automatic JSX-transform targets (set once via jsxImportSource).

  • Reactivitysignal, computed, effect, batch, untrack, cleanup, abortSignal, listen, and scheduling.
  • Renderingrender, hydrate, Fragment, refs, and the phaze/dom primitives.
  • Flow components<For>, <Portal>, <Catch>, and sharing state without prop-drilling.
  • Subpath exportsphaze/dsl, phaze/time, phaze/match, phaze/numeric, phaze/list, and the full subpath map.
Export(s)Import pathReference
signal@madenowhere/phazeReactivity › signal
computed@madenowhere/phazeReactivity › computed
effect@madenowhere/phazeReactivity › effect
batch@madenowhere/phazeReactivity › batch
untrack@madenowhere/phazeReactivity › untrack
cleanup@madenowhere/phazeReactivity › cleanup
abortSignal@madenowhere/phazeReactivity › abortSignal
listen / listenOn@madenowhere/phazeReactivity › listen
render@madenowhere/phazeRendering › render
hydrate@madenowhere/phaze/hydrateRendering › hydrate
Fragmentphaze/jsx-runtime (automatic)Rendering › Fragment
JSX ref shapesRendering › Refs
setText, setAttribute, setClass, setStyle, template, placeNode, hasMoveBefore, abortNode@madenowhere/phaze/domRendering › DOM primitives
For@madenowhere/phazeFlow components › <For>
Portal@madenowhere/phaze/portalFlow components › <Portal>
Catch@madenowhere/phaze/catchFlow components › <Catch>
s, c, watch, phaze@madenowhere/phaze/dslSubpaths › DSL & directives
store@madenowhere/phaze/storeStore
interval, timeout, seconds, minutes, hours, days, weeks, years, ms@madenowhere/phaze/timeSubpaths › phaze/time
is, not, augmented signal / s@madenowhere/phaze/matchSubpaths › phaze/match
inc, dec, add, sub@madenowhere/phaze/numericSubpaths › phaze/numeric
remove, push, prepend, replace, patch, matches@madenowhere/phaze/listSubpaths › phaze/list
staticSubtree@madenowhere/phaze/static (compiler-emitted)phaze/static
withRevalidate@madenowhere/phaze/revalidatephaze/revalidate
other subpaths (/defer, /ssr-internal, /jsx-runtime, …)Subpaths › Subpath exports