CRUD app (sidebar + pages)

The pattern every Cowork app follows: a list in the sidebar, a page per record, actions that create, read, update and delete.

SidebarWorkbench
Create in Cowork
Cowork Studio

Tasks

Ship landing
Review PR #42
Write digest
Open board

Todo

Review PR #42
Write digest

Doing

Fix nav link

Done

Ship landing

Start here. The sidebar lists records and stays fresh with one shared refresh loop; each record opens as its own editor tab through the manifest's `fileRouting`; four actions read and write one file per record in the app's data folder, .cowork/data/my-app/. Errors arrive by name, every run is in the audit log, and the panes tell each other what changed.

Change what a record is and it becomes your clients, projects or invoices — or point the actions at a service and it becomes a connected app. In Cowork: Create → App → CRUD app.

Create it

This template is built into Cowork Studio's Create dialog. Open Manage Workspace, pick the matching tab, click its Add button and choose CRUD app (sidebar + pages) — name it, and the files land in your workspace ready to edit.

Code

// .cowork/apps/my-app/cowork.json — what the template creates
{
  "name": "my-app",
  "version": "0.1.0",
  "entry": "my-app-sidemenu.jsx",
  "display": "sidebar",
  "fileRouting": { ".cowork/data/my-app/records/*.json": "my-app-page.jsx" },
  "actions": {
    "my-app-list": "list.ts",
    "my-app-read": "read.ts",
    "my-app-save": "save.ts",
    "my-app-remove": "remove.ts"
  }
}