Dither #
An open-source toolbox for creating privacy-respecting decentralized applications capable of replacing centralized internet services.
Vast swaths of the internet depend on a handful of companies to stay running. That creates central points of failure, censorship, and surveillance, with personal data sitting in corporate datacenters at the whim of companies and governments. Dither’s goal is to let programmers build actually competitive applications with no central points of failure, user-controlled data, and scale-free coordination to make it happen.
Three principles guide the design:11. Most of Dither is still in design and simulation rather than finished software.
- Dither should be as modular and comprehensible as possible.
- Protocols, formats, and communities should be adversarially interoperable with existing ones.22. In progress on the client side: dither-chat (notes), a self-hosted inbox unifying Discord, Signal, WhatsApp, Matrix, Telegram, X, and email.
- Dither should rely on itself rather than centralized infrastructure.
Figure 1. Planned node layout: a sandboxed core process hosting a modular swarm of peer-to-peer services beneath thin application interfaces.
Research Projects #
Dither is at the moment mainly a research project that aims to identify the major problems with existing decentralized networks and devise a set of formal specifications that, if satisfied, would implement an ideal peer-to-peer protocol. Some examples of problems with existing protocols: Tor and I2P are slow, BitTorrent and IPFS lookups leak queries and burn round trips, messages need to be stored while nodes are down, the new Freenet omits privacy and incentives, and AT Protocol keeps hosted servers.33. See Comparisons to Other Networks for more details. Each section is a major problem different p2p systems run into.
Distance-based anonymous routing #
Docs: Whitepaper PDF · spec
Conventional onion networks pick relay hops randomly, ignoring geography and bandwidth, and give every application the same fixed circuit length. They can’t dynamically move through the tradeoff space between anonymity and convenience (from fast unanonymized to slow mixnet) on a per-application basis. The solution is for nodes to learn and exchange computational models of internet connectivity: either latency-coordinate learning or something more complex and generalized.44. Trade-off: latency coordinates leak coarse geography. Tighter latency bounds give a smaller anonymity set, exposing the privacy-vs-speed dial explicitly instead of hiding it. Every node acts as a potential relay, with contribution accounting replacing volunteer-only capacity.
Figure 2. Peer positions reflect measured latency. Restricting relay choice to an ellipse between endpoints bounds round-trip overhead while preserving onion routing.
Directional trail search & mutable hash links #
Docs: Directional Trail Search
Finding public data through a Kademlia DHT (BitTorrent, IPFS) takes iterative round trips across random peers and leaks what you are looking for. Directional Trail Search has hosts lay short counting Bloom-filter trails toward coordinate landmarks, so lookups intersect a trail and follow it over anonymous routes.55. These should in theory work well for popular content, but rare items have no persistence guarantee without persistent hosting. On top of immutable content hashes, signed pointer links support mutable feeds and comment trees. The generalized+incentivized version of this is a system where people store local models that either store compressed versions of desired data themselves, or produce further actions to search for the data locally or on the network in a way that is customized to the data being requested (can be something as specific as matching a hash value or something as broad as the result of some computation or search).
Figure 3. Instead of stepping through distant hash-space peers, hosts advertise content along coordinate trails that queries intersect and follow.
Disp: hash-addressed verifiable programs #
Working language: GitHub · disp-lang.net
In addition to moving data around, peer-to-peer protocols need to be ideally unhackable (more so than centralized services which can be continuously monitored for breaches). Additionally, as people customize the behavior of their own protocol, there needs to be ways for code someone else has written to be safely run on another computer as fast as possible. For this purpose Disp is developing as a kind of “universal” language or language-creation language where type theories and parsers are just libraries where you can prove transport between different theories.66. Most active implementation work is going into Disp at the moment, since much of the rest of Dither is meant to be built with it.
Figure 4. Programs travel as content-addressed data structures and are checked locally against a Disp-defined type system before running.
The Decentralization Stack: markets, immunity, and forks #
Rough Drafts (AI-written): 7-chapter overview · mathematical core
Even with fast routing and verifiable code, there still needs to be mechanisms that bind peers together and allow them to cooperate effectively with reduced risks of defection. This is arguably the hardest layer to build, and most other p2p networks fall back to centralization (Matrix, AT Proto, Mastodon/Lemmy), reduced service (Briar, Quiet), or non-scalable goodwill (Tor, I2P, Freenet). All of which either make the protocol ineffective, or capturable/influenceable by different existing coordination structures (e.g. governments).77. Chapters were drafted with an AI collaborator under author direction (disclosure). To solve this problem there needs to be notions of:
- Local to global coherence, i.e. small local networks merging into larger networks and being able to split off again / dynamically modulate degree of cooperation given the behavior of other networks.
- Efficient maintenance of commons / providing a base level of service to newcomers relative to how confident we are they are not the same entity multiple times.
- Prevention of concentration of power via land-value-tax-style mechanisms. (Concentration here could be for example routing/hosting/compute concentration for a given region.)
Figure 5. Where Dither’s research layers sit alongside the layers existing decentralized systems mostly cover.
Learner Theory: markets and neural nets as one price system #
Vibeslop: talk & slides · interactive explainer (Quality Slop) · timeline
Learner Theory is some very vibish research I did to try to see if land use in economies is analogous to residual stream use in neural networks.
It (allegedly) shows that urban land markets (rent, height limits, sprawl) and competing neural layers (adaptation, firing caps, credit assignment) obey the exact same equilibrium model.88. Lives in learner-theory/ in the main repo alongside derivations and browser experiments.
Index & Status #
| Project | State | Entry points |
|---|---|---|
| Prior-art comparisons | active notes | BitTorrent, Tor, I2P, Freenet, Quiet, ATProto |
| Anonymous routing | simulated | spec, whitepaper PDF, Rust simulator in node/ |
| Trail search | design notes | Directional Trail Search |
| Disp language | prototype | repository, disp-lang.net |
| Dither Chat | daily-driven (early) | repository, notes |
| Decentralization stack | design draft | 7-chapter overview, mathematical core |
| Learner Theory | published | talk, interactive explainer (Quality Slop), timeline |