_hyperscript
a small scripting language for the web
Hyperscript is a small scripting language for web pages, written in JavaScript and included in a page via a single script tag. Instead of writing event handling code in a separate JavaScript file, you write short scripts directly on HTML elements using a special attribute. The README's quick example shows a button that toggles a CSS class when clicked, written as: on click toggle .clicked. Another shows a button that shows an alert, waits two seconds, then removes itself from the page.
The language is inspired by HyperTalk, a scripting language from Apple's HyperCard software in the late 1980s, which was known for reading like plain English. Hyperscript follows a similar style: commands read as short imperative sentences describing what should happen and in what order, with timing words like "then" and "wait" built into the syntax.
It is commonly used alongside htmx, another project from the same author that handles server communication without writing JavaScript. Together they form an approach to building interactive web pages by writing attributes on HTML rather than JavaScript code in separate files.
The README itself is very brief and points to hyperscript.org for full documentation. Installation is via a script tag pointing to a CDN, or via npm as an ES module. The repository includes a test suite run with npm test and a build step run with npm run build. Contributions should include tests in the /test directory and documentation updates in /www.