How to start node tiddlywiki server programmitcally?

24 views
Skip to first unread message

LinOnetwo

unread,
Dec 26, 2019, 2:32:20 AM12/26/19
to TiddlyWikiDev
I'd like to create a desktop version, and store all tiddlers on fs or SoLiD POD, instead of a HTML file, so I can do search from outside of tiddlywiki (for example, spotlight or Alfred).

But I haven’t seen any instruction on how to start https://www.npmjs.com/package/tiddlywiki using JS, there is only Command Line Usage.

I need something like this to create a fs based wiki:

import tiddlywiki from 'tiddlywiki';

tiddlywiki
.init(`~/Document/tiddlywiki/${wikiname}`);

tiddlywiki.start({ location: `~/Document/tiddlywiki/${wikiname}`, plugins: [] });

or just start a blank wiki, and sync all tiddlers from BaaS likes SoLiD POD later:

import tiddlywiki from 'tiddlywiki';
import solidSyncAdaptor from 'tiddlywiki-
solid-sync-adaptor';

tiddlywiki.start({ plugins: [solidSyncAdaptor] });

Can I do this?
Reply all
Reply to author
Forward
0 new messages