Kitten

Reference sections

Kitten comes with several client-side libraries which are automatically served at runtime that you can use in your sites/apps.

The page tag provides a high-level interface for including most of them on your pages.

For example, to include htmx, you can add the following page tag to any HTML fragment that ends up on your page:

<page htmx>

You can also include any of them in your sites/apps manually, just like any other client-side script, by knowing their paths:

In /🐱/library/:

Library nameFile namePage tag attribute nameVersionNotes
Kitten cryptography modulecrypto-1.jsn/a (ES module)^1
Kitten key store modulekey-store-1.jsn/a (ES module)^1A signed-in person’s identity as non-extractable Web Crypto keys in IndexedDB.
htmxhtmx-2.jshtmx^2Own fork.
htmx WebSockethtmx-ws-2.jsws^2
htmx idiomorph extensionhtmx-idiomorph-0.8.jsidiomorph^0.8.0idiomorph from npm with Kitten’s own copy of the extension.
Alpine.jskitten-alpine-1.jsalpine^3Alpine.js, started by Kitten after every module on the page. alpinejs-3.js is still served for sites that include it by path.
kittenRuntimekitten-1.jsn/a (always included)^1Configures htmx and defines kitten.ready.
Development-time hot reloadkitten-hot-reload-1.jsn/a (development only)^1
Prism (CSS)prism-1.cssn/a^1Used internally to syntax highlight Kitten error messages. Also see built-in Highlight.js syntax highlighter.
Water (CSS)water-2.csswater^2

You can access the file names of htmx, its WebSocket and idiomorph extensions, Alpine.js, Water, and kitten-1.js on the kitten.libraries object, as the htmx, htmxWebSocket, htmxIdiomorph, alpineJs, water, and kittenRuntime properties. In production, the htmx, htmxIdiomorph, alpineJs, and water properties contain the minified file names. The htmxWebSocket and kittenRuntime properties are the same in production.

In production, htmx and Alpine.js are also gzipped (.min.js.gz).

The -N notation specifies the major version of the library. Since Kitten sites automatically update, if there is a major version update to a library, it will be added alongside previous versions so as not to break existing sites. So if htmx 2.x.x comes out, for example, with breaking changes and Kitten starts supporting it, it will be added as htmx-2.js. All minor and patch updates will be automatically updated without changing the name of the include.

Like this? Fund us!

Small Technology Foundation is a tiny, independent not-for-profit.

We exist in part thanks to patronage by people like you. If you share our vision and want to support our work, please become a patron or donate to us today and help us continue to exist.