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

URL query string to create wiki from specified url as template? #192

Closed saqimtiaz closed 1 year ago

saqimtiaz commented 2 years ago

Would it be possible to extend TiddlyHost to support a query string to specify a TiddlyWiki to use as the template for a new wiki?

Something like https://tiddlyhost.com/sites/new?template=http://tiddlywiki.com

There could be a list of allowed URLs that can be used as templates.

Potential use cases:

simonbaird commented 2 years ago

That's a good idea. There's two pieces:

simonbaird commented 2 years ago

I checked projectify and its empty is still 5.1.23, which is a little inconvenient since I'd want to only use 5.2+ empties if I can.

simonbaird commented 2 years ago

Three pieces:

I'm less sure of that one since it implies a level of trustworthiness that might not be appropriate.

saqimtiaz commented 2 years ago
  • Allow creating a new site as a copy of an existing (public) site.

I'm less sure of that one since it implies a level of trustworthiness that might not be appropriate.

Right, which is why I suggested a whitelist of domains from which this would be allowed, for example:

tiddlywiki.com/*
tiddlyhost.com/*

I am thinking of options like creating a copy of tiddlywiki.com, which would be very useful if possible but would probably not be relevant to most users and would clutter the select dropdown.

simonbaird commented 2 years ago

Looks like Projectify is currently abandoned :( https://github.com/NicolasPetton/Projectify .

saqimtiaz commented 2 years ago

Unfortunate, it was one of the most polished TW5 editions that I have seen. However, it should still be perfectly useable with 5.2.0 if someone were to create an updated empty starter file.

simonbaird commented 2 years ago

Reading this again I noticed I was focussed on the new user experience where we'd want a smaller, heavily curated list of trusted "editions" or "flavors". Now I realize your use case is more about a power user who just wants to save the manual steps required to create a site, download the desired TW file, then upload that file to the new site.

That does seem like a reasonable idea. In general I guess I tend to be less interested in the UX for power users, since I figure they're probably capable of figuring out alternative solutions anyhow.

saqimtiaz commented 2 years ago

@simonbaird my request was indeed not directly intended for new users of TiddlyHost that create a new wiki through the intended UX.

However, such a facility would allow others that create editions to make it easier for new users to create a copy of a wiki on TiddlyHost by providing a URL with the correct query. The end goal is indeed to make life easier for new users, and to enable collaborative workflows where a wiki can be easily be forked, changes made and then potentially pulled back in.

twMat commented 2 years ago

Would it be possible to extend TiddlyHost to support a query string to specify a TiddlyWiki to use as the template for a new wiki?

Something like https://tiddlyhost.com/sites/new?template=http://tiddlywiki.com

I like this. A more friendly UI could be a feature on (e.g) the "Your sites" page, showing an empty field where the user fills in the url where to fetch a wiki from and an OK button.

...and if you allow me to go off on a tangent: If instead a permalink is added, i.e an url to specific tiddlers in a wiki, then maybe only those tiddlers could be fetched? This touches on Jeds and my experiments with TWederation. This would enable people to communicate with one another via TW because permalinks allow for filters so you could filter for e.g all tiddlers tagged @simonbaird or @saqimtiaz ... and you could "subscribe" to wikis by having a predefined list of wikis that you do this fetching from. Another use if specific tiddler imports were possible would be to update plugins!

(Inappopriate thread jacking? I figure this is a very small forum so I take more liberties here but do tell me if this is not appreciated :)

Anyway, great ideas in this thread.

simonbaird commented 1 year ago

Reiterating what I said above. I see this is quite separate from #207.

This is a power user feature for people who know what they're doing, and can make their own decisions about stability and trustworthiness of the source empty, whereas #207 is something for non-power users to be introduced gently to some carefully curated TiddlyWiki variants.

simonbaird commented 1 year ago

Here's a new implementation idea:

Edit: #266 is filed for that idea.

simonbaird commented 1 year ago

Maybe the cloning support and the shared cloneable template system has achieved the objectives of this request, albeit in a different way.

I think the subset of users who would want to be able to create from an abitrary url now is small, so I'll probably close it soon.