2nd March 2023 at 5:59am
A local mini binary server for TiddlyWiki5 that saves and backups wikis and uploads files for TiddlyWiki, inspired by tw5-server.rb .
tw5server provides features of:
- Server for TiddlyWiki5, as well as other files (e.g. images used in TW5
[img[images/*.png]]
); - Easy to save wiki via browsers;
- Backup wiki in compress format (.gz), to save disk space;
- Auto clean backups: keep one newest per previous month, keep all backups in current month.
- Upload files/images to server via pressing button or drag-and-drop, for use in tiddlywiki as external links.
- Offer binary executable for Linux, macos, Android and windows.
Download executable binary at the github.com tw5-server.
Usage
tw5server -a:192.168.0.10 -p:8000 -d:./ -b:backup
-h usage help
-a address, defautl localhost
-p port, default 8000
-d directory to servering, default `current dir`
-b backup directory name, default `backup`
-l log saving messages to stdout
Backups auto-clean strategy:
Keep all backups in current month, keep only the newest one for previous months.
In Unix/Linux, maybe first chmod +x tw5server
), then run it.
For Android version, run it in Termux, or some other terminals.
Then go to http://localhost:8000 (or other address:port specified in command) in your web browser, and click on your wiki html file.