Ghoti
A single-binary, in-memory server providing shared rate limits, leases, counters and broadcast channels over TCP or HTTP.
At a Glance
Self-hosted single-binary Ghoti server licensed under Apache-2.0; free to use, modify and distribute.
Engagement
Available On
Listed Dec 2026
About Ghoti
Ghoti is an open-source (Apache-2.0) server written in Go that keeps small pieces of shared state, such as rate limits, leases, counters and signals, in one place for a fleet of services. Clients talk to it with a plain-text line protocol over TCP or over HTTP with Server-Sent Events, so no client library is required. The current release listed on the project site is v0.4.0.
What It Is
Ghoti exposes 1,000 numbered slots (000 to 999). In config.yaml, each slot is assigned a kind: simple_memory, timeout_memory, token_bucket, leaky_bucket, ticker, atomic, broadcast or multicast. Clients read and write slots with one command per line, for example r000 to read and w001value to write. Requests are at most 40 bytes and one request is in flight per connection. All state is held in memory and nothing is written to disk.
Coordination use cases
The documentation describes several patterns:
- A shared token bucket or leaky bucket so many instances honor one upstream rate limit.
- A timeout_memory lease so one connection acts as the active worker, similar to leader election for a cron job.
- An atomic counter whose every read increments it, for sequence numbers without collisions.
- Broadcast and multicast slots that push a write to connected or subscribed clients, including browsers via Server-Sent Events.
Operations and limits
Optional features include users with per-slot read and write permissions, a Prometheus metrics endpoint, a connection cap, and an experimental leader-elected cluster mode without replication. The docs state that Ghoti is not a durable store or message queue, does not support TLS (terminate it in a proxy), and delivers events at most once. Leases have no fencing token and are lost on restart. Releases ship as binaries for Linux, macOS and Windows, and as a Docker image for linux/amd64 and linux/arm64, or it can be installed with go install.
Performance claims
The project's benchmark of v0.4.0 on an AWS t4g.micro reports a 0.31 ms median round trip with one connection and over 13,000 memory reads per second at 100 connections.
Collections
Popular collections
- Let Your Agents Talk to Each Other
Collection by @leftchannel
- See What Your Agent Is Doing remix
Collection by @joemseifi
- Let Your AI Read the Document, Not Just the Words
Collection by @priyashah
- Local-First Databases
Collection by @joemseifi
Add Ghoti to one of your collections.
Community Discussions
Be the first to start a conversation about Ghoti
Share your experience with Ghoti, ask questions, or help others learn from your insights.
Pricing
Open Source
Self-hosted single-binary Ghoti server licensed under Apache-2.0; free to use, modify and distribute.
- Apache-2.0 licensed core
- Single Go binary, in-memory
- Up to 1,000 slots (rate limiters, leases, counters, broadcast channels)
- TCP or HTTP with Server-Sent Events
- Prometheus metrics
Capabilities
Key Features
- 1,000 configurable slots
- Token bucket and leaky bucket rate limiters
- Timeout-memory leases for single active worker
- Atomic increment counters
- Ticker countdown slots
- Broadcast and multicast signals
- Plain-text TCP, telnet and HTTP with Server-Sent Events transports
- Per-slot user read/write permissions
- Prometheus metrics endpoint
- Connection limits
- Experimental leader-elected cluster mode
- Docker image
