OPEN SOURCE • HIGH PERFORMANCE C RUNTIME

The database that
executes your code.

ThingsDB is a Stored-State-Distributed-Interpreter. It merges persistent data storage, business logic, and real-time event streaming into one cohesive distributed engine.

// Define a typed object with behavior
new_type('Device');
set_type('Device', {
    name: 'str',
    ip: 'str',
    is_active: 'bool',
    status: |this| this.is_active ? 'online' : 'offline'
});

// Store persistent state on the collection root
.devices = set();
.devices.add(Device{
    name: 'gateway-01',
    ip: '10.0.0.1',
    is_active: true
});

// Query and serialize in one expression
.devices.filter(|d| d.is_active).map_wrap();
OUTPUT (0.18ms)
[{"name": "gateway-01", "ip": "10.0.0.1", "is_active": true, "status": "online"}]
< 1ms
Execution Latency
In-memory interpreted execution
100%
Open Source C
Zero garbage collection pauses
Zero ORM
Unified Paradigm
No object-relational mismatch
Real-Time
Native Pub/Sub
Instant cluster-wide event triggers
DISTRIBUTED ARCHITECTURE

Engineered for extreme resilience

Eliminate the fragility of layered backends. ThingsDB coordinates data locality and compute directly in a single runtime.

Consensus & Scale

Distributed Multi-Node Architecture

ThingsDB distributes state and computation seamlessly across nodes. Data is organized into independent collections with deterministic replication, fault isolation, and automatic failover.

ThingsDB Consensus Deterministic State Automatic Failover
ThingsDB Distributed Architecture
Persistence

Stored State

Unlike traditional interpreters that lose variables on process exit, ThingsDB commits variable mutations directly to a persistent, quorum-replicated event log.

Stored State
Performance

Intelligent Routing

Every node maintains a full replica of all collections, allowing incoming queries to execute directly in local memory without routing hops—forwarding to a peer only when a node is temporarily in away mode.

Intelligent Data Routing
Real-Time

Event-Driven Computing

Subscribe to ThingsDB rooms from any client application and emit real-time events directly from your queries—without polling or external brokers.

Event-Driven Computing
Extensibility

Modular Integrations

Extend ThingsDB with external modules written in languages like Python or Go. Add custom math functions, expose HTTP endpoints, or connect directly to external databases and message brokers.

Modular Architecture
PARADIGM SHIFT

Why ThingsDB?

See how eliminating the boundary between code interpreter and database fundamentally simplifies your architecture.

Traditional Architecture

Fractured & Complex

  • Disjointed Layers: Separate app server, cache (Redis), and SQL/NoSQL database.
  • Network Serialization: Continuous JSON & ORM conversion back and forth.
  • Cache Invalidation: Hard-to-debug cache-miss and stale data synchronization bugs.
  • Fragile Failovers: Multiple points of failure that must be monitored separately.
ThingsDB Paradigm

Unified & Resilient

  • Single Cohesive Runtime: Business logic executes right where the data lives.
  • Direct In-Memory Access: Zero ORMs, zero query translation layer, instant responses.
  • Always-Consistent State: Stored-state persistence with deterministic multi-node replication.
  • Built-in Event Streaming: Automatic change notifications emitted straight to clients.
TOOLS & ECOSYSTEM

Everything Needed to Build & Inspect

From visual dashboards to powerful command-line tooling and enterprise monitoring solutions.

ThingsCode

ThingsCode (ticode) is the interactive development studio built for ThingsDB. Write and run queries with syntax highlighting, browse live collection data, and manage types, procedures, and rooms without leaving your browser.

Explore ThingsCode →

ThingsPrompt

A lightning-fast command-line shell client for ThingsDB. Execute live queries, stream collection events, and manage backups straight from your terminal.

Explore ThingsPrompt →

The ThingsDB Book

Written by core developer Jeroen van der Heijden. Master stored state, wrap-only types, real-time rooms, and step-by-step application development.

Read & Download Book →

Use Case: InfraSonar

Learn how InfraSonar processes millions of high-throughput telemetry data points across distributed microservices using ThingsDB as its primary data backbone.

Read InfraSonar Story →
ENGINEERING BLOG

Latest Updates & Deep Dives

Technical breakthroughs, optimization patterns, and release notes from the ThingsDB team.

View All Articles →
MySQL • • 3 min read

Exposing ThingsDB as a MySQL Database

Connect BI tools like Grafana and Metabase directly to ThingsDB using the MySQL Endpoint module—exposing virtual SQL tables without ETL or data duplication.

Ready to build resilient, distributed systems?

Start exploring with our technical documentation, experiment in our online playground, or schedule an introduction session with our core engineering team.