Records
Signed JSON that syncs. Write a record and everyone in the space has it; query it and your screen stays live.
What it enables
- Collaborative, real-time apps with no sockets or sync code of your own
- Offline first: write now, sync when back online
- Who wrote what, and every version of it, on every record
- Messages sealed for a few members of a space
In this section
- Records and queries: A record is one piece of your app's data: a to-do, a vote, a message. This page shows how to write records, change them, delete them, and find them again with a query that stays live as they change.
- The query format: This is the full reference for the query JSON that node.records.query, watch and useQuery take. For a gentler start, see Records and queries.
- Direct messages: A direct message is text in a space that only some of its members can read: the people it is for, and whoever wrote it. Use it for a private word inside a shared space. Today it needs a private space.
Warrants
A warrant (std.warrant) is proof that an account's key signed something every peer refuses and no honest app would sign. Your app uses warrants to show the members of a space that someone broke…
Records and queries
A record is one piece of your app's data: a to-do, a vote, a message. This page shows how to write records, change them, delete them, and find them again with a query that stays live as they change.