Skip to main content


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.)

codeberg.org/small-tech/jsdb

#JSDB #javascript #js #database #SmallTech #SmallWeb

in reply to Aral Balkan

Can I trouble you to help me out with something? I typically work on really low levels systems stuff, so I don't have a lot of intuitions for web technology. What would a person use JSDB for? I've been following #SmallWeb stuff but I'm just out of my element.
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 :)

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 :)