Core event handling, DOM reads and writes, element visibility.
Your first hyperscript. Learn basic event handling and DOM updates.
Control element visibility with simple show/hide commands.
Events are first class citizens. Send custom events between elements.
HyperCard-inspired syntax. Tell multiple elements what to do at once.
Toggle CSS classes, HTML attributes, and CSS properties.
Add and remove CSS classes to create interactive UI elements.
Toggle HTML attributes (@disabled, @required) and CSS properties (*display, *visibility).
Input handling, validation, and form submission.
Modal dialogs, native HTML dialog element, and smart toggle patterns.
Auto-detect and toggle dialog, details, summary, and select elements.
Tab UIs, SPA-style history management, and boosted links.
SPA-style URL management with push and replace commands.
Automatic AJAX navigation for links and forms. Like hx-boost!
API calls, dynamic content loading, and async patterns.
Be async with no extra code. No promises, async/await, or callbacks needed.
CSS transitions, color cycling, view transitions, and fade effects.
Press and hold to cycle through colors. Event-driven loops with CSS transitions.
Smooth CSS-powered page transitions using the View Transitions API.
Draggable elements and sortable lists with visual feedback.
Reusable drag behavior with custom events and parameters.
Intelligent DOM swapping, morphing, and multi-target updates.
Intelligent DOM swapping with morphing. Preserves form state, focus, and scroll position.
Update multiple page sections from a single response using partials.
JavaScript integration, clipboard operations, and browser APIs.
Enhance existing code. Run inline JavaScript and pass parameters.
Copy to clipboard button with visual feedback using the Clipboard API.
Pre-built, tree-shakeable behaviors for common UI patterns.
Interactive demo of 11 behaviors: Draggable, Removable, Toggleable, Sortable, Resizable, Clipboard, AutoDismiss, Tabs, and more.
Custom element that runs LSE (LokaScript Explicit Syntax) JSON through the hyperfixi runtime — behavior as data that LLMs and tools can emit. Validates, wires triggers, and dispatches lifecycle events; no _= attribute required.
Write hyperscript in your native language. Supports 13 languages with grammar transformation for proper word order.
Live examples with native idioms. Select a language and see real hyperscript code.
One LLM command in 8 languages — SVO, SOV, VSO — all compile to byte-identical LLMPromptSpec JSON.