chaozzDB

maintenance

by Elmar Wenners (chaozz) · since 2008

Single-file PHP flat-file database that stores tables as TSV files and runs a tiny SQL-like dialect.

relationalembedded libraryopen source (permissive)legacy

maintenance. Hobby project; engine code effectively unchanged for years, with only README edits and an MIT license added (May 2026).

Overview

chaozzDB is a hobby project by Dutch developer Elmar Wenners: one PHP include that treats tab-separated text files in a folder as tables and runs a minimal SQL-like dialect (SELECT, INSERT, UPDATE and DELETE with simple WHERE clauses) through a single chaozzdb_query() call. There is no server, extension or binary format; each table is a plain .tsv file whose first line lists the fields, starting with a mandatory id column, and a helper salts passwords before storage. That makes it handy for tiny sites on hosting without MySQL and easy to inspect or fix by hand. The engine code has been static for years; repository activity since 2024 consists of README edits and adding an MIT license in May 2026.

Strengths & trade-offs

Strengths

  • +Zero dependencies: one PHP file and a folder of text tables
  • +Tables are human-readable TSV files you can edit in any text editor
  • +Familiar SQL-like syntax for basic CRUD

Trade-offs

  • −No indexes, joins or transactions; every query scans the file
  • −No concurrency control beyond what the filesystem provides
  • −Requires world-writable data directories on the web server
  • −Hobby project with no active development

Great for

  • +Tiny PHP sites on hosting without a database server
  • +Learning projects and quick prototypes

Think twice for

  • −Multi-user write workloads
  • −Tables beyond a few thousand rows
  • −Sensitive data on shared hosting

Capabilities

Native or official first-party support · 1 of 25 tracked

✓Durable persistence
–Transactions
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
None
Consistency
Strong
Schema
Strict
Architecture
Embedded
Query languages
SQL-like subset

Every query reads the table file; SELECT results are capped by a configurable maximum (999 rows by default).

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsPHP function API
client languagesPHP

Alternatives to chaozzDB

Compare all→
SQLiteRelational75.5

The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.

chaozzdb vs sqlite →
SleekDBDocument2.7

Dependency-free PHP library that stores schemaless documents as plain JSON files on disk.

chaozzdb vs sleekdb →
lowdbDocument19.1

Tiny type-safe local JSON database for Node, Electron and the browser using plain JavaScript.

chaozzdb vs lowdb →
TinyDBDocument21.3

Pure-Python document store that keeps every table in one human-readable JSON file.

chaozzdb vs tinydb →
Microsoft AccessRelational45.8

Desktop database and forms builder bundled with Microsoft 365; still everywhere in back offices.

chaozzdb vs microsoft-access →
FirebirdRelational32.8

Lightweight, MVCC relational database from the InterBase lineage, embeddable or client-server.

chaozzdb vs firebird →

chaozzDB FAQ

What is chaozzDB?

chaozzDB is a relational database by Elmar Wenners (chaozz), first released in 2008. chaozzDB is a hobby project by Dutch developer Elmar Wenners: one PHP include that treats tab-separated text files in a folder as tables and runs a minimal SQL-like dialect (SELECT, INSERT, UPDATE and DELETE with simple WHERE clauses) through a single chaozzdb_query() call. There is no server, extension or binary format; each table is a plain .tsv file whose first line lists the fields, starting with a mandatory id column, and a helper salts passwords before storage. That makes it handy for tiny sites on hosting without MySQL and easy to inspect or fix by hand. The engine code has been static for years; repository activity since 2024 consists of README edits and adding an MIT license in May 2026.

Is chaozzDB open source?

Yes. chaozzDB is open source. License: MIT License.

Does chaozzDB support ACID transactions?

No. chaozzDB does not provide ACID transactions; its consistency model is strong.

Does chaozzDB scale horizontally?

chaozzDB does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run chaozzDB?

You can self-host it and embed it in your application.

What is chaozzDB best for?

chaozzDB is a strong fit for tiny PHP sites on hosting without a database server; and learning projects and quick prototypes. Think twice for multi-user write workloads.

What are the best alternatives to chaozzDB?

Common alternatives to chaozzDB include SQLite, SleekDB, lowdb, TinyDB and Microsoft Access. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is chaozzDB still maintained?

chaozzDB is in maintenance mode. Hobby project; engine code effectively unchanged for years, with only README edits and an MIT license added (May 2026).

How popular is chaozzDB?

chaozzDB ranks #663 of 844 databases on the WhichDB Score (0.2/100), and #199 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.