docs

any_

The open source, reactive, local-first database. Documents live on your devices, merge as CRDTs, sync end-to-end encrypted, and answer Mongo-style queries with live subscriptions — online or not. Chat and a block editor are built in as first-class CRDT types, and anyrt runs sandboxed Python programs, scheduled jobs and agents next to your data instead of on someone else's server.

local-firste2e encryptedcrdtmongo queriessse live querieswasm-sandboxed programssingle go binary
$ any init
account  A9f3…c21e   (mnemonic printed once — write it down)
$ any run &
listening 127.0.0.1:7001   network prod   bootstrapping…done
$ curl -s :7001/v1/spaces -d '{"name":"notes"}' | jq -r .id
bafyrei…7q.1a2b3c
$ curl -s :7001/v1/spaces/$S/objects -d '{"name":"hello","types":["page"]}'
$ curl -sN :7001/v1/spaces/$S/objects/query/subscribe -d '{"limit":20}'
event: ready
event: snapshot   {"records":[{"id":"…","any.name":"hello"}],"total":1}
event: changes    …live from here, from every device you own

database

Spaces of objects and datasets, typed properties, Mongo-style filters, aggregation pipelines, version history — every byte CRDT-merged and encrypted.

Database

sync & realtime

Windowed live queries over SSE, head-sync with peers, sync status, an ephemeral event bus, end-to-end encrypted push.

Realtime

runtime

Python programs in a wasm cage with a recorded effect boundary; cron / once / event triggers pinned to a device; the bao agent.

Programs

Everything

Why local-first

Why it matters. A hosted backend is available exactly when its vendor is. In any every device holds the full state of every space it belongs to, every write lands locally first, and peers converge later through encrypted sync — the network is an optimisation, not a dependency. Relay nodes store ciphertext and can't read a single document.

  • Reactive — every read has a live form: /query gives a snapshot, /query/subscribe keeps a window of results current.
  • Mongo-style queries$eq, $in, $regex, $text, nested paths, array matching, $group/$unwind pipelines.
  • CRDT — concurrent edits from any number of devices merge deterministically; versions are content-addressed changes you can diff and view.
  • Built-in messenger and editor — chat messages with reactions, mentions and read tracking; block documents with a markdown bridge.
  • Runtime in your data — programs, triggers and agent memory are records in your encrypted space, not rows in a vendor's database.

Also available as llms.txt for language models.