r/Clojure • • Jun 03 '25

xitdb-clj - Embedded, immutable database with atom-like semantics

https://github.com/codeboost/xitdb-clj
41 Upvotes

4 comments sorted by

View all comments

Show parent comment

4

u/coloradu Jun 03 '25 edited Jun 03 '25

Yes. This opens the path to a lot of cool apps. One of the simplest is to use it to store test fixtures for your unit tests.

Also, during development, you can create memory 'snapshots' of the db on disk (see xitdb.snapshot/snapshot-memory-db). Then call any of your functions in the REPL with the memory db snapshot and then inspect the results.

Front end story also looks very nice - you can build your front end using reagent atoms and then easily sync the data with the backend. If you go for one-db-file per user, then the user can download their .xdb file and keep all their data.

We're working hard on lots of new features (schema validation, indices, multi-file databases, replication, realtime diffs and more, so stay tuned ;)