https://github.com/ento/tw5-gemini-plugin
Gemini server and other utilities for TiddlyWiki5
https://github.com/ento/tw5-gemini-plugin
gemini-protocol tiddlywiki-plugin tiddlywiki5
Last synced: about 1 year ago
JSON representation
Gemini server and other utilities for TiddlyWiki5
- Host: GitHub
- URL: https://github.com/ento/tw5-gemini-plugin
- Owner: ento
- Created: 2020-08-04T09:33:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T01:08:37.000Z (over 2 years ago)
- Last Synced: 2025-02-09T21:12:22.630Z (over 1 year ago)
- Topics: gemini-protocol, tiddlywiki-plugin, tiddlywiki5
- Language: JavaScript
- Homepage:
- Size: 966 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This plugin includes:
- Node.js command for spinning up a Gemini server that serves tiddlers
- Parser module for viewing text/gemini Tiddlers
Usage
--gemini-listen command
tiddlywiki path/to/wiki --gemini-listen [param=value]The command can be used in conjunction with the --listen command.
Parameters:
tls-key=required/path/to.keytls-cert=required/path/to.crtport=1965host=127.0.0.1-
root-tiddler=HelloGemini: Specify the title of the Tiddler to serve at/ -
debug-level=none: Set to any other string to enable request logging. -
path-prefix=: Serve the wiki at the specified path.
Config:
-
$:/plugins/ento/gemini/config/filter: (default: none) Only serve Tiddlers that match this filter.
text/gemini parser
Set the type of tiddler to text/gemini.
See "5 The text/gemini media type" of the spec for available markups. Currently v0.14.2 of the spec is implemented.
Installation
If you don't need Node.js features, drag this link to your TiddlyWiki:
Otherwise, install the plugin through npm and point to it with TIDDLYWIKI_PLUGIN_PATH.
- Run
npm install git+https://github.com/ento/tw5-gemini-plugin.git - Edit
tiddlywiki.infofile of your wiki and addtw5-gemini-plugintoplugins - Run the server with environment variables pointing at the plugin installation path:
export TIDDLYWIKI_PLUGIN_PATH=$(npm root)/tw5-gemini-plugin/src/plugins
export NODE_PATH=$(npm root)/tw5-gemini-plugin/node_modules
tiddlywiki ...