P
Persist
by Cuitty
Docs
Pricing
Blog
Changelog
Search
⌘K
☀
☾
Login
Documentation
Everything you need to build with Persist.
Getting Started
Quickstart
Install Persist and create your first local-first store in under five minutes.
Concepts
Local-First Architecture
How Persist keeps your data on the device first and syncs when connectivity is available.
Store Classes
Persist provides four store classes: records, events, blobs, and key-value.
Adapters
Pluggable storage backends that let you swap between SQLite, Postgres, S3, and P2P without changing application code.
Sync Engine
How Persist replicates data across devices using a queue-based sync engine with pluggable conflict resolution.
Encryption
Envelope encryption with Ed25519 signing for end-to-end data protection across devices.
Policies
Declarative replication, encryption, and retention policies for governing data lifecycle.
Adapters
SQLite Adapter
Embedded SQLite storage with WAL mode, zero configuration, and full offline support.
Postgres Adapter
Use PostgreSQL as a remote storage backend with connection pooling, schema migrations, and full sync support.
S3 Adapter
Store blobs in S3-compatible object storage with multipart uploads, presigned URLs, and R2 support.
P2P Adapter
Direct device-to-device replication using libp2p with peer discovery, trust management, and NAT traversal.
SDK
TypeScript SDK
Install and use @cuitty/persist — the primary TypeScript SDK for records, events, blobs, and kv.
Python SDK
Use cuitty-persist from Python with sync and async APIs for records, events, and kv.
CLI
Manage Persist stores, inspect data, and run operations from the command line.
Reference
API Reference
Complete API reference for records, events, blobs, and kv store methods.
Configuration Reference
Complete persist.config.ts format with all options for stores, adapters, sync, encryption, and retention.
Lifecycle Events
Hook into store lifecycle events for logging, monitoring, and custom side effects.
Guides
Self-Hosting the Sync Server
Deploy a Persist sync server with Docker, configure TLS, and connect devices.
Adapter Migration
Migrate data between adapters using the export/import pipeline without downtime.
Multi-Device Sync
Set up P2P replication, pair devices, establish trust, and keep data in sync across laptops, phones, and servers.