Also, if you are looking at the code, notice how I’m persisting and retrieving custom JavaScript objects from the database and generally interacting with the database as I would with any JavaScript object.
e.g., https://codeberg.org/kitten/kittens.small-web.org/src/branch/main/upload.post.js#L80
That’s thanks to the built-in JavaScript Database (JSDB) that Kitten uses:
https://codeberg.org/small-tech/jsdb#javascript-database-jsdb
To see how the custom classes are created, see the database app module:
e.g., https://codeberg.org/kitten/kittens.small-web.org/src/branch/main/app_modules/database