| In the spreadsheet | What it really is | In the app | Where in the starter |
|---|---|---|---|
| A column of words: “waiting”, “ok”, “no” | A status | A type with one value per state, shown as StatusLabel | requests/domain/types.ts, domain/status.tsx |
| A green, yellow or red fill | The same status, set by hand | A glyph in the state's colour beside the word | statusMeta in domain/status.tsx |
| The person who turns a row green | A move with a permission | submit, approve, reject, withdraw, reopen | domain/workflow.ts, domain/permissions.ts |
| A comment in a cell: “approved by phone” | A history entry | An event with who and when, shown in AuditTimeline | RequestEvent in domain/types.ts, components/request-record.tsx |
| A column hidden before the file is sent | A permission on the data | can(action, record), asked by the screen and the api | canFor in domain/permissions.ts |
| A filter set again every morning | A saved view | ViewPills: the same list with ?status= | pages/requests-list.tsx |
| A dropdown or a cell that must not be empty | A field rule | A zod schema the form and the api both check, with a message that says what to do | domain/schema.ts |
| Names, amounts, dates in columns | Column kinds | DataTable columns of kind person, money, date | columns in pages/requests-list.tsx |
Pick one process, not the whole file
The page From Excel or Google Sheets to an app maps a whole workbook onto an app, and the guide Off-the-shelf, a spreadsheet or a custom app helps decide whether to move at all. This post starts after both: the decision is made, and one process moves.
Pick the tab whose rows change state (asked, approved, ordered, paid) and whose changes someone else has to see. That is where a spreadsheet hurts first, and it is the shape the starter's sample module already has: templates/starter/src/modules/requests, purchase requests that someone asks for and someone else decides on. Its header comment calls it the smallest real workflow that touches every rule of the framework: statuses, four-eyes approval, a reason for every rejection, history and permissions. You copy it and rename it; the framework's recipe docs/recipes/new-module.md walks through the copy.
A tab used by one person to calculate something is not a process. Leave it in the spreadsheet.
Step 1: read every column for what it holds
Open the sheet and write one line per column. The header says what people called it; what matters is what it holds. Most columns of a working sheet are one of these:
| What the column holds | How to tell | What it becomes |
|---|---|---|
| A status | A short word from a small set, often with a fill | A union type and statusMeta |
| A person | Initials or names, often "requested by" and "approved by" | An id plus a name; a person column |
| Money | Amounts, sometimes with a currency typed in | A whole number in the unit the screen shows; a money column |
| A date | Days, sometimes typed as text ("next Tue") | An ISO day; a date column |
| A number or code people quote | "PR-118", an invoice number | A number field next to an internal id; an id column |
| A free note | Long text, written once or added to over time | A field if written once (the reason), comments in the history if added to |
Two traps show up in almost every sheet. A column that holds two things ("approved 12/3 JN") is a status, a date and a person: split it. A free note that grows over time ("called supplier, no answer; sent again") is not a field but a conversation, and it belongs in the record's history.
Which DataTable kind each column gets, and why money ends at the right edge, is in Data tables in business apps.
Step 2: turn the colour fills into statuses
For each fill colour, write down the word people say for it, who sets it and what happens next. Then count. Two colours that mean the same thing are one status; one colour used for two things ("yellow" for both "waiting for the boss" and "waiting for the supplier") is two.
The starter keeps a status in two places. RequestStatus in domain/types.ts is the list of values (draft, submitted, approved, rejected), and statusMeta in domain/status.tsx says how each one reads: its label, a short word for a phone row, the name of its filter, its tone and its glyph. The list, the filters, the record and the sidebar all read that one map, so they cannot disagree the way two copies of a sheet do.
The colour itself changes meaning. In a spreadsheet the fill is the information; in the app it sits beside the word as a StatusLabel, and rows that are fine stay quiet so the colour goes to what needs doing.
Step 3: write down who changes a status
A fill gets changed by somebody, and the sheet does not record who may. The app does. Write the moves as sentences ("the requester submits", "an approver approves or rejects, never their own"), then map them onto domain/workflow.ts:
draft --submit--> submitted --approve--> approved
^ | \----reject---> rejected --submit (after a fix)--> submitted
\----withdraw-----/
approved or rejected --reopen (the decider's Undo)--> submittedEach move is a plain function on the data, and both the api and the screen apply it, so an optimistic change looks exactly like the answer that follows. A rejection keeps its reason. The approval flow pattern shows the decision card that sits on top of it.
Step 4: turn comments into history
Cell comments and a "last changed by" column are a history kept by hand, and they miss most changes. In the app every move writes a RequestEvent (created, edited, submitted, withdrawn, approved, rejected, reopened, commented) with the person and the moment, and the record shows them in AuditTimeline. People comment on the record itself, in the same timeline.
Decide what happens to the old comments. Either load each one as a commented event on its record, or keep the final copy of the sheet as an archive and start the history fresh. Both are honest; mixing them is not.
Step 5: turn hidden columns into permissions
Every hidden column, protected range and "send them the version without the margins" is a permission nobody wrote down. List them: who may see which rows, who may see which columns, who may change what and when.
They go into one table per module, domain/permissions.ts. The starter's has three roles (member, approver, admin) and rules that depend on the record: a draft is private to its author until submitted, approvers decide only on submitted requests and never their own, and only the person who decided may undo it. Screens ask can(action, record) through <Can> and useCan() and never compare roles themselves.
Hiding a button is not a permission. The starter's simulated api asks the same function before every change, the way your backend must; the rules for that are in docs/recipes/connect-your-data.md and docs/recipes/permissions.md. An external role, a client or a customer, never sees internal costs, on the pages or anywhere else.
Step 6: turn daily filters into saved views
Ask who opens the sheet each morning and what they filter first. Each answer is a saved view: in the starter the list's ViewPills are All, Drafts, Waiting, Approved and Rejected, each a link to the same list with ?status= and its count. A view can be bookmarked, shared and opened in a new tab, and the search term lives in the address too (?q=). A sort someone does once to look at the data stays a sort, not a view.
Step 7: move the rows, once
The kit has no CSV import component in 2.1. It exports: toCsv and downloadCsv write a file Excel opens correctly, and they put an apostrophe in front of a text that starts like a formula. Getting the rows in is a one-off script, which a coding tool writes well when you give it the type above and domain/schema.ts:
- Export the tab as CSV.
- Convert each row to the module's type: split the double columns, map the fill words to status values, turn names into people's ids.
- Check every row against the schema and list the ones that fail, so a person fixes them in the sheet, not in the script.
- Load the rows into your database through your backend, and make the sheet read-only.
In 2.1 the starter's data is simulated: it lives in the browser's memory and resets on reload, and its seed (data/seed.ts) is 25 written-out requests. For trying the screens, write a dozen of your real rows there. For real use, connect-your-data.md replaces the store behind data/api.ts without touching a page: an HTTP adapter switched by VITE_DATA_SOURCE=http, a contract test your backend must pass, and a Postgres example on Supabase in docs/recipes/examples/supabase/.
What Meadowstack does not do for you in 2.1
- No import. No CSV or Excel import component; the conversion is your script.
- Simulated sign-in and data. Sign-in in the starter is a development stub where anyone listed signs in with any password; put your identity provider behind the same
useAuth. The data is in memory until you connect a backend. - The server is yours. 2.1 has permissions in one table per module, hidden actions a person cannot take and the history of every change; the server that enforces them is yours to build. Meadowstack 3.0 brings sign-in, input checked on the server, permissions in one policy file and an audit trail, as an update to every licence. See Security.
- No formulas. A formula that computes a total or a due date becomes code in the module, with a test.
A worksheet for your own spreadsheet
Copy this into a note and fill it in before anyone writes code:
- The process: which tab, what one row is, who adds rows, who else reads them.
- Columns: for each, what it holds (status, person, money, date, code, note), which values are allowed, whether it is required. Mark the columns that hold two things.
- Fills: each colour, the word people say, who sets it, what happens next. Merge the duplicates, split the double meanings.
- Moves: each change of status as a sentence: who, from which status, to which, and whether it needs a reason.
- Four-eyes: which moves nobody may make on their own row.
- Comments: where the history lives today, and whether it moves or stays in the archive copy.
- Hidden columns and protected ranges: for each role, which rows and columns it sees and what it may change.
- Filters: the views people set every day, with their names.
- Formulas: the ones that compute something kept, and the ones used once to look.
- The cut-over day: when the sheet becomes read-only.
A prompt for your coding tool
With the worksheet filled in, paste this into Claude Code, Cursor or another tool in an app made from the starter:
Create a new module from src/modules/requests, following docs/recipes/new-module.md.
My process and its rules are in the worksheet below.
1. domain/types.ts: one type for the row, with the statuses as a union, people
as id plus name, money as a whole number, dates as ISO days.
2. domain/status.tsx: statusMeta for every status (label, short, filter, tone,
StatusGlyph), one entry per status in my list of fills.
3. domain/workflow.ts: the moves from my list, each with the permission it needs.
A rejection keeps its reason; every move writes a history event.
4. domain/permissions.ts: roles and rules from my hidden columns and four-eyes
list. Screens ask can(); never compare roles in a component.
5. domain/schema.ts: field rules with messages that say what to do.
6. The list: DataTable columns with meta: { kind }, ViewPills for my daily
filters, the record with AuditTimeline.
7. A script in scripts/ that reads my exported CSV, maps it to the type, checks
each row against the schema and lists the rows that fail. Do not import yet.
Run npm run check and the e2e tests, then tell me what you could not map.
Worksheet:
<paste it here>The row, as a type
/** draft: the author is writing it; submitted: waiting for a decision; then approved or rejected. */
export type RequestStatus = "draft" | "submitted" | "approved" | "rejected";
export type PurchaseRequest = {
id: string;
/** What people quote on the phone: "PR-2026-0118". Ids go in addresses, numbers on screen. */
number: string;
/** What is being bought, which also names the request everywhere. */
title: string;
supplier: string;
/** Whole euros including VAT: money is an integer in the unit the screen shows. */
amount: number;
/** The day it is needed by, "2026-11-04". */
neededBy: string;
/** Why the team needs it, for the approver. */
reason: string;
status: RequestStatus;
requesterId: string;
requesterName: string;
createdAt: string;
updatedAt: string;
/** Who approved or rejected it, and why when rejected. */
decidedById?: string;
decidedByName?: string;
decisionReason?: string;Questions
Should I move the whole workbook at once?
No. Move the one process whose rows change state and whose changes someone else has to see, then the next. Tabs used by one person for a calculation can stay in the spreadsheet.
Can the app import my Excel file?
Not with a component in this version: the kit exports CSV but has no import. A one-off script converts the exported rows to the module's type and checks them against its schema before they are loaded.
What happens to the comments in the cells?
Either each one is loaded as a comment in its record's history, or the last copy of the sheet stays as a read-only archive and the history starts fresh on the day of the move.
How do I keep people from seeing columns they should not?
Write it as a permission in the module's permission table and enforce the same rule on your server. A column hidden on screen but sent by the api is still visible to anyone who looks at the network.
Is the data in the starter real?
No. In this version sign-in and data in the starter are simulated; the recipe for connecting your data replaces the store with your backend without changing a screen.
Two ways
Build it yourself, or have it built
Build it yourself
Build your app on the framework
Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.
One payment, lifetime updates
Get the frameworkHave it built
Have us build your app
Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.
After launch, Care keeps it improving, from €99 a month.
from €1,990
Describe your app