How to batch insert new tiddler into TiddlyWiki?

Hi,

I would like to build a common TW made from multiple TW sources.
Every user is a publisher, then a moderator extract interesting content to centralize them on a “central” common TW

For now “admin” uses manual export / import function,

Using diff, it is possible to see and extract changes…
Anyone knows any "sed / grep / jq bash command to insert tiddlers in batch mode?

Thanks for your help

It seems I found a solution…
https://tiddlywiki.com/dev/#Data%20Storage%20in%20Single%20File%20TiddlyWiki

<script class="tiddlywiki-tiddler-store" type="application/json">[
{"created":"20210525212411223","text":"This is some test text","tags":"[[test tag]] [[another tag]]","title":"My new tiddler to insert","modified":"20210525212430577"}
]</script>
<!doctype html>
...

I am still interesting in getting contact with any advance user here.

Hi, you can see how Links and CPL works, especially their github repo.

Basic idea is downloading other tiddlywiki’s HTML

And import the content to a local wiki, and publish that wiki. And this happened in the github action every 1 hour. The links site may use slightly different but similar approach, because the CPL site is learnt from the links site.

1 Like

The answers depend on how the users are using TW. Single-file or server? How are the users saving their wikis? Are the wikis stored in a central location or distributed on the network?

1 Like