Skip to content
Projets

À propos

A parametric CAD application built on ElectricSQL, Tanstack DB and Durable Streams

Sciences et ingénierie

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
-1
in 15 days
-2
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original
SolidType - Modern CAD, Built for the Web

SolidType

A modern, history-capable, parametric CAD application.

🚀 Demo Showcase

SolidType is also a comprehensive demonstration of modern sync technologies:

  • Electric SQL - Real-time Postgres sync for structured metadata
  • Durable Streams - Append-only streams for Yjs document persistence
  • TanStack DB - Client-side embedded database with live queries

This project showcases how to build a production-ready collaborative application using Electric + Durable Streams for different data types (structured vs. CRDT-based documents).

It's also a great demonstration of AI integration using TanStack AI, and the TanStack Start framework.

Overview

SolidType is a collaborative CAD platform featuring:

  • Parametric 3D modeling powered by OpenCascade.js (OCCT)
  • 2D sketching with constraint solving for interactive design
  • Real-time collaboration via Electric SQL and Durable Streams
  • Multi-user workspaces and projects with branching support
  • AI-assisted modeling through chat-based tool calling
  • Conflict-free merging of CAD models using Yjs (CRDTs)

Prerequisites

  • Node.js >= 18.0.0
  • pnpm >= 8.0.0
  • Docker and Docker Compose (for local development)
  • PostgreSQL 14+ (optional if using Docker)

Quick Start

1. Clone and Install

git clone <repository-url>
cd solidtype
pnpm install

2. Environment Setup

Create a .env file in packages/app/ (optional - defaults are provided):

cd packages/app
cat > .env << EOF
# Database connection (for host connections)
DATABASE_URL=postgresql://solidtype:solidtype@localhost:54321/solidtype

# Electric SQL (optional - for Electric Cloud)
# ELECTRIC_SOURCE_ID=your_source_id
# ELECTRIC_SOURCE_SECRET=your_source_secret

# Durable Streams (defaults to http://localhost:3200)
# DURABLE_STREAMS_URL=http://localhost:3200

# API base URL (defaults to http://localhost:3000)
# VITE_API_URL=http://localhost:3000
EOF

3. Start Docker Services

SolidType requires three services running via Docker Compose:

# From the project root
docker-compose up -d

This starts:

  • PostgreSQL on port 54321 (host) → 5432 (container)
    • Configured with wal_level=logical for Electric SQL replication
    • Config file: postgres.conf (mounted in container)
  • Electric SQL on port 3100 (sync engine for real-time metadata)
  • Durable Streams on port 3200 (Yjs document persistence)

Verify services are running:

docker-compose ps

You should see all three services in "Up" state.

4. Database Setup

Run Migrations

Since we're using the Drizzle adapter with better-auth, all tables (including better-auth's user, session, account, verification tables) are included in our Drizzle schema. Simply run:

cd packages/app
pnpm db:push

This creates all database tables, including:

  • Application tables (workspaces, projects, documents, etc.)
  • Better Auth tables (user, session, account, verification)

Note: The better-auth schema is included in our Drizzle instance, so db:push handles everything.

Alternatively, generate migration files:

pnpm db:generate  # Generate migration files
pnpm db:migrate   # Apply migrations

Open Database Studio (Optional)

pnpm db:studio

Opens Drizzle Studio at http://localhost:4983 for database inspection.

5. Run the Application

cd packages/app
pnpm dev

The app will be available at http://localhost:3000.

6. HTTP/2 Proxy (Recommended)

Vite's dev server only supports HTTP/1.1, which limits browsers to 6 simultaneous connections. This can cause issues with Electric SQL sync and long-polling when you have multiple shapes/streams open.

Solution: Use Caddy as an HTTP/2 reverse proxy:

# Install Caddy: https://caddyserver.com/docs/install
# Then run:
caddy reverse-proxy --from localhost:3010 --to localhost:3000 --internal-certs

Now access the app at https://localhost:3010 instead of http://localhost:3000.

See Electric SQL Troubleshooting for more details on this issue.

Development Workflow

Project Structure

solidtype/
├── packages/
│   ├── core/          # CAD kernel (OpenCascade.js wrapper)
│   └── app/           # React application
│       ├── src/
│       │   ├── db/           # Database schema & migrations
│       │   ├── editor/       # CAD editor UI
│       │   ├── lib/          # Utilities (auth, sync, etc.)
│       │   ├── routes/       # TanStack Router routes
│       │   └── hooks/        # React hooks
│       └── drizzle.config.ts # Drizzle configuration
├── docker-compose.yml  # Local services
└── plan/              # Implementation phases

Available Scripts

Root Level

pnpm build          # Build all packages
pnpm typecheck      # Type-check all packages
pnpm test           # Run tests across packages

App Package (packages/app)

pnpm dev            # Start development server
pnpm build          # Build for production
pnpm preview        # Preview production build
pnpm typecheck      # Type-check TypeScript
pnpm test           # Run tests

# Database
pnpm db:generate    # Generate migration files
pnpm db:migrate     # Run migrations
pnpm db:push        # Push schema directly (dev only) - includes better-auth tables
pnpm db:studio      # Open Drizzle Studio

Services

PostgreSQL

  • Host port: 54321
  • Container port: 5432
  • User: solidtype
  • Password: solidtype (default)
  • Database: solidtype

Connect from host:

psql postgresql://solidtype:solidtype@localhost:54321/solidtype

Electric SQL

  • URL: http://localhost:3100
  • Syncs metadata (documents, folders, branches) from Postgres to clients
  • Uses logical replication from Postgres

Durable Streams

  • URL: http://localhost:3200
  • Persists Yjs documents (CAD model data)
  • Stores data in LMDB (Docker volume)

Development Tips

  1. Database Changes: After modifying schema in packages/app/src/db/schema/, run pnpm db:generate and pnpm db:push

  2. Service Logs: View logs for any service:

    docker-compose logs -f postgres
    docker-compose logs -f electric
    docker-compose logs -f durable-streams
    
  3. Reset Database: To start fresh (required if WAL level was changed):

    docker-compose down -v  # Remove volumes (⚠️ deletes all data)
    docker-compose up -d     # Recreate services with new config
    cd packages/app
    pnpm db:push            # Recreate all tables (including better-auth tables)
    

    Note: If you're adding wal_level=logical to an existing database, you must recreate the volume. WAL level changes require a fresh database.

  4. Hot Reload: The dev server supports HMR. Changes to React components and most code will hot-reload automatically.

Architecture

SolidType uses a modern local-first architecture, serving as a production example of Electric SQL and Durable Streams working together, with integrated AI assistance:

┌────────────────────────────────────────────────────────────────────────────┐
│                          Client (Browser)                                  │
├────────────────────────────────────────────────────────────────────────────┤
│                                                                            │
│  ┌──────────────────────┐  ┌──────────────────────┐  ┌──────────────────┐  │
│  │  TanStack DB         │  │  Yjs + Durable       │  │  AI Chat System  │  │
│  │  (Electric sync)     │  │  Streams             │  │                  │  │
│  │  - Live queries      │  │  - Document content  │  │  - Chat UI       │  │
│  │  - Optimistic writes │  │  - CRDT-based sync   │  │  - Tool approval │  │
│  │  - Metadata cache    │  │  - Awareness/presence│  │  - Agent runtime │  │
│  └──────────────────────┘  └──────────────────────┘  └──────────────────┘  │
│           │                         │                          │           │
│           │                         │                          │           │
│           │                         │                          │           │
│  ┌────────────────────────────────────────────────────────────────────┐    │
│  │                    Web Worker (Modeling Kernel)                    │    │
│  │  - OpenCascade.js (OCCT) - B-Rep operations                        │    │
│  │  - Document rebuild from Yjs                                       │    │
│  │  - Mesh generation for Three.js                                    │    │
│  │  - Agent runtime (SharedWorker) for AI tool execution              │    │
│  └────────────────────────────────────────────────────────────────────┘    │
│                                                                            │
└────────────────────────────────────────────────────────────────────────────┘
           │                         │                          │
       HTTP/SSE                  HTTP/SSE                   HTTP/SSE
           │                         │                          │
           ▼                         ▼                          ▼
┌────────────────────────────────────────────────────────────────────────────┐
│                    Server (TanStack Start)                                 │
│                                                                            │
│  ┌──────────────────────┐  ┌──────────────────────┐  ┌──────────────────┐  │
│  │  Electric Proxy      │  │  Durable Streams     │  │  AI Chat API     │  │
│  │  - Auth + shapes     │  │  Proxy (auth)        │  │  - SSE streaming │  │
│  │  - Authorization     │  │  - Document streams  │  │  - Tool execution│  │
│  └──────────────────────┘  └──────────────────────┘  │  - Persistence   │  │
│                                                      └──────────────────┘  │
│  ┌──────────────────────────────────────────────────────────────────────┐  │
│  │                    Server Functions (API Routes)                     │  │
│  │  - Session management (PostgreSQL)                                   │  │
│  │  - Document operations                                               │  │
│  │  - Tool implementations (dashboard, sketch, modeling)                │  │
│  └──────────────────────────────────────────────────────────────────────┘  │
└────────────────────────────────────────────────────────────────────────────┘
           │                         │                          │
           ▼                         ▼                          ▼
┌──────────────────────┐  ┌──────────────────────┐  ┌──────────────────┐
│  PostgreSQL          │  │  Electric SQL        │  │  Durable Streams │
│  (primary database)  │  │  (sync engine)       │  │  (LMDB storage)  │
│                      │  │                      │  │                  │
│  • Metadata tables   │  │  • Real-time sync    │  │  • Document      │
│  • Workspaces        │  │  • Logical repl      │  │    streams       │
│  • Projects          │  │  • Authorization     │  │  • Chat streams  │
│  • Documents         │  │  • Optimistic txns   │  │  • Awareness     │
│  • Chat sessions     │  │                      │  │    streams       │
│  • User auth         │  │                      │  │                  │
└──────────────────────┘  └──────────────────────┘  └──────────────────┘

Data Flow Architecture

This architecture demonstrates three distinct data synchronization patterns:

1. Structured Metadata (Electric SQL + PostgreSQL)

Electric SQL handles structured, relational metadata with real-time Postgres sync:

  • Data types: Workspaces, projects, documents, folders, branches, chat session metadata
  • Sync mechanism: PostgreSQL logical replication → Electric SQL → TanStack DB (client)
  • Features:
    • Real-time bidirectional sync
    • Authorization via server proxy (shapes)
    • Optimistic mutations with transaction ID reconciliation
    • Live queries that update automatically
  • Use case: Perfect for hierarchical, relational data that needs querying and filtering

Example flow:

User creates project → Server writes to PostgreSQL → Electric syncs →
TanStack DB updates → UI re-renders automatically

2. Unstructured Document Content (Durable Streams + Yjs)

Durable Streams handles unstructured, CRDT-based document content:

  • Data types: CAD model features, sketches, constraints, undo/redo history
  • Sync mechanism: Yjs CRDT → Durable Streams (append-only) → WebSocket/SSE → Other clients
  • Features:
    • Conflict-free merging (CRDTs)
    • Append-only persistence (LMDB)
    • Awareness/presence (cursors, selections)
    • Deterministic rebuild order
  • Use case: Perfect for collaborative editing where order matters and conflicts must merge automatically

Example flow:

User adds sketch point → Yjs update → Durable Stream append →
Other clients receive update → CRDT merge → UI updates

3. AI Chat Sessions (Hybrid: PostgreSQL + Durable Streams + Durable State)

AI chat uses a hybrid approach combining both systems:

  • PostgreSQL stores session metadata:

    • Session ID, user ID, context (dashboard/editor)
    • Document/project references
    • Status, title, message count
    • Timestamps
    • Purpose: Fast listing, querying, UI display
  • Durable Streams + Durable State Protocol stores chat transcript:

    • Stream ID: ai-chat/{sessionId}
    • Durable State collections: messages, chunks, runs
    • Message content (user, assistant, tool_call, tool_result)
    • Streaming chunks with sequence numbers
    • Run lifecycle tracking (running, complete, error)
    • Tool calls with approval status
    • Purpose: Durable, resumable transcript with live queries

Example flow:

User sends message → SharedWorker coordinates run →
Server POST /api/ai/sessions/{id}/run → Server writes to Durable State →
LLM streams response → Chunks persisted as events →
Client StreamDB live queries → UI updates automatically →
Multi-tab sync via Durable State → Resumable on refresh

AI Integration Architecture

Chat Session Management

┌────────────────────────────────────────────────────────────────┐
│                     Chat Session Architecture                  │
├────────────────────────────────────────────────────────────────┤
│                                                                │
│  PostgreSQL (ai_chat_sessions table)                           │
│  ┌─────────────────────────────────────────────────────────┐   │
│  │ • Session metadata (id, userId, context, status)        │   │
│  │ • References (documentId, projectId)                    │   │
│  │ • Timestamps (createdAt, updatedAt)                     │   │
│  │ • Display info (title, messageCount)                    │   │
│  │ → Used for: listing sessions, querying, UI display      │   │
│  └─────────────────────────────────────────────────────────┘   │
│                              │                                 │
│                              │ sessionId                       │
│                              ▼                                 │
│  Durable Streams + Durable State (ai-chat/{sessionId})         │
│  ┌─────────────────────────────────────────────────────────┐   │
│  │  Collections:                                           │   │
│  │  • messages: user, assistant, tool_call, tool_result    │   │
│  │  • chunks: streaming deltas with sequence numbers       │   │
│  │  • runs: run lifecycle (running, complete, error)       │   │
│  │                                                         │   │
│  │  → Used for: durable transcript, live queries,          │   │
│  │    resumption, multi-tab sync, tool approval state      │   │
│  └─────────────────────────────────────────────────────────┘   │
│                              │                                 │
│                              │ StreamDB (client)               │
│                              ▼                                 │
│  ┌─────────────────────────────────────────────────────────┐   │
│  │  Client Live Queries                                    │   │
│  │  • Observes messages, chunks, runs                      │   │
│  │  • Hydrates assistant content from chunks               │   │
│  │  • UI updates automatically as events arrive            │   │
│  │  → No SSE dependency, fully resumable                   │   │
│  └─────────────────────────────────────────────────────────┘   │
└────────────────────────────────────────────────────────────────┘

Tool System

AI tools are organized by context:

  • Dashboard tools: List workspaces, create projects, navigate documents
  • Sketch tools: Add points, lines, arcs, apply constraints
  • Modeling tools: Extrude, revolve, boolean operations, fillet/chamfer
  • Client tools: Navigation, selection, view manipulation (run in browser)

Tools execute in two modes:

  1. Server-side: Modeling operations that modify the document (via Yjs updates)

    • Server writes tool_call message to Durable State
    • Server executes tool and writes tool_result message
    • TanStack AI continues with result
  2. Local (future): CAD operations executed in SharedWorker

    • Server writes tool_call message with status: "pending"
    • SharedWorker observes pending tool_call
    • Worker requests approval (or auto-approves)
    • Worker executes tool locally, writes tool_result message
    • Server observes result and continues

Tool calls and results are persisted in Durable State with approval status, making them resumable and visible across tabs.

Agent Runtime System

Agents run in a SharedWorker singleton that coordinates runs across tabs and hosts local tool execution:

┌─────────────────────────────────────────────────────────────────────────────┐
│                          Agent Runtime Architecture                         │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│  Main Thread (Multiple Tabs)        SharedWorker (Singleton)                │
│  ┌────────────────────┐              ┌────────────────────────────────┐     │
│  │  UI Components     │              │  AI Chat Worker                │     │
│  │  • useAIChat()     │◄────────────►│  • Run coordination            │     │
│  │  • StreamDB        │   Messages   │  • Single run per session      │     │
│  │  • Live queries    │              │  • CAD kernel (OCCT)           │     │
│  └────────────────────┘              │  • Local tool execution        │     │
│           │                          └────────────────────────────────┘     │
│           │                                        │                        │
│           │                                        │                        │
│           ▼                                        ▼                        │
│  ┌────────────────────┐              ┌────────────────────────────────┐     │
│  │  StreamDB          │              │  Server /run endpoint          │     │
│  │  • Live queries    │              │  • TanStack AI chat()          │     │
│  │  • Hydrates chunks │              │  • Writes to Durable State     │     │
│  │  • Multi-tab sync  │              │  • Tool call bridge            │     │
│  └────────────────────┘              └────────────────────────────────┘     │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

Runtime Options:
┌─────────────────────────┐  ┌─────────────────────────┐  ┌────────────────────┐
│  BrowserAgentRuntime    │  │  EdgeAgentRuntime       │  │  DOAgentRuntime    │
│  • SharedWorker         │  │  • Cloudflare Worker    │  │  • Durable Object  │
│  • Worker fallback      │  │  • Vercel Edge          │  │  • Stateful        │
│  • Local OCCT kernel    │  │  • Remote kernel        │  │  • Persistent      │
│  • Run coordination     │  │  • Future               │  │  • Future          │
│  • Idle shutdown        │  │                         │  │                    │
└─────────────────────────┘  └─────────────────────────┘  └────────────────────┘

Current implementation: Browser runtime using SharedWorker (with Worker fallback)

  • Run coordination: Only one run per session across all tabs
  • Modeling kernel (OCCT): Runs in worker thread, shared across tabs
  • Idle shutdown: Worker shuts down after 3 minutes of inactivity
  • Resumable: Transcript persists in Durable State, resumes on reconnect
  • Multi-tab sync: All tabs observe the same Durable State via live queries

Tool Approval System

Three-layer approval system:

  1. Default rules: Built-in per-tool approval levels

    • Dashboard: Auto for reads, confirm for destructive operations
    • Editor: Auto for all operations (everything is undoable via Yjs)
  2. User preferences: Per-tool overrides stored in localStorage

    • "Always allow" list (skip confirmation)
    • "Always confirm" list (require confirmation)
  3. YOLO mode: Global override to auto-approve everything

Component Integration

How Components Slot Together

  1. User creates a document:

    • Metadata → PostgreSQL (via Electric sync)
    • Document content → Durable Stream (Yjs)
  2. User opens AI chat:

    • Session created → PostgreSQL (metadata)
    • Client creates StreamDB for session → Live queries observe transcript
    • Messages persist to Durable State (ai-chat/{sessionId})
  3. User sends message:

    • UI calls SharedWorker startRun()
    • Worker coordinates: ensures only one run per session
    • Worker POSTs to /api/ai/sessions/{id}/run
    • Server writes run + user message + assistant placeholder to Durable State
    • Server streams LLM response, writes chunks as events
    • Client StreamDB live queries update UI automatically
    • Multi-tab: all tabs observe same Durable State
  4. AI executes a tool:

    • Server writes tool_call message to Durable State
    • Server executes tool → Modifies Yjs document
    • Server writes tool_result message to Durable State
    • Document update → Durable Stream → All clients sync
    • Worker rebuilds → Mesh sent to UI
  5. Multiple users collaborate:

    • Electric syncs metadata changes (project structure)
    • Durable Streams syncs document changes (CRDT merge)
    • Awareness syncs presence (cursors, selections)
    • AI chat transcripts sync via Durable State (multi-tab, resumable)

Key Design Principles

  • Separation of concerns: Different sync technologies for different data types
  • Local-first: All data is available locally, sync happens in background
  • Conflict-free: CRDTs ensure automatic merging without conflicts
  • Real-time: Changes propagate instantly to all connected clients
  • Undoable: All operations are reversible via Yjs undo/redo
  • Secure: Authorization enforced at server proxy layer
  • Extensible: Agent runtime abstraction supports multiple execution environments

See packages/app/src/lib/electric-proxy.ts and packages/app/src/lib/electric-collections.ts for Electric integration examples.

See plan/23-ai-core-infrastructure.md for detailed AI architecture specification.

Key Technologies

Core Framework:

  • TanStack Start: Full-stack React framework
  • TanStack DB: Client-side embedded database with live queries
  • Drizzle ORM: Type-safe database queries and migrations

Sync & Collaboration:

  • Electric SQL: Real-time Postgres sync for structured metadata
  • Durable Streams: Append-only streams for Yjs document persistence
  • Yjs: CRDT-based collaborative editing

CAD Kernel:

  • OpenCascade.js: B-Rep kernel (WASM) for 3D geometry operations

Rendering:

  • Three.js: 3D graphics library for WebGL-based visualization

Authentication:

  • Better Auth: Type-safe authentication library with Drizzle adapter

AI Integration:

  • TanStack AI: Unified AI interface with tool calling support
  • Anthropic Claude: LLM for chat-based modeling assistance
  • Agent Runtime: Background execution system (SharedWorker/Worker)

Troubleshooting

Services Won't Start

  1. Check Docker: Ensure Docker Desktop is running

    docker ps
    
  2. Check Ports: Ensure ports 54321, 3100, 3200 are available

    lsof -i :54321
    lsof -i :3100
    lsof -i :3200
    
  3. View Logs: Check service logs for errors

    docker-compose logs
    

Database Connection Issues

  1. Verify Postgres is running:

    docker-compose ps postgres
    
  2. Check connection string: Ensure DATABASE_URL uses port 54321 for host connections

  3. Reset database:

    docker-compose down -v
    docker-compose up -d
    cd packages/app
    pnpm db:push
    

Better Auth Tables Missing

If you see errors like "relation 'user' does not exist":

Run the database push command to create all tables (including better-auth tables):

cd packages/app
pnpm db:push

This creates all required tables including better-auth's authentication tables (user, session, account, verification).

Electric SQL Not Syncing

  1. Check Electric logs:

    docker-compose logs electric
    
  2. Verify Postgres logical replication:

    • Electric requires wal_level=logical in Postgres
    • This is configured in postgres.conf and mounted in the container
    • If you see "logical decoding requires wal_level >= logical", ensure the config file is mounted correctly
  3. Check Electric proxy routes: Ensure API routes are proxying Electric requests correctly

Type Errors

# Clean and rebuild types
cd packages/app
rm -rf node_modules .next dist
pnpm install
pnpm typecheck

Next Steps

For SolidType Development

Learning Electric SQL & Durable Streams

This project is an excellent reference implementation for:

  • Electric SQL - See how to:

    • Set up Electric with Postgres logical replication
    • Create secure proxy routes with authorization
    • Use TanStack DB collections with Electric shapes
    • Implement optimistic mutations with txid reconciliation
    • Reference: Electric SQL AGENTS.md
  • Durable Streams - See how to:

    • Integrate Yjs with Durable Streams for document persistence using @durable-streams/y-durable-streams
    • Set up append-only streams for CRDT sync
    • Handle awareness/presence via separate streams
    • Implement reconnection and error handling
    • See packages/app/src/lib/yjs-sync.ts for provider usage

Learning AI Integration Architecture

This project demonstrates a production-ready AI integration pattern:

  • Hybrid Storage: PostgreSQL for metadata + Durable Streams + Durable State for content

    • Session metadata in PostgreSQL (fast queries, listing)
    • Chat transcript in Durable State Protocol (messages, chunks, runs collections)
    • Fully resumable: refresh mid-stream, transcript resumes automatically
    • Multi-tab sync: all tabs observe same Durable State via live queries
    • See packages/app/src/lib/ai/state/ for schema and StreamDB helpers
  • Durable State Protocol: Event-sourced transcript storage

    • messages collection: user, assistant, tool_call, tool_result
    • chunks collection: streaming deltas with sequence numbers
    • runs collection: run lifecycle tracking
    • Client uses StreamDB with live queries (no SSE dependency)
    • See packages/app/src/lib/ai/state/schema.ts for the schema
  • Run Coordination: SharedWorker singleton pattern

    • Only one run per session across all tabs
    • Idle shutdown after 3 minutes of inactivity
    • Coordinates tool execution and CAD kernel access
    • See packages/app/src/lib/ai/runtime/ai-chat-worker.ts for implementation
  • Tool System: Context-aware tool definitions with Durable State persistence

    • Dashboard tools: Project/document management
    • Sketch tools: 2D geometry creation
    • Modeling tools: 3D feature operations
    • Client tools: UI navigation and selection
    • Tool calls and results persisted in Durable State with approval status
    • See packages/app/src/lib/ai/tools/ for implementations
  • Tool Approval: Three-layer approval system

    • Default rules per context
    • User preferences (localStorage)
    • YOLO mode (global override)
    • Approval state persisted in Durable State (survives refresh)
    • See packages/app/src/lib/ai/approval.ts for the registry
  • TanStack AI Integration: See how to:

    • Set up TanStack AI with custom adapters
    • Implement tool calling with server/client split
    • Bridge streaming to Durable State (chunks as events)
    • Use StreamDB live queries instead of direct SSE consumption
    • Integrate with existing document model (Yjs)
    • Reference: TanStack AI Documentation

License

MIT

Explorer des projets similaires

Chargement…