Skip to content

SDK Overview

ParticleDB provides multiple connectivity options: REST API, PostgreSQL wire protocol, gRPC, and WebSocket. Each SDK uses one or more of these transports. You can also use any standard PostgreSQL driver directly.

Terminal window
# REST client (zero dependencies)
pip install particledb
# With gRPC support
pip install particledb[grpc]
LanguagePackageTransportVectorKVRAGAI
PythonparticledbREST + gRPCYesYesYes
TypeScriptparticledbPG wire + gRPC + WebSocket/SSEYesYesYesYes
Goparticledb-goPG wire + gRPCYesYesYesYes
Javaparticledb-java-sdkJDBC (PG wire) + gRPCYesYesYesYes
Rustparticledb-sdkSqlExecutor trait (pluggable)YesYesYesYes
C# / .NETParticleDB.ClientPG wire (Npgsql)YesYesYesYes
Kotlinparticledb-kotlinREST (OkHttp)YesYesYes
Swiftparticledb-swiftREST (URLSession)YesYesYes
Dart / FlutterparticledbREST (http)YesYesYes
RubyparticledbREST (Net::HTTP)YesYesYes
PHPparticledb-phpREST (cURL)YesYesYes
ClibparticledbREST (libcurl)
C++particledb (header-only)PG wire (libpq)YesYesYesYes
Browser@particledb/webWebSocketYesYesYesYes

Used by: Python, Kotlin, Swift, Dart, Ruby, PHP, C

The REST API runs on port 8080 by default. SDKs send SQL as JSON payloads to POST /v1/sql and receive structured JSON responses. Zero-dependency clients can be built using any HTTP library.

Used by: TypeScript, Go, Java, C#, C++

Full compatibility with standard PostgreSQL drivers. Supports prepared statements, transactions, binary format, and pipeline mode. Runs on port 5432 by default.

Used by: Python, TypeScript, Go, Java

Native gRPC protocol with protobuf-encoded messages. Supports unary RPC, server-streaming (large result sets), client-streaming (bulk insert), and CDC event subscriptions. Default port 26257 (Go) or 50051 (Python) or 9090 (Java).

Used by: Browser SDK

The browser SDK connects via WebSocket proxy for real-time bidirectional communication. Supports SQL queries, pub/sub event subscriptions, and automatic reconnection with exponential backoff.

Standard PostgreSQL drivers give you full SQL access to ParticleDB. The ParticleDB SDKs add:

  • Vector search helpers — Build and query vector indexes with a typed API instead of raw SQL
  • KV operationsget, set, delete, mset, incr, keys methods for key-value workloads
  • RAG pipelines — Create named pipelines for retrieval-augmented generation workflows
  • AI functions — Embeddings, text generation, classification, and summarization
  • CDC streaming — Real-time change-data-capture event subscriptions (gRPC / WebSocket)