TopGun
TopGun
Offline-first in-memory data grid with CRDT sync
Build real-time, collaborative applications that work seamlessly offline and sync automatically when back online.
Features
- Offline-first — Works without internet, syncs when connected
- CRDT-based — Automatic conflict resolution with LWW-Map and OR-Map
- Real-time sync — Instant updates via WebSockets with Merkle tree delta sync
- TypeScript-first — Full type safety from client to server
Get Started
npm install @topgunbuild/client @topgunbuild/react
import { TopGunClient } from '@topgunbuild/client';
import { IDBAdapter } from '@topgunbuild/client';
const client = new TopGunClient({
serverUrl: 'ws://localhost:8080',
storage: new IDBAdapter(),
});
client.start();
// Write data (instant, works offline)
const todos = client.getMap('todos');
todos.set('todo-1', { text: 'Buy milk', done: false });
// Read data
const todo = todos.get('todo-1');
Links
Popular repositories Loading
-
topgun
topgun
Public
Offline-first in-memory data grid with CRDT sync and a Rust server
-
webcrypto
webcrypto
Public archive
⚠️ Archived. See github.com/TopGunBuild/topgun
TypeScript 1
-
socket
socket
Public archive
⚠️ Archived. See github.com/TopGunBuild/topgun
TypeScript
-
buffer
buffer
Public archive
⚠️ Archived. See github.com/TopGunBuild/topgun
TypeScript
-
jsonwebtoken
jsonwebtoken
Public archive
⚠️ Archived. See github.com/TopGunBuild/topgun
TypeScript
-
typed
typed
Public archive
⚠️ Archived. See github.com/TopGunBuild/topgun
TypeScript
Repositories
Showing 10 of 12 repositories-
topgun
Public
Offline-first in-memory data grid with CRDT sync and a Rust server
Uh oh!
There was an error while loading. Please reload this page.
TopGunBuild/topgun's past year of commit activity Rust 36 Apache-2.0 2 0 0 Updated Dec 4, 2026 -
.github
Public
Organization profile and community health files
Uh oh!
There was an error while loading. Please reload this page.
TopGunBuild/.github's past year of commit activity 0 0 0 0 Updated Dec 13, 2025 -
lmdb-adapter
Public archive
⚠️ Archived. See github.com/TopGunBuild/topgun
Uh oh!
There was an error while loading. Please reload this page.
TopGunBuild/lmdb-adapter's past year of commit activity TypeScript 0 MIT 0 0 0 Updated Dec 2, 2023 -
textencoder
Public archive
⚠️ Archived. See github.com/TopGunBuild/topgun
Uh oh!
There was an error while loading. Please reload this page.
TopGunBuild/textencoder's past year of commit activity TypeScript 0 MIT 0 0 0 Updated Nov 25, 2023 -
borsh
Public archive
Forked from
near/borsh-js
⚠️ Archived. See github.com/TopGunBuild/topgun
Uh oh!
There was an error while loading. Please reload this page.
TopGunBuild/borsh's past year of commit activity JavaScript 0 Apache-2.0 42 0 0 Updated Nov 24, 2023 -
socket
Public archive
⚠️ Archived. See github.com/TopGunBuild/topgun
Uh oh!
There was an error while loading. Please reload this page.
TopGunBuild/socket's past year of commit activity TypeScript 0 MIT 0 0 0 Updated Nov 22, 2023 -
buffer
Public archive
⚠️ Archived. See github.com/TopGunBuild/topgun
Uh oh!
There was an error while loading. Please reload this page.
TopGunBuild/buffer's past year of commit activity TypeScript 0 MIT 0 0 0 Updated Nov 21, 2023 -
typed
Public archive
⚠️ Archived. See github.com/TopGunBuild/topgun
Uh oh!
There was an error while loading. Please reload this page.
TopGunBuild/typed's past year of commit activity TypeScript 0 MIT 0 0 0 Updated Aug 23, 2023 -
jsonwebtoken
Public archive
⚠️ Archived. See github.com/TopGunBuild/topgun
Uh oh!
There was an error while loading. Please reload this page.
TopGunBuild/jsonwebtoken's past year of commit activity TypeScript 0 MIT 0 0 0 Updated Aug 23, 2023 -
async-stream-emitter
Public archive
⚠️ Archived. See github.com/TopGunBuild/topgun
Uh oh!
There was an error while loading. Please reload this page.
TopGunBuild/async-stream-emitter's past year of commit activity TypeScript 0 MIT 0 0 0 Updated Aug 23, 2023
People
Top languages
Loading…
Uh oh!
There was an error while loading. Please reload this page.
Most used topics
Loading…
Uh oh!
There was an error while loading. Please reload this page.