Skip to content

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';constclient=newTopGunClient({serverUrl: 'ws://localhost:8080',storage: newIDBAdapter(),});client.start();// Write data (instant, works offline)consttodos=client.getMap('todos');todos.set('todo-1',{text: 'Buy milk',done: false});// Read dataconsttodo=todos.get('todo-1');

Links

Popular repositories Loading

  1. topgun topgunPublic

    Offline-first in-memory data grid with CRDT sync and a Rust server

    Rust 35 2

  2. webcrypto webcryptoPublic archive

    ⚠️ Archived. See github.com/TopGunBuild/topgun

    TypeScript 1

  3. socket socketPublic archive

    ⚠️ Archived. See github.com/TopGunBuild/topgun

    TypeScript

  4. buffer bufferPublic archive

    ⚠️ Archived. See github.com/TopGunBuild/topgun

    TypeScript

  5. jsonwebtoken jsonwebtokenPublic archive

    ⚠️ Archived. See github.com/TopGunBuild/topgun

    TypeScript

  6. typed typedPublic archive

    ⚠️ Archived. See github.com/TopGunBuild/topgun

    TypeScript

Repositories

Showing 10 of 12 repositories

Top languages

Loading…

Most used topics

Loading…