CycleWire documentation
CycleWire turns server-rendered HTML into instant interactivity on intent: one small delegated listener per event type, and action code imported only when someone reaches for it.
Start here
Section titled “Start here”- Getting started: install, first action, first trigger.
- Concepts: how activation, preloading and the registry fit together, and how this compares with Qwik.
- Actions: writing handlers, and what the context object gives you.
Reference
Section titled “Reference”- HTML API: every attribute.
- JavaScript API:
start,register,run,observeand friends.
- TypeScript: typed handlers and props, and action names checked by the compiler.
- Command line:
cyclewire checkfinds unknown actions and invalid values in your templates;cyclewire typeswrites the declarations. - Vite plugin: an actions directory as chunks, edits without reloads, and the declarations kept up to date.
- Devtools: an in-page inspector for actions, runs, the trace, triggers and bindings, as a plugin, from code or as a bookmarklet.
Optional modules
Section titled “Optional modules”- Core first, modules when you need them: what the core covers on its own, when to add each module, and how to load a module only with the action that needs it.
- css: stylesheets that arrive with the actions that need them.
- dom:
htmltemplates escaped by context, inert fragments,swap,transition. - morph: update the page from server HTML while keeping state.
- signals: reactivity that resumes from state the server serialized.
- stream: the server changes the page with HTML messages, over Server-Sent Events or in any response.
- prefetch: data fetched on intent, next to the action’s code.
- request: links, forms and buttons that fetch HTML and put it into the page, declared in markup.
- early: taps and typing before CycleWire starts, kept and run once it does.
- plugins: the Bootstrap data-API plugin, and writing your own.
Guides
Section titled “Guides”- Shadow DOM and Web Components
- Integrations: Laravel, Rails, Django, PHP, Astro, Vite, React, Vue, Svelte, htmx, Turbo.
- Server helpers: a tested
cw()for Laravel, Rails, Django, plain PHP and JSX that writes the attributes, escapes them and rejects misspelt names. - React, Vue, Svelte and other frameworks: islands that CycleWire loads and hydrates, and CycleWire actions inside components.
- Popular libraries: Flatpickr, SweetAlert2, DataTables, jQuery and more, each loaded when it is needed.
- Examples: runnable React, Vue, Svelte and library examples.
- CSS strategy: what to defer, what not to, and stylesheets that ship with an action.
- Performance, and the benchmark: one page built with each stack, measured the same way.
- Security
- Browser support
- Releasing, for maintainers.