Less Boilerplate with Auto-Conversion
Discover how ThingsDB v1.11.2 reduces code boilerplate with automatic type conversion, implicit coercions, and streamlined procedure parameters.
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();[{"name": "gateway-01", "ip": "10.0.0.1", "is_active": true, "status": "online"}]Eliminate the fragility of layered backends. ThingsDB coordinates data locality and compute directly in a single runtime.
ThingsDB distributes state and computation seamlessly across nodes. Data is organized into independent collections with deterministic replication, fault isolation, and automatic failover.

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

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.

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

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.

See how eliminating the boundary between code interpreter and database fundamentally simplifies your architecture.
From visual dashboards to powerful command-line tooling and enterprise monitoring solutions.
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 →A lightning-fast command-line shell client for ThingsDB. Execute live queries, stream collection events, and manage backups straight from your terminal.
Explore ThingsPrompt →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 →Learn how InfraSonar processes millions of high-throughput telemetry data points across distributed microservices using ThingsDB as its primary data backbone.
Read InfraSonar Story →Technical breakthroughs, optimization patterns, and release notes from the ThingsDB team.
Discover how ThingsDB v1.11.2 reduces code boilerplate with automatic type conversion, implicit coercions, and streamlined procedure parameters.
Connect BI tools like Grafana and Metabase directly to ThingsDB using the MySQL Endpoint module—exposing virtual SQL tables without ETL or data duplication.
Reduce payload size and serialization overhead in ThingsDB using row mode on wrap-only types to stream compact value arrays with map_wrap().
Start exploring with our technical documentation, experiment in our online playground, or schedule an introduction session with our core engineering team.