Local storage prototype: TiddlyWiki and BASIC data exchange

70 views
Skip to first unread message

Charlie Veniot

unread,
Feb 5, 2022, 11:25:41 PM2/5/22
to TiddlyWiki
https://basicanywheremachine.neocities.org/LocalStoragePrototype.html

BASIC could definitely be used for complex scripting in TiddlyWiki.


Hans Wobbe

unread,
Feb 6, 2022, 8:30:58 AM2/6/22
to TiddlyWiki
Okay, I finally "get" how this works.

Now I am thinking I need to "Get" how to "apply" or "use" it in my work.

Thanks for sharing this and for your enthusiastic promotion of it.

Cheers,
Hans

Charlie Veniot

unread,
Feb 6, 2022, 1:02:38 PM2/6/22
to TiddlyWiki
And I'm thinking of building a "local storage" manager in TiddlyWiki.  (Maybe something already done, but a fun "brain-age" exercise.)

Kind of like a file manager, but rather a "key/value" manager.

You want to manage your local storage items for all of the TiddlyWiki instances (and whatever other web pages) at a particular host/port?  Just drop the TiddlyWiki local storage import into a TiddlyWiki that is "there".

Manage the key/value pairs (whatever you would do in a file manager), export/backup, print.  Drag some key/values showing in one Tiddly Wiki at a host/port to another TiddlyWiki at some other host/port for local storage related to that.  Anything at all.

Charlie Veniot

unread,
Feb 16, 2022, 11:33:08 PM2/16/22
to TiddlyWiki
https://basicanywheremachine.neocities.org/LocalStoragePrototype.html

Updated version of this prototype makes use of Eric Shulman's action timeout widget.

Now both TiddlyWiki and the embedded (in an iframe) BASIC programming automatically retrieve / send values to local storage as a way of sending values to each other.

So TiddlyWiki instances, iframe-embedded content in those TiddlyWiki instances, and any other html and web apps (caveat:  all of them must have "same site" origin): each of them can play the role of "server" and/or "client" in a client-server relationship, or as "peers" in peer to peer relationship.

Something like that.  Not sure if I'm using the right lingo.

Charlie Veniot

unread,
Feb 26, 2022, 7:28:52 PM2/26/22
to TiddlyWiki
Slight update of the Local Storage Prototype, and I've added the Session Storage Prototype.

Both TiddlyWiki instances are the same, except for how they interact with their BASIC applications.  And vice-versa:  how the BASIC applications interact with TiddlyWiki.

Note that when these TiddlyWiki instances are opened, they both show two tiddlers in the story river.

Compare side by side both TiddlyWiki instances to see behaviour of applications.  Worth comparing the "Startup Init" tiddlers between the two TiddlyWiki's.

Reply all
Reply to author
Forward
0 new messages