Skip to main content

Search

Items tagged with: kitten


Just deployed a new Kitten¹ version 🎉

• Adds database backup and restore in your app’s Kitten settings page (/💕/settings)

• Upgrades version of JSDB from 4 to 5²

• You can emit and listen for events on the session object you get from `request.session` in your routes now.

¹ https://codeberg.org/kitten/app
² For migration notes, please see: https://codeberg.org/small-tech/jsdb#migrating-from-earlier-versions-of-jsdf

#Kitten #backupAndRestore #JavaScript #NodeJS #database #JSDB #sessions #SmallWeb #web #dev


🎉 Got database backup and restore working in Kitten (so every Kitten app gets it for free) and, with the new JSDB 5 support in Kitten, you can now make your model classes EventEmitters.

The session object is now an EventEmitter so you can now listen for events on the current session. In fact, I did just that in Kitten itself to implement the upload of the backup file during the restore process to make the Streaming HTML handler get notified once the POST route has the upload.

#SmallWeb #Kitten


Watching The Doors live at The Hollywood Bowl (1968)¹ and hacking on Kitten² and Domain³.

All in all, not a bad way to spend a Saturday afternoon in my book.

(I’ve almost got database backup/restore working in Kitten and I’ve just finished porting Domain to the latest Kitten with JSDB 5⁴.)

¹ https://yewtu.be/watch?v=Q76QBhKHQGc
² https://codeberg.org/kitten/app
³ https://codeberg.org/domain/app
https://codeberg.org/small-tech/jsdb

#TheDoors #Kitten #Domain #JSDB #SmallWeb #web #dev #music



Heads up for anyone playing with Kitten:

When the backup and restore branch lands, there will also be a breaking change to the Streaming HTML workflow.

Currently, when you expose an `onConnect()` handler, Kitten automatically adds `hx-ext='ws'` and `ws-send` attributes to your forms. Going forward, it will only add the former.

You’ll have to add `ws-send` (or Kitten’s syntactic sugar, `connect`) manually.

This is to allow hybrid workflows.

e.g.,

https://codeberg.org/kitten/app/src/branch/backup-and-restore/examples/streaming-html/file-uploads

#Kitten #SmallWeb


This is a niche one and will likely not affect any of the (three?) people playing with Kitten¹ right now but, in any case:

If you persist custom types to your Kitten database, you might be hit by this bug that was introduced when I released versions of Kitten with minified identifiers.

I briefly wrote about what happened, how you can identify if you’re affected, and how you can fix it here:

https://codeberg.org/kitten/app/issues/160#issuecomment-1775375

¹ https://codeberg.org/kitten/app

#SmallWeb #Kitten #web #dev #JSDB #JavaScript


Coming soon, views of your databases in your Kitten* app’s Settings page (/💕/settings) pages. And, after that, data export and import.

* https://codeberg.org/kitten/app

#SmallWeb #Kitten #data #databases #JSDB


Haha, forgot the footnotes, sorry:

¹ Small Web: https://ar.al/2020/08/07/what-is-the-small-web/

(Also see latest updates on: https://ar.al/)

² Domain: https://codeberg.org/domain/app

#SmallWeb #Domain #Kitten


@laguiri Because we’re clearly not getting funded from the EU/ngi/NLNet:

https://ar.al/2022/10/20/nlnet-grant-application-for-domain-rejected/

https://ar.al/2022/07/29/nlnet-grant-application-for-domain/

https://ar.al/2022/09/28/nlnet-grant-application-for-domain-first-update-questions-and-answers/

#SmallWeb #Domain #Kitten #Place #funding #EU #NLNet #NGI #Horizon2020


(If you’re wondering why the repository was 176MB to begin with, it’s because I was initially deploying from the /dist folder in the repository. But since then I created a special deployment site for Kitten and now Kittens come from, well, where else but https://kittens.small-web.org.)

:kitten: 💕

PS. It takes me ~3.5 seconds to build and deploy a new version of Kitten so its common for there to be multiple new versions in a day. Run `kitten update` to get the latest.

#SmallWeb #Kitten #web #dev


If you’re working on Kitten¹ from source, please clone a fresh copy.

I just rewrote history to reduce the repository size (correctly this time, including all references from branches, tags, etc.).

The good news is that – contrary to what the Codeberg interface is currently showing the size to be (176MB) – the repository is only about 5MB now so it should only take a couple of seconds to clone.

Related issue: https://codeberg.org/Codeberg-e.V./requests/issues/182

:kitten: 💕

¹ https://codeberg.org/kitten/app

#Kitten #dev #git


I’ve been looking for an ngrok alternative for a while now that’s (a) affordable (b) easy to use and (c) works with Kitten¹. Today, after testing a bunch of them again and getting fed up, I found LocalXpose that checks all the boxes.

I signed Small Technology Foundation up as an affiliate so if you use this link to check it out, we’ll get 40% of your $6/mo pro account fee should you subscribe:

https://localxpose.io/?via=kitten

¹ https://codeberg.org/kitten/app

#ngrok #LocalXpose #Kitten #SmallWeb #web #dev


I shall be installing this once I have cleaned up and prepped an old laptop that is being put aside for this very purpose. Then I shall start to play.

Just don't ever expect me to agree that #Kitten was a good name for this. ;-)


🎉 w00t! Just got deployment from pre-warmed servers working for the first time :)

Will post a screen capture once I’ve cleaned up the interface.

It’s single-digit seconds to deploy your own Small Web place (server) at your own domain! :awesome:

(I’ve been working towards this moment for the past six years so apologies if I sound like a giddy schoolboy.)

:kitten: 💕

#Kitten #Domain #SmallWeb


… and why I’ve had to build so much infrastructure in the past few years. It wasn’t just to reinvent the wheel but to have control over every aspect of the experience.

Well, it’s getting closer to being a reality and I’m really excited to hopefully finally be able to share what will be the culmination of the last decade of my work with more of you starting this year.

💕

PS. If you like where this work is heading, please consider funding it (https://small-tech.org/fund-us).

#SmallWeb #Kitten #Domain


Coming soon: it’s going to be trivial to deploy a different app on your Small Web server. Useful if you’re a dev and you’re playing around with different apps.

https://vimeo.com/932120624

(Also, notice the speed at which deployment happens. I’m one step away from implementing this in Domain using pre-warmed Kitten instances – called toasty kittens – thereby bringing the time it takes to deploy your own Small Web place down to a handful of seconds.)

:kitten: 💕

#Kitten #SmallWeb #deployment


@decentral1se 👍

PS. Kitten has first-class support for it and it makes Kitten’s Streaming HTML workflow possible:

https://ar.al/2024/03/08/streaming-html/

#htmx #Kitten #SmallWeb #hypermedia


And this was last year, Kitten has come a long way since then…

Check out the new Streaming HTML workflow:

https://ar.al/2024/03/08/streaming-html/

And how it made it possible to build Draw Together in less than 60 lines of code:

https://ar.al/2024/03/26/draw-together/

Wishing you a lovely conference this year :)

#SmallWeb #Kitten #web #dev #SmallTech #StreamingHTML