[tw5] Local storage prototype: TiddlyWiki and BASIC data exchange

https://basicanywheremachine.neocities.org/LocalStoragePrototype.html

BASIC could definitely be used for complex scripting in TiddlyWiki.

1 Like

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

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.

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.

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.