Notion shape
Notion pages are directories. The body of the page ispage.md.
Databases
A Notion database is projected as a directory._schema.yaml describes the database properties Locality can validate before push. Row pages are normal page directories with page.md; their frontmatter includes supported row properties.
When the UI says database, it means a Notion database-like object, not Locality’s internal SQLite database.
Google Docs shape
Google Drive folders become directories. Google Docs documents become page directories containingpage.md.
Frontmatter
Locality uses YAML frontmatter for identity and source metadata.Stubs and hydration
Large workspaces should not require a full first sync. Locality can list many objects before every body is downloaded.- stub: Locality knows the object exists, but the body is not ready locally;
- hydrated:
page.mdcontent is available and tracked; - dirty: the local file changed from the last synced shadow;
- conflicted: Locality found unresolved conflict markers or an unsafe merge state.
Media
Downloaded media lives under.loc/media/ at the projection root.
Local create
Create a new page with the CLI:loc: identity block until Locality pushes them and reconciles the remote object.