Data Spaces, tables and files
A Data Space is where your apps' data lives: a set of tables and files that several apps can share. This page covers what a space holds, how its tables change, and how it differs from a workspace.
On this page
At a glance
- A Data Space holds typed tables of rows and a tree of files. Apps sync a whole space, or just the queries they subscribe to, live.
- Access is set per Data Space: viewer, editor or owner. To keep two apps' data apart, put it in two spaces.
- A workspace is the account that contains Data Spaces. Plans and quotas apply per workspace.
- Adding a table or an optional column takes effect at once. Removing, renaming or retyping something needs a space owner's approval.
- File bytes go straight to storage. File details, such as path and size, sync live with the rows.
What a Data Space holds
A Data Space is the unit of storage, live sync and permissions in Kovlet. Every app that is allowed to use it sees the same tables and files. Each Data Space belongs to exactly one workspaceThe account that contains Data Spaces, members, apps, machines and a plan., which is covered below.
| Part | What it is |
|---|---|
| Tables | Named tables of rows. Each row has an id (any text up to 256 bytes, chosen by the client; UUIDv7 recommended) and typed fields. |
| Files | A tree of files addressed by path (for example receipts/2026/tartine.png). Each file has an id that stays the same when it moves, a SHA-256, a size, a MIME type and a version. |
| Schema | The column definitions of every table, versioned and readable by any app or agent with access. |
| Oplog | Every change to the space, in order, numbered by seq (1, 2, 3, … with no gaps). Each entry records the user, machine and app that made it. |
| Trash | Deleted rows and files. A delete is soft: the row or file keeps its data and can be restored. |
| Rules | Optional per-record rules for end users of a public app (rules guide). |
A Data Space has a name, a slug and an optional icon. Its id is an opaque string, for example the value of spaceId in SDK code.
Tables and columns
Every column has one of seven types:
| Type | Holds |
|---|---|
string | text |
number | a finite number |
boolean | true or false |
datetime | an RFC 3339 timestamp, e.g. "2026-11-28T09:00:00Z" |
json | any JSON value |
ref | the id of a row in another table |
file_ref | the id of a file in the same space |
A column is required unless its definition says optional.
Names follow a few rules:
- Table and column names start with a letter.
- They use only letters, digits and
_, and are at most 63 characters long. - Names that start with
_are reserved for Kovlet. - No column may be named
id.
How a schema changes
The schema is the list of tables and columns. Any app can add to it, but only a space owner can take things away or change them. That way, apps written separately can't break each other.
- Additive changes apply at once. An app or agent with the editor role can create a table or add an optional column. It can do this by declaring it in code, over REST, or with the MCP tool
propose_schema_addition. Every connected client receives the new schema. - Destructive changes need an owner. These changes become a schema proposalA destructive schema change that waits for a space owner to approve or reject it in the Kovlet console.:
- dropping or renaming a table or column,
- changing a column's type,
- making a column required,
- adding a required column to an existing table.
Writes that need the change are rejected until a space owner approves it in the Kovlet console. Before approving, Kovlet checks the existing rows. Approval is refused if any row would break the new definition.
Caution A misspelled column in an app's table declaration is not an error. It adds a new optional column. (A write to a column that no declaration created is rejected with unknown_column.) Read the live schema first, with MCP inspect_space_schema or GET /v1/spaces/{space}/tables, and reuse its names.
Files
Files live in the same Data Space as the tables. So one app can store a receipt image, and another can show it next to the expense row that points at it with a file_ref column.
- Details sync live. A file's metadata (path, size, hash, MIME type, version and Trash state) travels over the same sync stream as rows. A new file appears in every open app at once.
- Bytes go direct. The app asks Kovlet for a short-lived upload or download URL. It then transfers the bytes straight to object storage. Bytes never cross the WebSocket.
- The same bytes are stored once. Blobs are stored per space by their SHA-256 (content-addressed), so identical bytes are uploaded once. Writing to a path that already holds a file creates a new version of that file.
The sync protocol reference has every step of an upload.
Data Space vs workspace
The two words name different things. A workspace is the account: who is in it, which apps and machines it trusts, and its plan. A Data Space is a set of tables and files inside that account.
| Workspace | Data Space | |
|---|---|---|
| What it is | The account: people, apps, machines, plan | A set of tables and files |
| How many | One home workspace per person; a company has one Organization Workspace per email domain | As many as the plan allows, inside one workspace |
| Roles | member, admin, owner (who manages the workspace) | viewer, editor, owner (who reads and writes the data) |
| Plan and quotas | Set here: rows, storage, machines and the other limits count across the workspace | Counted toward the workspace's totals |
| Flags | Require approved apps, require approved machines | The same flags, for this space only |
Which workspace a person lands in depends on the email address they sign in with:
- Personal Workspace. A consumer email address (Gmail, iCloud, Outlook, Proton and other public providers) gives the person their own, isolated Personal Workspace.
- Organization Workspace. An address at a company domain joins that domain's Organization Workspace. This happens only when the login provider vouches for the domain (Google Workspace does), or when an owner has verified the domain by DNS TXT record or admin email. Otherwise the person gets a Personal Workspace. That way, a personal account registered with a work address can't join the company's data.
- External guests. A person outside the workspace can be invited to one Data Space by email. They see that space only, not the rest of the workspace.
In an Organization Workspace, a Data Space can also be shared with everyone at the company at once, as viewer or editor ("entire org").
How apps reach a Data Space
App code doesn't need to know a Data Space id. Instead it declares a slotA named placeholder for a Data Space, filled in when someone approves the app.: a name such as main or finance, with the tables it expects and the role it needs.
- When the user approves the app, they map each slot to one of their Data Spaces, or create a new one.
- An owner can pin
spaceIdin code, so teammates skip that choice. - One app can use several spaces through several slots. For example, viewer on
Contactsand editor onInvoices.
See zero-key onboarding.
Next
- Access model: Users × Machines × Applications: who may read and write a Data Space.
- Sync and conflict resolution: how changes to a space reach every app.
- Glossary.
Ready to try it? Start free. No credit card, no API keys.
For coding agents: this page is also Markdown. Add .md to the URL or send Accept: text/markdown. The full reference is at /llms-full.txt.