DocsConcepts
Core Concepts
TopGun is built on a foundation of distributed systems theory. Understanding these concepts will help you design better local-first applications.
Local-First Architecture
Learn why inverting the client-server model leads to faster, more reliable apps. The client is the replica.
Read more
CRDTs & Hybrid Logical Clocks
How we guarantee eventual consistency and order events across devices without a central clock.
Read more
Sync Protocol
A deep dive into Merkle Trees, WebSockets, and how TopGun synchronizes data efficiently.
Read more
Data Structures
Understanding LWW-Map (Last-Write-Wins) and OR-Map (Observed-Remove) for different use cases.
Read more