tiddlyhost / tiddlyhost-com

Rails application for creating and hosting TiddlyWiki sites, plus resources for deploying it to https://tiddlyhost.com/
Other
184 stars 17 forks source link

Sharing private Tiddlywikis #246

Open LaRocca89 opened 2 years ago

LaRocca89 commented 2 years ago

I suggest allowing users to share or collaborate on private tiddlywikis.

simonbaird commented 1 year ago

See also #164.

Collaborating on a single TiddlyWiki is difficult, though maybe not impossible, due to the single user nature of TiddlyWikis on Tiddlyhost.

simonbaird commented 1 year ago

223 is similar also. This is probably the most requested feature currently.

simonbaird commented 1 year ago

There's a few variations I think:

  1. View only:
    1. The private wiki can be shared for view only for anyone with a token.
    2. The private wiki can be shared for view with certain other Tiddlyhost users.
  2. View and edit:
    1. The private wiki can be shared for view and edit for anyone with a token.
    2. The private wiki can be shared for view and edit with certain other Tiddlyhost users.

Option 1.a is probably a good starting point and would be the most useful to begin with.

The 2 options are quite difficult as I mentioned above.

simonbaird commented 1 year ago

As mentioned in #312 , if you encrypt your TiddlyWiki, then save it, as per https://tiddlywiki.com/#Encryption it gives you share its content with only people who know the encryption password.

simonbaird commented 11 months ago

I've tentatively started doing some work on a token based approach, which should enable option 1.i and 2.i.

Jasper359 commented 8 months ago

Hi Simon, thanks for persisting with this work and I've sponsored you. Please keep up the good work.

What is a token based appoach if it can be explained simply?

I was coming at it from a cloud storage persepctive whereby an cloud storage file owner shares a file with one or more other cloud storage users - with readand/or read access -there by other users cannot see or have access to the tiddlywiki file. But does this require tiddlyhost to own the cloud storage system?

I see Jeremy discussing an node.js approach at https://talk.tiddlywiki.org/t/multi-user-alternative-to-tiddlywiki/2899/18 and wonder if that is releveant to a tiddlyhost.com approach?

Regards, Jasper359

simonbaird commented 8 months ago

I'm still figuring out the details, but here's a rough idea of how it could work:

This means the other user doesn't need to have a Tiddlyhost account.

The idea of giving access to other users specifically could work though. Maybe something like this:

I guess this could be simplified by skipping the email and the "activation" step. You'd have to be careful to use the correct email address.