Is it possible to tm-http-request from one tiddlyhost wiki to another tiddlyhost wiki? Has anyone even done it?
…and could an arbitrary tiddlyhost wiki be targeted, i.e without requirements (e.g special installed plugins)?
Is it possible to tm-http-request from one tiddlyhost wiki to another tiddlyhost wiki? Has anyone even done it?
…and could an arbitrary tiddlyhost wiki be targeted, i.e without requirements (e.g special installed plugins)?
I use tm-http-request recently Use http request message action widget for LLM AI, anyone tried this before?
I think it can fetch whole wiki HTML, but parse the fetched result will be hard. Because you will need to parse script tag that contains the tiddlers json store. I’m not sure we have tool to do this in tw.
I will be a lot easier if you are fetching a nodejs based wiki.
A search in the forum for tm-http-request brings up a fair few relevant threads:
You can attach bearer token. At least hat works for AI requests.
Guys - thank you - but I should have emphasized more clearly that I’m asking specifically about Tiddlyhost. (I do say it in the headline but I understand if it was missed, my bad)
However, I should clarify one aspect though; Can one tiddlyhosted wiki send a tm-http-request to an arbitrary other tiddlyhosted wiki? I.e without requirements on the targeted wiki.
[I’m editing the OP to reflect these things]
…
@linonetwo regarding there being a tool to “parse the fetched result” - @inmysocks (and I) did create TWederation which uses single file wikis (and works) so maybe this does what you are thinking of.
The first two links I posted are entirely relevant and even have special handling to use the tiddler.json endpoint for TiddlyHost wikis instead of fetching the entire wiki.
See also this demo of those techniques by Springer: My ExternalContent, once loaded, keeps getting saved - Discussion - Talk TW (tiddlywiki.org)
Most of those examples are now in the official documentation at https://tiddlywiki.com/#WidgetMessage%3A%20tm-http-request%20Examples
No special plugins are required. I suspect — but I haven’t tested — that the remote wiki may need to be public (rather than another one of your private wikis). I just tested whether the “allow site to load in iframe” setting needs to be on; apparently not.