DocsGet StartedIntroduction

Introduction

TopGun is a next-generation data platform designed for the modern “Local-First” web. It bridges the gap between scalable In-Memory Data Grids (IMDG) like Hazelcast and Offline-First Client Databases like RxDB. It allows you to build applications that are instant, reliable, and collaborative by default.

Features

TopGun aims to be the standard for local-first state management. It provides a robust sync engine out of the box.

Framework Agnostic

Works with React, Vue, Svelte, Solid, or vanilla JS. Zero dependencies on UI frameworks.

Local-First Architecture

The client is the replica. Reads/Writes are instant against local memory.

Conflict Resolution

Automatic convergence using Hybrid Logical Clocks (HLC) and CRDTs.

Offline Capable

Persists to IndexedDB or SQLite. Queues operations and syncs when online.

Real-Time Sync

Push-based architecture via WebSockets. Merkle Trees ensure bandwidth efficiency.

Scalable Backend

Server cluster handles partitioning, authority, and writing to Postgres/Mongo.