Kitten

Reference sections

The global kitten object has the following members:

Rendering

Pages and components

Data

The server and the app

Libraries

Cryptography

Utilities

Introspection

Kitten provides special properties and methods that make it easier to use the Kitten Shell (REPL) to interact with and debug your app.

You have the following introspection endpoints on the global kitten object:

In development, when a new page connects, you will see code in the console that you can copy and paste to get a reference to that page in the REPL.

Once you have a reference to the page or any other KittenComponent instance, you can use the following properties and methods:

If you use WezTerm and you want to quickly copy the page = … line to get a reference to the page using Quick Select Mode, add this to the object you return from your ~/.config/wezterm/wezterm.lua:

quick_select_patterns = {
  "^page = .*?$"
},

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.