Relaxo

maintenance

by Samuel Williams (ioquatix) · since 2012 · also known as relaxo gem

Ruby transactional document store that keeps every change as a commit in a Git repository.

documentkey-valueembedded libraryopen source (permissive)mature

maintenance. Small single-maintainer gem with occasional modernisation releases (1.7.0 in 2024, 1.8.0 in January 2025) but little feature work.

Overview

Relaxo is a small Ruby library by Samuel Williams (ioquatix) that uses a Git repository as its database. Documents are blobs at paths in the tree, every write happens inside a commit block with an author and message, and readers always see a consistent snapshot of a commit, which gives atomic multi-document transactions and a complete, diffable history for free. Values can be any bytes, so JSON, MessagePack or images all work, and the companion relaxo-model gem layers models and sorted indexes on top. The README is upfront that Git's data structures limit it to roughly hundreds of thousands of documents with modest write concurrency. It still receives occasional modernisation releases (1.8.0 in January 2025) and suits small apps that value auditability over throughput.

Strengths & trade-offs

Strengths

  • +Every write is a Git commit, giving full history, diffs and authorship
  • +Readers see consistent snapshots; multi-document writes are atomic
  • +Store any byte format: JSON, MessagePack, images
  • +Standard Git tooling can inspect, back up or replicate the data

Trade-offs

  • −Git storage limits size and write concurrency
  • −Ruby-only, with no query language; indexes are paths your code maintains
  • −Repository grows forever unless history is compacted

Great for

  • +Small Ruby apps that need an audit trail of every change
  • +Content and configuration stores edited by humans
  • +Prototypes that benefit from Git branching of data

Think twice for

  • −High write throughput
  • −Large datasets
  • −Non-Ruby stacks

Capabilities

Native or official first-party support · 4 of 25 tracked

✓Transactions
✓Durable persistence
✓Time travel
✓Branching
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Role-based access
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
Full ACID
Consistency
Strong
Schema
Schemaless
Architecture
Embedded
Query languages
Ruby API

Designed for up to hundreds of thousands of documents; history grows without bound unless pruned.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsEmbedded Ruby API
client languagesRuby

Alternatives to Relaxo

Compare all→
DoltRelational18.2

MySQL-compatible SQL database you can branch, diff, merge and clone like a Git repository.

relaxo vs dolt →
SQLiteRelational75.5

The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.

relaxo vs sqlite →
PouchDBDocument23.2

JavaScript database for browsers and Node that speaks the CouchDB replication protocol.

relaxo vs pouchdb →
TerminusDBGraph21.0

Git-for-data document and knowledge-graph database with branches, diffs and time travel.

relaxo vs terminusdb →
SleekDBDocument2.7

Dependency-free PHP library that stores schemaless documents as plain JSON files on disk.

relaxo vs sleekdb →
ZODBObject22.7

Transparent persistence for Python objects with ACID transactions and history.

relaxo vs zodb →

Relaxo FAQ

What is Relaxo?

Relaxo is a document database by Samuel Williams (ioquatix), first released in 2012. Relaxo is a small Ruby library by Samuel Williams (ioquatix) that uses a Git repository as its database. Documents are blobs at paths in the tree, every write happens inside a commit block with an author and message, and readers always see a consistent snapshot of a commit, which gives atomic multi-document transactions and a complete, diffable history for free. Values can be any bytes, so JSON, MessagePack or images all work, and the companion relaxo-model gem layers models and sorted indexes on top. The README is upfront that Git's data structures limit it to roughly hundreds of thousands of documents with modest write concurrency. It still receives occasional modernisation releases (1.8.0 in January 2025) and suits small apps that value auditability over throughput.

Is Relaxo open source?

Yes. Relaxo is open source. License: MIT License.

Does Relaxo support ACID transactions?

Yes. Relaxo supports full ACID transactions, with strong consistency.

Does Relaxo scale horizontally?

Relaxo does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run Relaxo?

You can self-host it and embed it in your application.

What is Relaxo best for?

Relaxo is a strong fit for small Ruby apps that need an audit trail of every change; content and configuration stores edited by humans; and prototypes that benefit from Git branching of data. Think twice for high write throughput.

What are the best alternatives to Relaxo?

Common alternatives to Relaxo include Dolt, SQLite, PouchDB, TerminusDB and SleekDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is Relaxo still maintained?

Relaxo is in maintenance mode. Small single-maintainer gem with occasional modernisation releases (1.7.0 in 2024, 1.8.0 in January 2025) but little feature work.

How popular is Relaxo?

Relaxo ranks #574 of 844 databases on the WhichDB Score (1.2/100), and #51 among document databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.