datascript

cormacc 2025-02-25T09:26:31.071129Z

Crossposting here from the replicant channel, but I've put a playground project up on github that includes an implementation of bi-temporal persistence for datascript (to IndexedDB) that might be of interest here. There are replicant and re-frame examples that use it -- the replicant example includes a nasty slider to demo time-travelling TodoMVC. Task creation via the UI sets valid-time and transaction-time to the current time. To play with valid time for either example you'll need to drop to the repl to create some transactions with different valid-time. https://github.com/cormacc/cljserial