Discover and explore top open-source AI tools and projects—updated daily.
maxpertDistributed SQLite replication with MySQL compatibility
Top 16.6% on SourcePulse
Marmot provides a leaderless, distributed SQLite replication system designed to overcome the complexity of traditional MySQL active-active setups, especially for edge deployments. It targets users needing a highly available, operationally simple database that integrates seamlessly with the MySQL ecosystem, enabling applications like distributed WordPress with minimal overhead.
How It Works
Marmot utilizes a leaderless architecture with a gossip protocol for cluster membership and anti-entropy. It supports distributed transactions via Percolator-style 2PC, resolving conflicts with Last-Write-Wins (LWW) using HLC timestamps. Replication is handled through row-level Change Data Capture (CDC). Its key differentiator is a MySQL wire-compatible interface, enabling integration with existing MySQL clients, ORMs, and applications without modification.
Quick Start & Requirements
marmot-v2 binary. Start a single-node cluster with ./marmot-v2 or run as a daemon with ./marmot-v2 -daemon.config.toml reference are available.Highlighted Details
Number.MAX_SAFE_INTEGER.Maintenance & Community
Community support is available via Discord and GitHub Discussions. Details on core contributors or sponsorships are not explicitly provided in the README.
Licensing & Compatibility
The project's license is not specified in the README, a critical omission for adoption. Marmot requires SQLite to be in WAL mode for reliable multi-process changes.
Limitations & Caveats
Marmot replicates all tables within a database; selective table replication is not supported. It guarantees eventual consistency, meaning strict serializability across nodes is not provided. Concurrent DDL operations on the same database from multiple nodes are protected by a 30-second lease lock but should generally be avoided. XA transactions are incompatible, and user management (DCL) is local to each node.
2 weeks ago
Inactive
garden-co
deepseek-ai
pubkey
apache