Kitten

Technical Manual sections

Every Kitten server also serves Kitten’s own web app, from web/. It is made of the same kinds of files as any Kitten app, and it has its own dependencies in web/package.json. The build installs them and copies the folder into the distribution, and the Kitten Server creates its routes with the same Routes class it uses for the app, from paths.KITTEN_WEB_APP_DIRECTORY_PATH (app/web/ in the data home). (See Initialisation (asynchronous) for the order in which the server adds these routes and the app’s routes.)

A 🔒 at the end of a folder name means that its routes require sign-in. It is not part of the URL (see The route handler). Only files under web/💕/ and web/🐱/ become Kitten routes.

Small Web protocol routes (/💕/):

Kitten routes (/🐱/):

The Kitten Server itself adds two more routes:

Source code:

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.