hffqyd / tw5-server

A protable local server for TiddlyWiki5 that saves and backups wiki.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tw5-server

A local server for TiddlyWiki5 that saves and backups wikis, inspired by tw5-server.rb.

tw5-server is written in Nim, 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.
  • Upload images/files for using in TiddlyWiki5 via press button or drag-and-drop.
  • Backup wiki in compressed format (.gz), to save disk space.
  • Auto clean backups: keep the last one for previous months, keep all backups in current month.
  • Offer binary executable for Linux, macos, Android and windows.

Usage

Download binary executable for your operating system from github release, and run in your terminal (in Termux or other terminals if using Android).

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.

Then go to http://localhost:8000 (or other address:port specified in command) in your web browser, and click on your wiki html file.

Upload example

  1. Upload images/files (e.g. to an images directory) for use within TiddlyWiki5 (e.g. [img[images/some.png]]): Browse a file, check if to overwrite and submit, saving message will be on the right.

Upload screenshot

  1. Upload images/files via drag-and-drop: Drag a file to tw5-server page (the border will show when draging), and drop.

Drag-and-drop

About

A protable local server for TiddlyWiki5 that saves and backups wiki.

License:GNU General Public License v3.0


Languages

Language:Nim 57.9%Language:CSS 25.7%Language:JavaScript 12.3%Language:HTML 4.1%