Getting startedInstall CobaltDB and run your first SQL query in Go.SQL & JSONTables, indexes, parameterized queries, JSON and transactions.ArchitectureExplore disk-paged B+trees, bounded memory and crash recovery.Server & clientsConnect MySQL 8.4 clients and ORMs to the standalone server.Production guidePlan TLS, security, backups, observability and deployment boundaries.Performance benchmarksPaged storage, memory measurements and benchmark methodology.FeaturesSQL, transactions, encryption and a pure Go runtime.Brand assetsDownload the CobaltDB SVG logo and icon.
K to open ESC to close
v0.7.0MySQL 8.4. Built for disk.

Small footprint.
Serious database.

All the database you need.
Right where your application lives.

A modern SQL database written in Go. Embed it in your app or run it as a MySQL 8.4-compatible server. Disk-paged storage, pure Go.

$ go get github.com/cobaltdb/cobaltdb@v0.7.0
Open source · MITZero CGOYours to build on
CobaltDB engine connecting an application to SQL, JSON and durable storageCOBALTDBGoSQL{ }YOUR APPLICATIONSQL ENGINEJSON DATAONE SMALL FOOTPRINT.CGO_ENABLED=0
FIG. 01 A complete database. Inside your app.GO →
SMALL BY DESIGN.
COMPLETE BY NATURE.
SQL + JSONACID transactionsPure GoBuilt-in encryptionMySQL 8.4
BUILT FOR THE WAY YOU BUILD

Less infrastructure.
More possibility.

Your database should move your application forward.
A capable engine, without the operational weight.

01 / THE ENGINE

Powerful at the core.
Simple at the edges.

4 KiB disk pages, checksums and a bounded page cache.
One cohesive engine you can run your way.

Look under the hood

Go all the way.

A pure Go runtime. No CGO toolchain, no C bindings. Cross-compile with the tools you already use.

100% Go

Keep the promises.

Row locks, deadlock detection and write-ahead logging keep concurrent writes consistent and durable.

ACID + WAL

Make privacy a primitive.

Built-in AES-256-GCM encryption, row-level security policies and audit logging for sensitive workflows.

Security built in
LESS SETUP. MORE BUILDING.

Your next idea.
Already connected.

Go from import to your first query.
Pick the way you want to build.

Walk through the quick start
main.goGo
db, err := engine.Open("app.db", nil)
if err != nil { log.Fatal(err) }
defer db.Close()

ctx := context.Background()
rows, err := db.Query(ctx,
    "SELECT name FROM projects WHERE stars > ?", 100)
if err != nil { log.Fatal(err) }
defer rows.Close()
Your process. Your data. No database server required.
THE GOOD PARTS, BUILT IN

Real SQL.
Room for more.

Tables, joins, indexes and the SQL you already know. Keep your data structured and your queries expressive.

Explore the SQL reference
workspace.dbEXAMPLE EXPLORER
query.sql
SELECT name, language, stars
FROM projects
WHERE language = 'Go'
ORDER BY stars DESC
LIMIT 3;
Sample output3 rows
Relational, without the ceremony. Illustrative sample data.
namelanguagestars
cobaltdbGo1,280
atlasGo864
lumenGo512
Illustrative data · Examples are not executed in your browser.
DESIGNED TO KEEP MEMORY IN CHECK

More data on disk.
Less pressure on memory.

Tables live on disk, not in the Go heap.
Cache pages. Stream results. Spill large working sets.

1M ROWS · STREAMED SELECT
83MB

Peak RSS · streamed SELECT

DEFAULT · BUFFER POOL
128MiB

32,768 cached pages by default

STORAGE · PAGE SIZE
4KiB

Checksummed storage pages

Disk-paged by design.
Context matters. Here’s ours.

The v0.7.0 repository reports 83 MB peak server RSS while streaming a SELECT over 1M rows, compared with 881 MB before paged storage. Cache and page sizes are configuration defaults, not speed measurements. RSS varies with workload, configuration and environment.

Read the methodology
YOUR APP. YOUR ARCHITECTURE.

One engine.
Two ways to make it yours.

Start with the deployment that fits.
Keep the same SQL foundation.

EMBEDDED

Inside your process.
Out of your way.

Import the Go engine and open a database. An ideal starting point for local tools, desktop apps, edge services and self-contained applications.

Your Go application
CobaltDBapp.db
Build with embedded
STANDALONE

A familiar connection.
A fresh foundation.

Use MySQL 8.4 clients and familiar ORMs. The upstream release compares drivers, mysqldump and application workloads against MySQL 8.4; check the documented differences for your deployment.

GoPythonNode.jsJava
CobaltDB server:3307
Connect to the server
MySQL 8.4 compatibility, with documented differences. Check the tested client matrix for your workflow.
A FEW GOOD QUESTIONS

Before you
dive in.

Still curious? The source is open.

Start a conversation
01What is CobaltDB?+

CobaltDB is an open-source SQL database written in Go. You can embed the engine directly in a Go application or run a standalone server with a MySQL-compatible protocol surface.

02Do I need a C compiler?+

No. The database runtime does not require CGO or a C compiler. You can build and cross-compile with the Go toolchain. The Go race detector is a separate development check and may require a CGO toolchain.

03Is it a drop-in replacement for MySQL?+

CobaltDB v0.7.0 targets MySQL 8.4 SQL and wire compatibility, tested with clients, ORMs, mysqldump and real application installs. Known differences remain: read-committed isolation, 64-bit INTEGER and FULLTEXT scans, among others. Review the compatibility matrix and validate your workload.

04Is CobaltDB ready for my production workload?+

The project describes CobaltDB as a production-oriented, single-node database candidate. Test your workload, recovery process and client compatibility. Replication is not automatic high availability or failover. The production guide explains the operational boundaries. Read the production guide →

05Can I use it commercially?+

Yes. CobaltDB is available under the MIT license. You can use, modify and distribute it, including in commercial projects, under the terms of that license.

OPEN SOURCE. OPEN POSSIBILITIES.

Your next great thing
starts with a simple import.

Pure Go. MIT licensed. Built for your ideas.