A laptop, a phone and a hand writing in a notebook on a wooden desk, banner image on the CRUD App Scaffolder page

Tools / Build suite

CRUD App Scaffolder

Name your entity and its fields; get the schema, REST routes and a working list/form UI as copyable files.

Name the thing you are building - entity, fields, types - and get the three files every CRUD app starts with: the SQL schema, the REST route handlers, and a working list-plus-form page, all consistent with each other.

Open the tool
Screenshot of the CRUD App Scaffolder tool

What it does

The boring 60%, done consistently.

One definition, three files

Schema, routes and UI generate from the same field list, so they cannot drift.

Typed fields

Text, number, boolean, date and enum map to the right SQL types and input controls.

Honest scope

Generates a starting point, not a production app - auth and validation are marked where you add them.

Copy per file

Each artifact copies separately into your project.

Five field types, one grammar

text, number, boolean, date and enum with its values inline: plan: enum:free,pro,team. One field per line, nothing else to learn.

Errors that name the line

A malformed field gets "line 3: use name: type" with the grammar restated, instead of failing silently.

Real SQL types

Numbers become NUMERIC, dates become DATE, booleans default to FALSE, enums become a CHECK constraint, and every table gets id and created_at columns.

Handlers that validate

The routes file cleans every payload: numbers must be finite, dates must be ISO, enums must match your values. Bad input returns a 422 naming each error.

Parameterized queries only

Inserts use $1, $2 placeholders rather than string building, and the list route caps at 200 rows, newest first.

A UI that matches the fields

Text inputs, number inputs, checkboxes, date pickers and selects are generated per field and wired to the same routes the handlers file defines.

How it works

Fields in, scaffold out.

Step 1

Name the entity and list its fields with types.

Step 2

Review the schema, routes and UI tabs.

Step 3

Copy each file into your project and wire your database.

FAQ

Which stack?

SQL schema (Postgres-flavored), fetch-based route handlers, and a framework-free page - portable into whatever you use.

Relations?

Not yet - keep fields scalar and add foreign keys where the SQL comments mark them.

What does the SQL include?

CREATE TABLE IF NOT EXISTS with a serial primary key, your columns and a created_at timestamp, plus a comment reminding you to add foreign keys where relationships exist.

Is the code production-ready?

The routes file says so itself: wire it to your database layer and add auth before production. Validation and parameterized queries are already in place.

How are names normalized?

Entity and field names are snake_cased, so PlanType, plan type and plan-type all become plan_type across all three files.

Which routes does the UI expect?

GET and POST on /api/your-entities and DELETE on /api/your-entities/:id - exactly the routes the handlers file exports.

Open CRUD App Scaffolder

Worked example

Real output, from the tool itself.

This is what CRUD App Scaffolder returned for the example input shown, captured from the tool itself - not a mockup.

You enter

Entity name (built-in example)

Subscriber

Fields (built-in example)

email: text
name: text
plan: enum:free,pro,team
mrr: number
active: boolean
joined: date

Tab

SQL schema

The tool returns

-- TODO: add foreign keys where relationships exist
CREATE TABLE IF NOT EXISTS subscribers (
  id SERIAL PRIMARY KEY,
  email TEXT NOT NULL DEFAULT '',
  name TEXT NOT NULL DEFAULT '',
  plan TEXT CHECK (plan IN ('free', 'pro', 'team')),
  mrr NUMERIC,
  active BOOLEAN NOT NULL DEFAULT FALSE,
  joined DATE,
  created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
Try it with your own input

More in the Build suite

Font Pairing LabWebhook TesterPricing Page BuilderLanding Page MakerStatus Page Starter
A laptop, headphones, a camera, a phone and a plant on a white desk, seen from above, banner image on the CRUD App Scaffolder page

Try it now.

CRUD App Scaffolder runs in your browser. No account needed.

Input To Output

Entity in, three files out

Entity nameOne field perlineSQL schemaRoute handlersList and formUICRUD AppScaffolderInOut
InEntity nameOne field per lineCRUD AppScaffolderSQL schemaRoute handlersList and form UIOut
Name and fields become a schema, routes and a page.

Pipeline

Three tabs

SQL schemaRoute handlersList and form UICopy this file
SQL schemaRoute handlersList and form UICopy this file
One output box with a tab for each file.

Spec Sheet

The starter example

EntitySubscriberFields6Coversall five types
EntitySubscriberFields6Coversall five types
The box opens with a working entity.

Spec Sheet

The field line grammar

Shapename: typeTypestext, number, boolean, date,enum:a,bBad linesbecome -- error commentsCaseignored
Shapename: typeTypestext, number, boolean, date, enum:a,bBad linesbecome -- error commentsCaseignored
One field per line.

Before After

Type to SQL column

TypeColumntextnumberbooleandateenum:free,pro,teamTEXT NOT NULL DEFAULT emptyNUMERICBOOLEAN NOT NULL DEFAULTFALSEDATETEXT with a CHECK on thevalues
Type to ColumntextTEXT NOT NULL DEFAULT emptynumberNUMERICbooleanBOOLEAN NOT NULL DEFAULT FALSEdateDATEenum:free,pro,teamTEXT with a CHECK on the values
Each type has a column type.

Before After

Type to form control

TypeControltextnumberbooleandateenumText boxNumber box with any stepCheckboxDate pickerDrop-down with the values
Type to ControltextText boxnumberNumber box with any stepbooleanCheckboxdateDate pickerenumDrop-down with the values
The UI picks an input for each type.

Before After

Names tidied

You typeColumnMonthly RevenuejoinedAtmonthly_revenuejoined_at
You type to ColumnMonthly Revenuemonthly_revenuejoinedAtjoined_at
Names become lower case with underscores.

Spec Sheet

Every table gets

idSERIAL PRIMARY KEYcreated_atTIMESTAMPTZ default now()Table nameyour entity, snake case,plus sNotea TODO for foreign keys
idSERIAL PRIMARY KEYcreated_atTIMESTAMPTZ default now()Table nameyour entity, snake case, plus sNotea TODO for foreign keys
Around your field lines.

Spec Sheet

The three route handlers

listnewest first, LIMIT 200createvalidate, INSERT, RETURNINGdeleteby id, no body backAuthadd-auth comment included
listnewest first, LIMIT 200createvalidate, INSERT, RETURNINGdeleteby id, no body backAuthadd-auth comment included
List, create, delete.

Pipeline

Create route

Read the JSON bodyClean each fieldReturn 422 if anyerrorInsert only thegiven columnsReturn the rowwith 201
Read the JSON bodyClean each fieldReturn 422 if any errorInsert only the given columnsReturn the row with 201
Check, then insert.

Spec Sheet

Checks in the clean step

numbermust be finitebooleantrue, on, 1 count as truedatemust be YYYY-MM-DDenummust be one of the valuestextkept as a string
numbermust be finitebooleantrue, on, 1 count as truedatemust be YYYY-MM-DDenummust be one of the valuestextkept as a string
Each type validates its own way.

Before After

Sample error messages

InputErrormrr: abcjoined: 5 Mayplan: goldmrr must be a numberjoined must be YYYY-MM-DDplan must be one of free,pro, team
Input to Errormrr: abcmrr must be a numberjoined: 5 Mayjoined must be YYYY-MM-DDplan: goldplan must be one of free, pro, team
Written per field.

Spec Sheet

Status codes

list200 with rowscreate201 with the new rowbad input422 with the error listdelete204, empty body
list200 with rowscreate201 with the new rowbad input422 with the error listdelete204, empty body
What each answer means.

Spec Sheet

Omitted fields

Missing, null or emptyskipped in the insertThenthe column default appliesAll omittedINSERT DEFAULT VALUES
Missing, null or emptyskipped in the insertThenthe column default appliesAll omittedINSERT DEFAULT VALUES
Sparse payloads are fine.

Spec Sheet

Database result shapes

Array of rowshandled{ rows } objecthandledHelperrowsOf picks whichever
Array of rowshandled{ rows } objecthandledHelperrowsOf picks whichever
Two driver conventions accepted.

Spec Sheet

The UI file

Showsa table plus an add formTalks tothe entity API, GET POSTDELETEEscapesevery cell it rendersEmpty inputsomitted from the POST
Showsa table plus an add formTalks tothe entity API, GET POST DELETEEscapesevery cell it rendersEmpty inputsomitted from the POST
A small admin page.

Input To Output

Copy this file

The open tabSQL, routes orUI textReady to pasteinto yourprojectCopyInOut
InThe open tabCopySQL, routes or UI textReady to paste into your projectOut
Copies whichever tab is showing.

Pipeline

Live as you type

Name or fieldschangeThe open tabregeneratesErrors list abovethe outputCopy grabs thecurrent tab
Name or fields changeThe open tab regeneratesErrors list above the outputCopy grabs the current tab
No generate button.

Pipeline

Everything runs locally

All three filesgenerated in thebrowserNo network callsanywhereCopy is the onlyexport
All three files generated in thebrowserNo network calls anywhereCopy is the only export
Your schema never leaves the page.