All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

SwirlDB: A Modular CRDT Database with Swappable Adapters for Browsers and Servers

By

owenm

7mo ago· 1 min readenInsight

Summary

SwirlDB is a modular-first CRDT database designed for browsers and servers, built on a philosophy where everything is an adapter rather than a monolithic system. It uses swappable adapters for storage (localStorage, IndexedDB, SQLite, etc.), synchronization (WebSocket, HTTP, WebRTC), authentication (JWT, OAuth), and encryption (AES-GCM). The system avoids feature flags and conditional compilation, with each adapter being an independent implementation of a shared trait, following a 3-crate architecture.

Key quotes

· 4 pulled
Everything is an Adapter SwirlDB is not a monolith with configuration options. It's a composition of swappable adapters
No feature flags. No conditional compilation. Each adapter is an independent implementation of a shared trait
Modular-first CRDT database for browsers and servers
Storage Adapters: localStorage, IndexedDB, redb, SQLite, sharded files, or your own
Snippet from the RSS feed
Modular-first CRDT database for browsers and servers

You might also wanna read