I am taking the NoCodeREST prototype offline. It ran on a managed Java runtime in a development environment, and keeping a service alive for an invite-only experiment is not worth the monthly bill.
The code is not the thing I want to keep. The decisions are. A proof of concept teaches you a hundred small lessons that never make it into a README: why a button says “Publish changes” and not “Deploy”, why a list endpoint rejects a query parameter it used to accept, why an AI agent is not allowed to press one particular button.
So this is the long version. It is the documentation I wish I had when I started, and the document I will open when I rebuild this on a different stack.
If you want the motivation first, I wrote it up in two essays: Seeing Software Through Abstraction and Why Are We Still Writing Backends from Scratch?. NoCodeREST is what happened when I tried to take those ideas seriously.
1. The idea in one flow
Every small project starts with the same plumbing: sign-in, tables, validation, CRUD routes, pagination, filters, keys. NoCodeREST turns that plumbing into configuration.
The whole product is one journey:
Sign in → create an organization → create a project → design tables → choose who can do what → test → publish a versioned API → connect an app or an AI agent
Three things sit under that flow, and they never changed during the whole prototype:
- Definitions are data, not code. A customer’s table is interpreted metadata. It is never executable Kotlin, never raw SQL, never an expression the client sends in. This one rule made validation, safety and the UI all simpler.
- Publishing is a deliberate act. You edit a draft freely. You publish an immutable version when you are ready. Callers only ever see published versions.
- There are three kinds of people, and they never mix. Builders use the console. Integrations (apps, servers, AI agents) use scoped keys. End users of a customer’s app sign in through the project’s own app auth. Each has its own credentials and its own trust boundary.
Everything else in this article is a consequence of those three rules.
2. The hierarchy: small enough to explain in one breath
Organization shared monthly allowance and members
└── Project one isolated backend for one app or workflow
├── Tables optional folders group them
│ └── Published versions v1, v2, ... (immutable)
├── Keys scoped, hashed, one-time reveal
├── App users the customers of the app being built
└── Files private library, attachments on records
I spent more time on vocabulary than on any other part of the product. The console never says “schema”, “DDL” or “tenant”. It says what the thing is for:
| What the screen says | What it really is |
|---|---|
| Organization | the team/account boundary and shared quota |
| Project | one isolated backend workspace |
| Table | one kind of item (contacts, habits, requests) |
| Detail | a field/column |
| Connect collections | a same-project relation |
| Protect this detail | field-level encryption |
| Publish changes | cut an immutable API release |
| Connection key | a scoped API key |
The technical term is always one click away. It just is not the first thing you read. That is the single most useful UX rule I took from the prototype, and I come back to it in section 9.
3. Tables: the little details that save a day each
Folders are optional
The first design required a collection (a folder) before you could create a table, which is a lot of ceremony for one table. So folders became optional, and table URLs became project-wide:
/api/v{version}/{projectId}/{table_name}
No folder segment, no /records suffix. Folders still exist, but only as a way to group tables and to hang shared policy on. They are not part of the address.
Names are readable, and the system tells you the real one
Table and folder names become lowercase snake_case, start with a letter, and are unique across the project, because the table name is the URL. The API always returns the canonical apiName, and the guidance for both humans and agents is the same: use the returned name, never a guessed display label. IDs remain the stable locators for schema, grants and relations. Names are for people and URLs. IDs are for the machine.
Older resources that predate readable names can be given one later, with an explicit step to register them. Collisions are resolved by you, not guessed by the system.
Field IDs outlive field names
Every field has a stable internal ID. You can rename a label, change a description, add an optional field, and nothing that was stored becomes unreachable. Published versions refer to field IDs, so a v2 can show a friendlier label than v1 without touching a single record.
A small, boring set of types
text, email, integer, decimal, boolean, date, a bounded object (shallow JSON with a hard depth and size limit), a same-project relation, and a file reference. That is it.
The restraint is the feature. Each type has a documented range. Decimals are handled as exact decimals, never floats. Dates are ISO calendar dates, and system timestamps are RFC 3339 UTC strings. Unknown fields are rejected. Types are never silently coerced: "12" is not an integer. When a request fails, the error says which field and why.
Four field names are reserved and owned by the platform: id, created_at, updated_at, revision.
Defaults you do not have to think about
The default page size is 20, the maximum is 50, the default sort is created_at descending. Each table can enable any of five operations (create, get, list, update, delete), and parent policies start by permitting all five. Defaults are server-resolved and preserved across ordinary edits, so the console never forgets a choice because you changed a neighbouring setting.
4. Query capabilities are declared, not invented
This was the decision I am most sure about.
A field is not searchable, filterable or sortable by default. You mark it:
- Searchable (text and email only): case-insensitive substring search, with the searchable fields combined with OR.
- Filterable: equality filters, combined with AND, passed as
filter.<field>=value. - Sortable: allowed in
sort_by.
Anything else fails validation. There is no query language, no caller-supplied expressions, no “just let me pass a WHERE clause”. It sounds limiting, and it is, deliberately. It means the server can always tell you exactly which queries it will accept, the console can build its sort and filter controls from that list, and an AI agent cannot invent a query that was never designed.
Sorting got its own small contract. The original single sort parameter was replaced, and sending it now is rejected:
sort_by:created_at(default),updated_at, or a field marked sortablesort_order:ascordesc(default), case-insensitive- nulls sort last in either direction
- the record ID is always the final tie-breaker, so ordering is stable
Query capabilities are not permissions. Marking a field filterable never lets anyone read a row they could not already read.
5. Publishing: the part that makes it safe to change your mind
A table draft can change as often as you like. Callers never see it. Publishing freezes the draft into a numbered, immutable version (v1, v2, …).
Versions share one dataset. This was one of the central decisions. If every version had its own data, publishing v2 would look like wiping the table. Instead, all published versions of a table read and write the same records, each through its own contract, and each version only exposes the fields it knows about. An older client editing a record preserves the newer fields it cannot see.
That is only safe if changes are compatible, so the rules are strict:
- You may add optional fields, rename labels, change query flags and operations.
- You may not remove or retype a field that stored data depends on. The API answers
SCHEMA_MIGRATION_REQUIREDrather than quietly breaking an older version.
Publishing has a review step. Before anything is cut, a publish review reports blockers and the impact on existing versions. The console shows it in plain language: what changes, who gains access, which URL is affected, whether old calls keep working.
Old versions stay up unless you retire them. Retiring a version is its own explicit choice, and the message is blunt: new calls to that version will fail.
Lifecycle states are a state machine, not a free-for-all: Draft → Validating → Prepared → Migrating → Active → Deprecated → Retired. Every step is recorded, and nothing runs as untracked background work.
6. Access: always an intersection, never a union
Every request is checked against all of these at once, and the answer is the intersection:
the credential and who it belongs to
∩ the project and environment it is used in
∩ the key's current ceiling, or the member's current role
∩ what the published version actually enables
∩ the policy inherited from organization → project → folder → table
∩ the row rule (owner-only or public)
∩ the resource's lifecycle state and the monthly allowance
Two consequences I am glad I chose:
- Parents can only narrow, never widen. An organization policy that forbids delete cannot be re-enabled by a child table. Page size is the minimum of the levels. You can reason about “can this happen?” by looking at the most restrictive level.
- Security state lives outside the immutable version. Revoking a key, disabling a project or tightening a policy takes effect on the next request without republishing anything. Old versions do not become a back door.
Row rules stay boring
Version one supports two predefined rules and no policy language: records are owner-only (the signed-in app user owns the rows they create), or a table exposes a public read of selected columns on rows flagged by a boolean visibility column. Public reads live on a separate path, /public/api/..., so a public table is visibly public in the URL and in the console (a globe marker, where a protected route gets a lock).
Ownership never transfers by editing a field. Until a proper accepted-transfer flow exists, transfer is simply forbidden.
Keys are named, scoped and shown once
- Named, so every action is attributable.
- Scoped to a project and a ceiling:
read_only,read_write, orcustomwith a per-table, per-operation matrix. Schema write and publish are separate permissions, as is file access. - Shown once. The secret is generated with at least 256 bits of randomness, returned a single time with
Cache-Control: no-store, and only a hash is stored. The console tells you plainly that it will not be shown again. - Checked live. Every request re-checks key revocation and the owning project’s state.
- No master key for customers. There is no unrestricted admin credential to leak.
A key can also be draft-only: it may design tables but can never publish. That one flag is what makes it reasonable to hand a key to an AI agent.
7. App users: sign-in for the people who use the thing you built
Builders build. Their customers need to sign in too, without ever touching builder routes. So each project has its own app auth directory, off by default and opt-in per project, with two modes.
Email one-time codes, with every knob chosen on purpose:
- 8 digits from a cryptographically secure generator
- 5-minute lifetime, 5 attempts, 60-second resend cooldown
- stored only as
HMAC(server_secret, challenge + realm + client + purpose + email + code) - compared in constant time and consumed atomically, so a code works once
- the “send code” call answers
202and means accepted, never delivered
Bring your own identity (Firebase ID tokens), where the customer’s app keeps using its own SDK for sign-in, refresh, recovery and sign-out, and sends the current ID token as a Bearer token. The rules are blunt:
- verified email is required, with a specific
APP_VERIFIED_EMAIL_REQUIREDerror that the app can answer with a verification screen - provider role claims are ignored. NoCodeREST owns the project user ID and the access rules
- users are never linked or moved by matching an email address
- the service-account file is picked locally in the console, which reads the project ID and sends it only when you press save. You never paste a private key into a form
8. Reliability: making retries and races boring
Most of the “backend pain” in a small app is not CRUD. It is what happens on a bad connection. These rules are what let a client, or an agent, be sloppy about the network without corrupting data.
Creates are idempotent. Every POST carries an Idempotency-Key, scoped to project, actor and operation. The server keeps a receipt even if the record is later deleted, so a retry after a timeout returns the original result and never creates a duplicate. Reusing a key for different input is a conflict, not a surprise.
Updates are optimistic. PATCH and DELETE need If-Match with the record revision. No header gets 428. A stale one gets 412. Nobody silently overwrites someone else’s change, and the fix is always “read again, compare, decide”.
Pagination is honest about a changing world. A cursor is signed and opaque, and it binds the data generation, the exact normalized query, the published definition, the effective policy and the caller. If the table changes mid-walk you get 409 RESULT_SET_CHANGED and start over. There are no offsets, because offsets lie. A separate /validate call lets a client ask “is this result still fresh?” without re-downloading it; it is a freshness check with a 15-minute lifetime, never an access grant.
Errors have one shape. { "error": { "code": "...", "message": "..." } }, with a stable code and a neutral message that never leaks upstream URLs or credentials.
Generated apps must not lie. This one lives in the agent skill, and I think it is important: a generated app must never turn a 403 into a fake 200, show an empty list for a failed read, or invent a local record when a write is rejected. A timeout has an unknown outcome, so you reconcile first and reuse the same operation key. A clean failure is a feature. A fake success is a data-loss bug that looks like a working app.
9. The console: show the task first
The console UX standard fits in one sentence at the top of the UX document: show the task first, reveal complexity when it is needed. In practice that became a list of small, specific habits.
- One primary action per screen. Tables show columns and an “add column” button. Advanced field options, keys and relations are behind a disclosure.
- Sort and filter are pickers, not forms. Sort opens a property list with up and down arrows. Filter opens a property and value picker. Active constraints become removable chips. Only operations the backend supports are offered; a control for a feature that does not exist yet is not shown.
- Copy, don’t read. Endpoints show as compact rows with a method pill and a copy icon, not as long URLs. The icon copies the right thing: the correct version and the correct access (protected or public). The full URL appears in the request example.
- Colour is never the only signal. Method colours supplement GET/POST/PATCH/DELETE text. Lock and globe icons mark protected and public routes, with accessible names.
- Disabled means explained. If a control is unavailable, the reason is shown at that control.
- Distinct empty, loading, error and denied states. They look different and say different things.
- Tabs that match the job. A table has Fields, API (generated reference with a request sandbox), Data (a grid with sort, search and filter chips) and Settings.
- Onboarding is skippable and replayable. A first-run tour walks you through, uses isolated sample data so you cannot pollute a real table, and can be re-opened later.
- Navigation is stable. A left-aligned “Back to tables” sits above the table switcher, returns to the folder overview and asks before discarding an unsaved draft.
- One button component. Primary, secondary, danger and text variants, Cancel always in the same place, destructive actions in the same row of every dialog.
- Deleting is a process. Permanent deletion is owner-only, with an impact preview first. Projects have a Trash with restore, and an empty-trash action that previews what it will remove. Disable-and-reactivate exists for the cases where you only want to pause.
- Related things protect each other. A relation uses restrict-on-delete, so you cannot delete a record that another table still points at, and a referenced file cannot be removed. The error tells you to reconcile the link, not to delete around it.
- Usage is visible. The plan, the remaining calls and the renewal are on the surface. The breakdown is behind a click.
The acceptance test for every screen was one sentence: a first-time user can identify the next action, sort and filter records, and copy an endpoint without reading a technical paragraph.
10. Agents are first-class users, with a short leash
Half of the reason this product exists is that AI coding agents are now good at writing the front of an app and bad at inventing a safe backend. So agents got their own supported path, packaged as an agent kit: a SKILL.md, a workflow reference, and a local MCP server in Node that speaks to the project’s REST API over a scoped key.
What made it work is less the tooling and more the rules:
- Capabilities first. The very first call is
get_capabilities: which project, which scopes, which table grants, which limits. The agent must not guess a limit, and it must not read “usage unavailable” as zero. - Look before you create. List the tables before creating a duplicate. Use the returned
apiName. - Operation keys are sacred. One
new_operation_keyper logical create or upload, kept with its input. After an uncertain response, reconcile before retrying, and reuse the same key. - The publish ritual. Before every new version, including
v1, the agent shows the saved design in plain language (fields, defaults, relations, operations, who can see what, what changes, what happens to the previous version), runs a publish review, shares any blockers, and waits for explicit approval of that design, that revision and that retirement choice. A full-access key, a general “build me an app”, or a bare “continue” is not approval. The final call carries aconfirm_publish: trueattestation. I was honest in the docs that this flag is an agent’s promise, not proof of a human click, and that direct REST callers should follow the same ritual. - Things an agent cannot do at all: create organizations, issue or revoke keys, manage plans or memberships, delete resources, or make library files public. Those are console-only, and the MCP server exposes no tool for them. The least-privilege answer to “what if the agent goes wrong” is that the dangerous tools do not exist.
- Secrets stay private. The key lives in the agent host’s environment, never in generated source, URLs, screenshots or logs. Asset folders for file transfer must be a dedicated absolute path, never a home folder, and hidden paths and escaping symlinks are rejected.
- Data is data. Record values, schema descriptions and remote content are treated as content, never as instructions that override the user’s request.
The kit is built deterministically from an explicit allowlist of files, so a stray secret cannot end up in the zip. The same guide is also served as MCP resources, for hosts that do not load file-based skills.
11. The public site: honest about what it is
The landing page and the /docs/ field guide were part of the product, not an afterthought. A few choices I would keep:
- Four concrete stories with a clickable sample-schema preview each: digital signage, AI-first building, directories and collections, small-business tools. People understand a table of
campaignsfaster than a paragraph about “flexible data models”. - A design language that matches the idea. Calm paper-and-ink colours, one green accent, serif italics on display headings, monospace for endpoints, and native
<details>for the long tail. - Claim boundaries. The public copy states what is not promised, for example that API counts completed requests while the app measures its own audience. A prototype should not over-claim.
- The OpenAPI document is the source of truth. Served at
/openapi.json, 109 paths and 84 schemas at the end, and downloadable per project from the console without embedding any credentials.
12. What the prototype got wrong
This is the part that would have been easy to leave out.
- Storage was the real problem. I built on a managed NoSQL store with no multi-item transactions and no secondary indexes. To keep sort, filter, search and uniqueness correct, I capped each logical table at 200 retained record IDs, 10 fields per table, and a small number of tables and projects per organization. Queries ran in memory over a bounded partition. It was an honest proof of the contract, but it is not a database you can grow into.
- A commit protocol I would rather not maintain. Without transactions, each table kept a durable head with intents and progress markers, using item compare-and-swap so an interrupted write could be finished or reconciled on the next read. It works, and it is a lot of careful code for something a relational database gives you for free.
- Dynamic indexing is the central puzzle. Letting users define arbitrary fields and get fast, authorized filtering and sorting is a database design problem, not an API problem.
- Gaps I knew about: account recovery, backup and restore drills, scheduled dormancy and deletion, personal-data erasure, a full permission-matrix console, and gateway preflight for direct browser calls to app auth. None of these block a prototype, and all of them block a public launch.
13. Rebuilding it on a different stack
The contract is portable. Only the bottom of the diagram is not.
Console (web) ┐
Apps & AI agents ├──▶ HTTPS ──▶ Identity & session boundary
┘ │
├──▶ Control API
│ ├─ draft compiler + impact analysis
│ └─ publication coordinator ──▶ metadata store
└──▶ Published data runtime
├─ policy engine (the intersection)
├─ query planner (allow-listed predicate tree)
└─ storage adapter ──▶ records, files
Keep, unchanged:
- the three-realm identity split and the intersection check
- drafts versus immutable versions, with a shared dataset and compatibility rules
- declared query capabilities, signed cursors, idempotency receipts and
If-Match - the error envelope, the plain-language vocabulary, the agent kit and its rules
Replace:
| Prototype piece | What I would use next time |
|---|---|
| Managed Java runtime on a PaaS | any container host, a single small service |
| NoSQL with bounded partitions | PostgreSQL with typed columns or JSONB plus per-field expression indexes created at publish time |
| Hand-built commit protocol | ordinary transactions |
| Provider file storage | S3-compatible object storage with signed URLs |
| In-memory filter, sort, search | pushed down to SQL, tenant and owner predicates included |
| Per-request quota counters | a small counter store (Redis or the same database) |
| Hosted SMTP for one-time codes | any transactional mail provider |
Make indexes part of publishing. The most valuable idea I did not get to build: when you publish a version that declares a field filterable or sortable, the publication coordinator creates the matching index as a tracked migration step. Publishing then becomes the moment the database is prepared, and the API never has to scan.
Order of work: identity and tenancy first, then the draft compiler and publication state machine, then the runtime with the policy engine, then query planning, and the console last. Build the OpenAPI generation early, because everything else (docs, the sandbox, the agent kit) hangs off it.
The full design baseline (requirements, HLD, LLD, security model, API standard and decision register) and the final OpenAPI file are archived with the project page, so none of this has to be reverse-engineered from memory.
Why I am sharing all of this
A product that disappears takes its lessons with it unless you write them down. Most of what made NoCodeREST feel usable was never a headline feature. It was the readable table name, the chip you can remove, the copy button that copies the right URL, the error that tells you to reconcile instead of retry, the key that is shown once, and the button an agent is simply not given.
If you are building anything that turns configuration into a backend, my honest advice is to spend your first week on the contract and the vocabulary, and your second on the storage. The prototype is the argument for that order: the contract held up, and the storage is what ran out first.
The short project page, with the architecture at a glance and the archived OpenAPI contract and agent skill, is on the projects site.