Superpowers
in a basic stack

Game changing packages for HTML,
CSS and Javascript projects.

Advanced patterns for HTML, CSS, JS & static hosting.

Some features

We designed extra features for the basic
HTML - CSS - Javascript stack

Dynamic route matching

routerx parses :id-style path parameters, query strings, and hash fragments automatically, so params arrive ready to use in your route handler.

Route guards & lifecycle hooks

routerx guards block navigation until your check resolves, with hooks. Pair with restate to gate routes on reactive auth state.

Lazy-loaded routes

routerx lazy() code-splits route handlers behind dynamic imports, so heavy pages load only when visited.

Built-in URL sanitization

routerx sanitizes paths and parameters against XSS and path traversal automatically, and exposes a method to check links.

State management

restate gives you global or scoped reactive state with predictable mutation semantics, built on ES6 proxies.

Derived/Computed state

restate $computed() lets you declare derived values that recalculate automatically from their dependencies.

Persistence strategy

restate PersistencePlugin syncs state to localStorage or IndexedDB with versioning and restore on load.

Templating

reflectx binds any state object to your HTML with declarative directives—text, attributes, and structure stay in sync.

Reactivity

restate tracks dependencies on your state, and reflectx propagates those changes to the DOM automatically.

Declarative conditional rendering

reflectx x-if lets you show or hide UI from state without imperative DOM mutations.

List diffing and reconciliation

reflectx x-for with x-key reconciles lists with minimal DOM updates and preserved item state.

Undo/redo state history

restate HistoryPlugin records mutations so you can step backward and forward through state changes.

Immutable state enforcement

restate ImmutablePlugin adds a strict mode that blocks direct mutation when you need immutable state discipline.

Loading strategies

monitor-loading tracks custom element readiness across your page and coordinates a unified loading experience.

Design system

re-theme discovers design tokens from CSS variables and propagates theme colors across your components.

Consistent behavior across all major browsers.

Packages

Framework-agnostic and fully compatible
with the web platform

See packages on npm See demos

routerx

Client-side Router library for both MPA and SPA in static hosting environments.

View package

restate

A minimal but extensible reactive state management library built on ES6 proxies.

View package

reflectx

Templating and DOM binding JS library for Custom Elements and plain HTML.

View package