_hyperscript

_hyperscript[57] is a programming language that can be used in HTML files to implement interactive features like event handling. It also supports asynchronous operations like fetching data from a server by sending HTTP requests.

_hyperscript is based on the HyperTalk[58] language which was used in Apple’s HyperCard[59] application. According to Wikipedia, HyperCard “is among the first successful hypermedia systems predating the World Wide Web.”

Like HyperTalk, _hyperscript uses an English-like syntax. It emphasizes readability, but it may feel more difficult to write at first because the syntax is different from typical programming languages. It’s insensitive to whitespace, including indentation and newlines, which are typically ...

Get Server-Driven Web Apps with htmx now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.