Here is my modification. It is basically a second JS file in the root tiddlywiki folder. You put it beside tiddlywiki.js. https://gist.github.com/Arlen22/d7ad0b6a108fa3cedf72 And it actually uses the same file system syncer. The index.html is just there to get the browser side started, and Tiddlywiki detects that it has a browser AND node, and away it goes. I don't know if this was by design or not, but it works well.
Here is what I mean by "Running the Node.JS version" (which is as opposed to a single file TiddlyWiki in the browser). TiddlyWiki is designed to run on Node.JS, and all single-file TiddlyWikis are generated this way. These instructions are on windows, but other platforms are similar. 1. Go to http://github.com/Jermolene/TiddlyWiki5 and select any branch or tag you want (or just use the master). 2. At the bottom of the right sidebar there is a button that says "Download Zip". Click it. 3. Unpack the zip file into any directory. 4. (Optional) If you are using windows, copy node.exe into the directory beside tiddlywiki.js. If you have node.js installed globally that works too. 5. Shift + Right Click in the folder (Windows Vista and newer) and click "Open command window here". 6. Type path/to/node.exe tiddlywiki.js editions/tw5.com-server --server ( http://tiddlywiki.com/#Using%20TiddlyWiki%20on%20Node.js) 7. If it works, it will say "Serving on 8080" or something like that. Open your browser and navigate to 127.0.0.1:8080. That is what I do if I am wanting to work with the latest GitHub code. I don't usually use NPM. So that's the idea behind my modification. That same code can also run on node-webkit if you start it a little different. What is the difference between your first post instructions and > tiddlydesktop or the instructions to make TW work on node webkit described > here: http://tiddlywiki.com/dev/#TiddlyWiki%20on%20node-webkit ? I guess my first post instructions accomplish the same thing as tiddlydesktop, except that nothing is sandboxed, so TiddlyDesktop is safer. And TiddlyDesktop isn't as complicated as I first thought. -Arlen On Wed, Jan 21, 2015 at 4:53 AM, Danielo Rodríguez <[email protected]> wrote: > > > El miércoles, 21 de enero de 2015, 3:48:09 (UTC+1), Arlen Beiler escribió: >> >> >> What do you need is a sync module that uses Node-webkit. I think you can >>> base your work on the FS syncer. >> >> >> I actually think I got it working for both single file and "node.js >> style". The single file one needed a hack to bootprefix.js (in order to >> work right) and a Saver module which I based off the tiddlyfox saver. I >> guess that's the same thing as a syncer. >> > > No. A syncer is responsible of sync single tiddlers as single files to the > file system. The saver just saves the whole file. > > >> If you're running the Node.JS version (like you download from GitHub), >> you don't even need the browser-server sync, because the server and the >> browser are one. Literally. So all changes in the browser go directly to >> the Node FileSystemSaver or whatever it is. >> > > Could you elaborate this? What do you mean "running the Node.JS version" ? > The tiddlywiki version for node? How do you mate it running inside > node-webkit? > > > >> That I don't know. Those instructions didn't work for me (because of the >>> bootprefix.js problem), and all you need to do is just paste the file url >>> into node-webkit and it loads it like a regular file. You don't actually >>> need the package.json. >>> >> >> It worked for me in the past. I did not check recently. > > > >> TiddlyDesktop sounded a bit complicated, and I wanted to see if there was >> an easier way. I don't know what features it has beyond a regular >> tiddlywiki, though. >> > > Complicated? Why is complicated? Is just download and run. Nothing else. > How are you trying to use it? > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

