Tools / CRUD App Scaffolder

CRUD App Scaffolder

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

Define the entity; the three files update live.

Entity

Scaffold

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

CRUD App Scaffolder

See it at work

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

CRUD App Scaffolder
Fields
API
CLI
model
fields
hiringsai tool crud-app-scaffolder
model string
fields array
2 fields, 2 required
curl -X POST https://hiringsai.com/api/v1/tools/crud-app-scaffolder/run
-d '{"input": {"model": "<text>", "fields": "<text>"}}'
JSON result
hiringsai run crud-app-scaffolder --input '{"model": "<text>", "fields": "<text>"}'
also callable over MCP
JSON result printed
Free toolAPI and MCPNo account
Fields
modelstring
fieldsarray
Ways to use it
pagethis app
APIPOST .../run
CLIhiringsai run
MCPtools/call
API call
POST /api/v1/tools/crud-app-scaffolder/run
input: {"model": "<text>", "fields": "<text>"}
JSON result back
Command line
hiringsai run crud-app-scaffolder
--input <json>
JSON result printed
The CRUD App Scaffolder page as it opens
CRUD App Scaffolder2 fields
The page as it opens, captured from the live site.
The CRUD App Scaffolder app at phone width
CRUD App Scaffolderphone layout
The same app at phone width.
A desktop computer on a white desk with a lamp
CRUD App ScaffolderFree tool
Name your entity and its fields; get the schema, REST routes and a working list/form UI as copyable files.
A woman working at a desktop monitor
CRUD App ScaffolderAPI and MCP
Call it from a script over the API or MCP.