swytchdb/swytch
swytchdb/swytch has 89 GitHub stars and 7 forks. Star changes are not measured yet. Last checked 2026-11-14 07:16 UTC. Last push 2026-11-11.
Measured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
A leaderless distributed cache/database
DataREADME.md
OriginalSwytch
Redis-compatible, distributed cache. No leaders, no quorums, no clock sync.
Join us on Discord to discuss the hardest parts of computer science, physics, and — when those get too easy — the weather.
The short version
Swytch speaks the Redis wire protocol. Your existing client connects, your existing commands run. Strings, hashes, sets, sorted sets, streams, pub/sub, scripting, transactions, ACLs — 463 commands across all the data types you'd expect.
Underneath, it's not Redis. Every mutation produces an effect that carries pointers to the effects it observed. The happened-before relation is encoded directly in the data, not inferred from clocks.
That's the whole trick. Replication has no leaders because there's nothing to elect. Merges need no coordination because the dependency graph orders them deterministically. Consistency comes from physics.
Learn more:
Install
# macOS / Linux (Homebrew)
brew tap swytchdb/tap
brew install swytch
# macOS / Linux (curl)
curl -fsSL https://getswytch.com/scripts/install.sh | sh
# NixOS (flakes)
nix profile add github:swytchdb/swytch#swytch
# Windows (PowerShell)
iwr -useb https://getswytch.com/scripts/install.ps1 | iex
Or pull the container:
docker pull ghcr.io/swytchdb/swytch:latest
Pinning a version with the curl/iwr installers:
curl -fsSL https://getswytch.com/scripts/install.sh | SWYTCH_VERSION=v0.1.0 sh
& ([scriptblock]::Create((iwr -useb https://getswytch.com/scripts/install.ps1))) -Version v0.1.0 -AddToPath
Prebuilt binaries, checksums, and cosign signatures for every release are at https://github.com/swytchdb/swytch/releases.
Quick start
swytch redis
redis-cli -p 6379
For sidecar deployments, talk to it over a Unix socket. No TCP overhead, no listener exposed:
swytch redis --unixsocket /tmp/swytch.sock --bind ""
import redis
r = redis.Redis(unix_socket_path="/tmp/swytch.sock")
r.set("hello", "world")
More options
# Custom port and memory limit
swytch redis --port 6380 --maxmemory 256mb --bind 0.0.0.0
# TLS (client-facing)
swytch redis --tls-cert-file server.crt --tls-key-file server.key
# mTLS (require client certs)
swytch redis --tls-cert-file server.crt --tls-key-file server.key --tls-ca-cert-file ca.crt
# Metrics and tracing
swytch redis --metrics-port 9090 --otel-endpoint localhost:4318
swytch redis -h for the full list.
Building from source
just build # development
just build-release # stripped, trimpath
just build-platform linux arm64
just test # tests
just test-race # tests with race detector
just proto # regenerate protobuf definitions
License
AGPL-3.0. See source file headers. Commercial licensing available; email [email protected].
Explore related projects
Asabeneh/30-Days-Of-Python
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,717 starsgrafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
77,896 starsredis/redis
For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.
77,491 starsapache/superset
Apache Superset is a Data Visualization and Data Exploration Platform
75,522 stars