Just released JavaScript Database (JSDB) version 2.1.0
Added: exposes compactOnLoad and alwaysUseLineByLineLoads options to JSDB.open()
(JSDB is a zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database for the Small Web that persists to a JavaScript transaction log.)
#JSDB #javascript #js #database #SmallTech #SmallWeb
jsdb
A zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database for the Small Web that persists to a JavaScript transaction log.Codeberg.org
Kit Rhett Aultman
in reply to Aral Balkan • • •Aral Balkan
in reply to Kit Rhett Aultman • • •@roadriverrail Hey Kit, sure. Basically, you can use it to persist anything (sessions, feedback forms, chat messages, etc.) The only limitation is that it doesn’t scale beyond a single process. So you can’t use it for “Big Data” (to farm people) :)
The advantage is that it’s very easy to use as all you’re doing is working with native data structures on the back end. You create and array and push to it, it’s persisted. You add a property to an object, it’s persisted :)
Aral Balkan
in reply to Aral Balkan • • •@roadriverrail The docs have more info and examples: codeberg.org/small-tech/jsdb#j…
Also, take a look at the “persisted” examples in Kitten for some more:
codeberg.org/kitten/app/src/br…
(The guestbook example is likely the simplest possible use case.)
Hope that helps :)
app
Codeberg.orgAral Balkan
in reply to Aral Balkan • • •Filipe
in reply to Aral Balkan • • •Aral Balkan
in reply to Filipe • • •