Places, events, recipes and guides
See canonical JSON examples for local places, events, recipes and itineraries.
See the record envelope for revision and provenance fields. The kind registry lists all writer and reader schemas.
Place
Use an opaque venue_id for deduplication. Supply latitude and longitude together.
Download the place writer schema
{
"name": "demo",
"lat": -90,
"lng": -180,
"highlights": [],
"venue_id": "0194ab00-0000-7000-8000-000000000001"
}Event
Use the same venue identity in the embedded venue snapshot. Timed and all-day schedules use distinct fields.
Download the event writer schema
{
"title": "demo",
"starts_at": "2026-01-01T00:00:00Z",
"ends_at": "2026-01-01T01:00:00Z",
"timezone": "UTC",
"all_day": false,
"venue": {
"name": "demo",
"venue_id": "0194ab00-0000-7000-8000-000000000001"
},
"tickets": [],
"price": {
"amount": "72.5000",
"currency": "USD"
},
"url": "https://example.invalid/item"
}Recipe
Ingredient amounts use qty. Steps can link to ingredient part IDs. Extraction diagnostics are carried in envelope gaps.
Download the recipe writer schema
{
"title": "demo",
"ingredients": [],
"steps": [],
"equipment": [],
"cuisine": [],
"course": [],
"diet": [],
"tags": [],
"source": {}
}Meal
One record represents one planned meal. An optional recipe_id links to a canonical recipe. The ingredients are planned snapshots.
Download the meal writer schema
{
"title": "Lunch",
"date": "2026-11-28",
"ingredients": []
}Grocery list
The account has one live list with addressable item parts. Optional meal_id and recipe_id link to their contributing records. Change related meal and grocery records in the same operation.
Download the grocery list writer schema
{
"items": []
}Guide
A stop can carry a source snapshot and a ref to a canonical place or event. Duration uses duration_seconds.
Download the guide writer schema
{
"title": "demo",
"intent": "date",
"structure": "itinerary",
"area": {},
"duration_seconds": 0,
"budget": {
"money": {
"amount": "72.5000",
"currency": "USD"
},
"basis": "person"
},
"vibes": [],
"days": [],
"tips": []
}Plan a meal and update the grocery list
This operation creates a meal and patches a grocery list in one transaction. The Hub rewrites the contribution's meal_id from the same-operation create ID to the new Hub record ID. Use an existing readable recipe ID, grocery list ID and current list revision.
{
"mutations": [
{
"action": "create",
"kind": "meal",
"schema": "meal@1.0",
"create_id": "01936f3e-0f00-7a11-8c22-0b6a11aa0002",
"body": {
"title": "Pasta",
"date": "2026-11-29",
"slot": "dinner",
"recipe_id": "01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a12",
"servings": "2",
"ingredients": [
{
"id": "pasta",
"key": "pasta",
"name": "Pasta",
"original": "200 g pasta",
"quantity": {
"value": "200",
"unit": "g"
}
}
]
}
},
{
"action": "patch",
"id": "01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a13",
"base": {
"revision": 7,
"revision_op": "01936f40-2c11-7a00-8b2e-55aa10c4e001"
},
"conflict": "strict",
"part_ops": [
{
"op": "insert",
"parent": "$root",
"list": "items",
"value": {
"key": "pasta",
"name": "Pasta",
"original": "200 g pasta",
"quantity": {
"value": "200",
"unit": "g"
},
"purchased": false,
"meal_id": "01936f3e-0f00-7a11-8c22-0b6a11aa0002",
"recipe_id": "01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a12"
}
}
]
}
]
}