Project files
Every JSON file starts with "schemaVersion": "1.0.0". Objects are closed: a property not listed here is an error. See Project layout for the folder as a whole.
project.json
Section titled “project.json”| Property | Required | Value |
|---|---|---|
projectId |
Yes | proj_ followed by 24 hex characters. Set by ynch connect. |
name |
Yes | The app’s name. |
version |
Yes | Three numbers, for example 1.0.0. |
entryScreen |
Yes | The id of a screen. |
navigation.json
Section titled “navigation.json”| Property | Required | Value |
|---|---|---|
initialRoute |
Yes | The id of a route with no required parameters. |
routes |
Yes | 1 to 50 routes: { id, screenId, label, parameters }. |
tabBar |
No | { items, style, material, labels }. See Add a tab bar. |
tabBar.items holds 2 to 5 of { routeId, label, icon }. style is floating or full-width, material is solid or glass, labels is shown or hidden.
theme.json
Section titled “theme.json”| Property | Required | Value |
|---|---|---|
styleVersion |
Yes | 0.1.0 |
tokens |
Yes | colors, typography, spacing, radii, all complete. |
presets |
Yes | Named style objects. May be empty. |
See Theme and colors and Style options.
connections.json
Section titled “connections.json”{ "schemaVersion": "1.0.0", "connections": { "primary": { "cloudConnectionId": "conn_main", "provider": "supabase", "userAuth": { "userColumn": "user-id" } } } }| Property | Required | Value |
|---|---|---|
cloudConnectionId |
Yes | conn_ followed by a name. A label only; it holds no address or secret. |
provider |
Yes | supabase or mysql |
userAuth.userColumn |
No | Supabase only. Turns on app sign-in and names the user id field. |
An app that uses no database has "connections": {}. An upload may declare at most one connection.
screens/<id>.json
Section titled “screens/<id>.json”| Property | Required | Value |
|---|---|---|
id |
Yes | Same as the file name. |
root |
Yes | A Screen component. |
Each component has id, type, props, and optionally preset, style, children, bindings and action, as its reference page allows.
models/<id>.json
Section titled “models/<id>.json”| Property | Required | Value |
|---|---|---|
id |
Yes | Same as the file name. |
identityField |
Yes | A required string or integer field. |
fields |
Yes | A map of field name to { type, required, ... }. |
Field types are string (minLength, maxLength up to 10,000, enum of up to 50 values), number and integer (minimum, maximum), boolean, and date.
operations/<id>.json
Section titled “operations/<id>.json”| Property | Required | Value |
|---|---|---|
id |
Yes | Same as the file name. |
kind |
Yes | list, get, insert, update or delete |
connection |
Yes | A name from connections.json. |
connector |
Yes | supabase or mysql, matching the connection. |
resource |
Yes | The table or view. |
columns |
Yes | 1 to 100 fields of the response model. |
responseModel |
Yes | The id of a model. |
parameters |
Yes | A map of typed parameters. May be empty. |
maxRows |
Yes | 1 to 100 for list; 1 for the rest. |
filters |
By kind | Up to 10 of { field, operator, parameter }. get, update and delete must filter on the identity field. |
sort |
list, get |
Up to 3 of { field, direction }. |
pagination |
list |
{ "mode": "offset", "defaultLimit", "maxOffset" } |
values |
insert, update |
A map of field to parameter. |
See Models and operations for complete examples.
assets/
Section titled “assets/”PNG, JPEG or WebP files in one flat folder, named with lowercase letters, digits and hyphens. Each is at most 4,096 pixels a side. Animated images are not accepted.