In case you’ve never heard of it, Tiddlywiki is a brilliant wiki-in-a-file solution.
You can manage your wikis from your desktop or your mobile and synchronise the file using Nextcloud.
What would be even better is to be able to store revisions directly in Nextcloud.
Tiddlywiki has a Saving tab in its Control Panel which allows it to save updates to a remote folder.
There is a PHP script which can retrieve the information and save it locally, but we wouldn’t need most of the logic contained in that file as we have our own APIs to store the information.
Here is the script:
- Use the Nextcloud user/password to authenticate the user
- Use the Node API to store the file(s)
- Parse content to prevent attacks
I would suggest to store all Wikis in a predefined folder, maybe this can be defined later in an admin GUI