NOTE: hyperscript is still in very early development and may change dramatically between releases. Please bear this in mind, and jump on the #hyperscript discord channel to work with us as we develop the language. Thank you!

intro

hyperscript is a scripting language designed for the web, inspired by HyperTalk

hyperscript features include:

hyperscript is a companion project of htmx

examples

<script src="https://unpkg.com/hyperscript.org@0.0.4"></script>

<button _="on click toggle .big-text">
  Toggle the "big-text" class on me on click
</button>

<div _="on mouseenter toggle .visible on #help until mouseleave">
  Mouse Over Me!
</div>
<div id="help"> I'm a helpful message!</div>

<button _="on click log me then call alert('yep, it\’s an alert')">
    Show An Alert
</button>

demos

Here are the examples above in demo form:

Mouse Over Me!
I'm a helpful message!

haiku

the unknown button
so often inscrutable
now says what it does