Some quickly validated examples, FireFox on Windows 11, against tiddlywiki.com
- Notes: > 70% of the examples given work out of the box
- I dont care to use some of the examples
- There are a few that did not work that are of sufficent value to return to work on.
- Particularly those who include confirmation prompts and messages.
// Raw text in console (fallback if missing)
$tw.wiki.getTiddlerText("HelloThere","(missing)")
// Render to HTML string (how TW would display it)
$tw.wiki.renderTiddler("text/html","HelloThere")
// Immediate delete (no UI confirmation)
$tw.wiki.deleteTiddler("TempNote")
// 1) Quick field change (atomic)
$tw.wiki.setText("HelloThere","text",undefined,"New body text")
// 2) Merge-update multiple fields (immutable Tiddler pattern)
(function(){
const title = "HelloThere";
const oldT = $tw.wiki.getTiddler(title);
const upd = new $tw.Tiddler(oldT, { tags: ["Demo","Example"], caption: "Pretty name" });
$tw.wiki.addTiddler(upd);
})();
// 4) Rename a tiddler
$tw.wiki.renameTiddler("OldTitle","NewTitle")
// The following are crafted to create a BOOKMARKLET FORM ONLY TESTED IN CONSOL
// Delete all matches of a filter (DANGEROUS — asks once)
javascript:(function(){
var f=prompt("Danger! Delete all tiddlers matching filter:","[tag[Temp]]");
if(!f) return;
if(!confirm("REALLY delete all matching?")) return;
$tw.wiki.filterTiddlers(f).forEach(t=>$tw.wiki.deleteTiddler(t));
alert("Deleted.");
})();
//Export a JSON blob of matches to the console
javascript:(function(){
var f=prompt("Filter to export:","[tag[Project]]");
var titles=$tw.wiki.filterTiddlers(f);
var out=titles.map(t=>$tw.wiki.getTiddler(t)?.fields);
console.log(JSON.stringify(out,null,2));
alert("Exported "+out.length+" tiddlers to console.");
})();
How could such use of an LLM lead to Innovation?
During my exploration I found and tested a function (not above) that simply adds a title/string to a list field, like tags. Unlike importing tiddlers this is a “non distructive” monkey patch.
- In previous work seen in bookmarklet tiddlers https://bookmarklets.tiddlyhost.com It is clear that we can deliver a function or bookmarklet in a tiddler, that can be executed on click, deliver a package or plugin, and apply a “non distructive” monkey patch.
- This is something I have long sought and if developed properly could offer substantial value. Yes there are TiddlyWiki Script methods available but here it may be single click deployment that allso applies monkey patches allowing multiple solutions that impact core tiddlers, to work appart or together.

