Launch nodejs TiddlyWiki server on repl.it with single click

132 views
Skip to first unread message

Brian Theado

unread,
Dec 17, 2018, 10:30:12 PM12/17/18
to tiddl...@googlegroups.com
https://repl.it/ allows you to spin up an online project for one of many programming languages (https://repl.it/languages) including javascript + nodejs.

Any npm package can be included in the project, including the TiddlyWiki package. If the code you run listens on a TCP port, then your project will automatically get its own web address.

I created a project at https://repl.it/@BrianTheado/TiddlyWiki which includes the TiddlyWiki package and starts it listening and it got the web address https://tiddlywiki.briantheado.repl.co/

If you click on the fork button at https://repl.it/@BrianTheado/TiddlyWiki, then you will get your own instance of the project. You will get your own url and your own tiddler storage.  You can use it to play around and learn the nodejs side of TiddlyWiki. It will take a minute or two for your forked instance to launch and for the npm package to install.

Brian

TonyM

unread,
Dec 18, 2018, 1:20:22 AM12/18/18
to TiddlyWiki
Brian,

Thanks for sharing, that sounds and Looks really interesting. It looks like a great piece of infrastructure for TiddlyWiki as a service if it can be sufficiently secured.

Do share more about what you understand about this, is the repl.it service open source? etc... I wonder how bob or TiddlyServer would fair on this platform.

Regards
Tony

Jeremy Ruston

unread,
Dec 18, 2018, 3:43:25 AM12/18/18
to tiddl...@googlegroups.com
Thanks Brian, https://repl.it/ is new to me and pretty cool.

Another similar service is Glitch. They offer a Node.js IDE that's easy to use and very full featured. I made this some time ago, but haven't updated it in a while:


Best wishes

--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ec146ed2-3703-4f62-91d7-15ac10ff1d8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

TonyM

unread,
Dec 18, 2018, 4:07:46 AM12/18/18
to TiddlyWiki
Brian,

I signed up to there $7 Per month hacker account, and now loading my 8Mb Wiki on it to see if it is viable as a secure personal wiki host. 

It looks promising, However I am getting the following message;
 syncer-browser-tiddlyweb - 20:01:56 18 12 2018

XMLHttpRequest error code: 404


Then every time I open a tiddler
 syncer-browser-tiddlyweb - 20:05:00 18 12 2018

Sync error while processing '$:/StoryList': XMLHttpRequest error code: 404


And unfortunately importing the whole wiki of tiddlers, they are all created today.


Anyway,


I will post about what I learn.


Regards
Tony

On Tuesday, December 18, 2018 at 2:30:12 PM UTC+11, Brian Theado wrote:

Brian Theado

unread,
Dec 18, 2018, 7:07:08 AM12/18/18
to tiddl...@googlegroups.com
Tony,

While you can programmatically create files in project mode, there are a few caveats:

    • When you change a file through your program, those changes will not be reflected until the repl stops running
    • Directories/folders cannot be programmatically generated or removed
    • Files cannot be deleted or renamed programmatically (but it can be done manually from the file tree )
Maybe what you are experiencing it related to the above restrictions. I don't quite understand those restrictions, because the way I read it, it doesn't seem like TW should work at all. Maybe you could try restarting your repl (hit the run button).

If that doesn't work, then I suggest seeing what urls your browser is requesting and see if that gives any clues.

Repl.it is not open source.

Was there some restriction on storage for a free account which forced you into a paid plan?

Brian


--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Brian Theado

unread,
Dec 18, 2018, 7:10:39 AM12/18/18
to tiddl...@googlegroups.com
Thanks, Jeremy. I have also heard of glitch and thought the same thing is probably also possible there. Good to know you have already done it. I was trying to understand the repl.it features and I thought setting up TW would help me with that and it did!

TonyM

unread,
Dec 18, 2018, 6:24:21 PM12/18/18
to TiddlyWiki
Brian,

Thanks, I will keep learning to see how far this goes, I purchased the hacker plan for a more detailed understanding of capabilities, specifically the ability to have a private repl to see if this is a viable host, and to get a maximum file size greater than 2MB.

I am hoping to teach tiddlywiki at the local community college and wondering about the student features along with using it to host my personal wiki securely. At around $10 Australian a month, I can backout if its not helpful enough. I will now also look at Glitch. 

This page provides details of the plans https://repl.it/site/pricing

Regards
Tony

Lost Admin

unread,
Dec 19, 2018, 9:41:47 AM12/19/18
to TiddlyWiki
The first bullet point indicates, to me, that your existing tiddlywiki files (or tiddler files) will get updated by tiddlywiki (node.js) but you won't see those changes unless you stop and start your instance.

The 3rd line similarly would allow new tiddler files to be created by node.js but would not let you see them until you restarted the instance.

Lost Admin

unread,
Dec 19, 2018, 9:43:48 AM12/19/18
to TiddlyWiki
I am curious: what do you consider to be sufficient to qualify as a "secure personal wiki host"?

https (I assume is obvious),
Actual host-based authentication (I would also assume is obvious).

TonyM

unread,
Dec 20, 2018, 8:37:37 PM12/20/18
to TiddlyWiki
Lost admin,

Good question, with lots of answers. I am evaluating, rather than saying repl.it is it.

Part of security is integrity, hence Bobs multi-access may be one part. Requiring a separate login to access the wiki another, along with https:

Performance is also part of it.

I can host my own node.js instance on my hosting platform, but yet to try and leverage the new login features. I would like to see a 2 factor to even access a node host by not sure yet how to do this.

I think repl.it is more likely to be a playground but we could have a local version just for node JS, and SDK command line, execute and debug.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages