Open source · self-hosted · public preview

Your backend platform, on foundations you can inspect.

Trestle is a self-hosted backend platform for typed collections, application authentication, access rules, files, realtime events and durable automation - one Go service, first-class SQLite or PostgreSQL, optional multi-node clustering, and a language-neutral HTTP API.

Download into this directory

curl -fsSL https://trestle.cv/download.sh | sh

Verifies the release checksum and writes only ./trestle into the current directory.

Install on this user account

curl -fsSL https://trestle.cv/install.sh | sh

Verifies the release checksum and installs the binary into ~/.local/bin.

See the Install page for platform details, verification instructions and alternatives.

Identity

Authentication included

Application users, rotating refresh sessions, short-lived access tokens, service accounts and personal tokens have distinct authority boundaries.

Data

SQLite or PostgreSQL

Choose an embedded database or an externally operated PostgreSQL 16-18 service. The same typed collections, transactions, rules, queries and API contracts run on either provider.

Operations

One executable

The Nift-built dashboard, durable jobs, webhooks, backups and recovery tools ship with the Go service.

Use it from anything

Web, mobile, servers and agents share one contract.

HTTP, JSON, OpenAPI and Server-Sent Events are the public boundary. Browser apps can authenticate as users; trusted services use scoped credentials; automation consumes committed events.

Explore example stacks →
Current status

Stable v0.1.5 public preview.

v0.1.5 is the current stable GitHub release and the unversioned public install and download commands select the latest stable release. Trestle includes the original CP00-CP23 platform, PostgreSQL parity, Gantry peer clustering, configuration propagation, and SQLite Raft replication for collections and records. This remains a public preview, not a production or battle-proven claim.