Skip to content

Project layout

A Ynch app is the .ynch folder inside your project directory. Nothing outside it is uploaded.

your-project/
.ynch/
project.json name, version, first screen
ynch.lock the versions this app was written for
theme.json colors, type, spacing, presets
navigation.json routes and the optional tab bar
connections.json which database connection the app uses (no secrets)
screens/<id>.json one file per screen; at least one
models/<id>.json optional: the shape of a row
operations/<id>.json optional: one approved read or write
assets/<name>.png optional: images (png, jpg, jpeg, webp)
AGENTS.md optional: notes for your coding agent; never uploaded
  • Ids are lowercase letters, digits and hyphens, starting with a letter, up to 64 characters: new-workout.
  • A file’s name is its id. screens/home.json has "id": "home".
  • Strict JSON. No comments, no trailing commas, no duplicate keys.
  • Nothing extra. A property or file the format does not define is an error, not ignored. This is what makes ynch check trustworthy.
  • Every file starts with "schemaVersion": "1.0.0".
{
"schemaVersion": "1.0.0",
"projectId": "proj_d3dd06e1387440087d576fe8",
"name": "Field Notes",
"version": "1.0.0",
"entryScreen": "home"
}

projectId is your Studio project. ynch connect fills it in; do not change it by hand.

Pins the component catalog and style versions the app was written against. The CLI creates it. Leave it alone unless a migration guide says otherwise.

File Guide
theme.json Theme and colors
navigation.json Navigation
screens/ Screens and components
connections.json, models/, operations/ Models and operations

The exact shape of each file is in Project files.