Yeah, the html link I had put here wasn’t working. I guess we have to copy the link above into the browser URL field. I’m thinking Talk can’t handle the parameters.
Pretty cool way of providing links to groups of tiddlers as JSON “packages”..
Just because I don’t like how the URL is showing in Talk, here’s a screenshot of what the URL looks like in my browser:
Already Node tiddlywiki can publish simultaneously to the interactive wiki, static html tiddlers at their own address, I don’t see why you could not also do the same for selected JSON tiddlers so they will just exist, and be dynamically updated with changes in the interactive wiki.
I am actually building an IPFS distributed App with it, tiddlywiki command line is nice, and we could build an API with it. Now an “http json API mode” would be great
OK. … But i think, that’s a problem. tiddlywiki.com actually serves a single-page-app that renders the HTML UI client side. So it’s a static “index.html” file served from GitHub. – No Node.js server involved.
It would be possible to load a SPA and create an output that looks like a JSON reply from a server but it would still load the whole app that’s needed to create the JSON output clientside. I’m not sure, if that’s what you want.
Sure. It must act like you said.
TW with IPFS attachments are “low size”, so this overload is not a problem.
Your approach really getting close…
And yes !
is exactly the output, missing filters maybe. But this is a good option.
I still do not understood how you made your TW act like that, but I am really interested if you can explain.
Side Note: it might be worth changing the title for this discussion to something like “How to render JSON instead of HTML and save the results to a JSON file”
As I wrote. If you want to use it with curl, there needs to be a server side implementation. That’s what Simons links does. It’s the server, that returns the JSON data instead of sending an HTML file
Where is my mind !
Of course. The html page has to be parsed and interpreted.
At best, would need chromium as client, but json API needs server side.
You are right. Not finding “edit title” to do so…
Thanks for helping me to explore that “dead hole” with me
Community is really great!
So I get back with using nodejs TW CLI / APIfication in an IPFS swarm.
You were right,
This discussion is related to my quest. Making TW json’s available to other front end Apps. I do it by extracting json using tiddlywiki CLI.
I cannot code ruby yet, but I realize that we are making something close to tiddlyhost.
The project i am participating is to reproduce “Scuttlebut protocol” along with IPFS keys chained through a “Web of Trust” mapping.
Our prototype is now using TW to share tiddlers and data among related friends using replication of tags in common. Most of dev team is in France, and we’re using https://monnaie-libre.fr as crypto currency. I am now building the API to play a kind of “adventure crafting game”. If it makes you curious, feel free to contact me