Running a node.js Tiddlywiki on a Raspberry Pi Zero W 2

I started my Tiddlywiki journey with a node.js version running on Termux in Android on my phone in hospital when I caught Covid.

I got home and moved it to my media centre that provides services for servicing up music and videos. It is running Arch Linux though it only gets updated every month or so because I am running the server 24/7.

I use it to keep primarily a journal / Zettelkasten of my reading and it has a lot of notes.

This was fine as I was mostly home as my partner needed 24/7 care - basically I only left home to shop or collect medicines. Sadly my partner died and I want to take my tiddlywiki out with me and use it when I am on holiday - I went on a week long holiday to Berlin and recorded everything in my notebook and am still two weeks later catching up.

That preamble is to asking some broad questions:

setting up a new instance of Tiddlywiki on a Raspberry Pi Zero W 2 for carrying it around to the library or on the train.

security issues with it being a separate device

My problem is that I have a comfy set-up and data that is precious to me so I want to be sure I can get this to work.
I have test Tiddlywiki to try it on but I think I need some helpful websites or folks who have put their node.js on the web and dealt with the security issues.

fwiw, my “making my node TW available to me anywhere” solution is running the node TW on a VM in my home server, then on that same VM running an nginx reverse proxy. This provides SSL cert for encryption, and basic auth for access (it also checks for a cookie to skip auth to save me logging in every time on devices previously seen). Then on my router I port forward back to that nginx reverse proxy.

For this to work, it does rely on my home systems and internet working, as well as being internet connected from where I want to use it. It’s not an offline solution.

Also whether this is sufficiently secure for your needs is not something I can comment on.

You could try the core Browser Storage Plugin, which will save your tiddlers on your device as long as you are offline.

Once you are online again, it can be synced back to the server. So IMO you can use your existing configuration and use the offline mode when you are away.

The limit of 5-10MB mentioned in the TW does not exist anymore. See: Storage quotas and eviction criteria - Web APIs | MDN

When the plugin is used the first time, it asks for permission to store the data in the “persistent” store.
If you allow that, you can use up to 50% of the free memory of your device max 10TByte. Which should be plenty :wink:

The default mode is “best effort”, where it can be 10% of free disk space. Maximum 10GByte.

Both modes are “per domain”. So if you have 2 wikis on the same domain, they both use/share the same limit. So it’s only half the space per wiki. → So persistent mode is recommended.

Hope that helps
Mario