Notebooks as offline-first single webfiles?!

This webpage is sort of a notebook that was exported from this actual notebook.

And the webpage has its own editor and its own exporter so you can mutate it and continue the chain of exporting. It serializes to a single file so you don’t need a webserver to open it from the local filesystem, and it bundles all its dependancies, even file attachments, so it works offline! 1MB!

I hope to explain how it works at HYTRADBOI 2025 and after a bit more filling in a few missing pieces I intend this to become my personal homepage.

2 Likes

I’m loving this path of self-hosting you’re on. First the exporter, now this. So fun.

Small note, the Editor panel doesn’t work in Safari. It shows “editor_view = RuntimeError: Importing a module script failed.”

Oh thanks, the editor is the hardest part. I can repro.

1 Like

ok the safari issue is fixed. Thanks for reporting. I think we will use GitHub - tomlarkworthy/lopecode: moldable substrate for web and offline as the primary place for issues long term (here is fine too).