You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: surface code-reduction as the core AI-native value
The real moat of metadata-driven development is not 'low-code UI', it
is that the entire business system is small enough to fit in an AI
agent's context window. Make this an explicit, top-level value across
README and the concept docs.
- README.md
- Add a 'Key Features' bullet on ~100x less code -> AI maintainability
- Add 'Code footprint' and 'AI maintainability' rows to the
Retool/Appsmith comparison table
- Rewrite the 'Why AI-native?' intro to anchor the value on
'fit in an agent's context window'
- content/docs/index.mdx
- Add a second callout under the 'not a low-code UI builder' line
explaining the ~100x code reduction and AI-co-maintenance angle
- Fix stale 'npx @objectstack/cli init' -> 'npx create-objectstack'
quick-start command (matches updated README)
- content/docs/concepts/metadata-driven.mdx
- Rename benefit #4 'Reduced Boilerplate' -> '~100x Less Code -
Sized for AI Agents' and reframe around context-window fit
- Clarify that what gets generated is full CRUD + REST + typed SDK
+ MCP tools + validation + permission scaffolding, not just CRUD
- content/docs/concepts/north-star.mdx
- Add a sixth non-negotiable tenet: 'Compact by Construction'
-> a typical enterprise app fits in ~1% of a hand-written
equivalent, small enough for an AI agent to load and refactor
end-to-end. Explicitly call this out as the real moat.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ See [ARCHITECTURE.md](./ARCHITECTURE.md) for the full microkernel and layer arch
32
32
33
33
## Key Features
34
34
35
+
-**~100× less code to write and maintain** — Business objects, permissions, flows, APIs, and UI are declared as typed metadata, not hand-written. A typical enterprise module collapses from tens of thousands of lines of CRUD/glue code into hundreds of lines of declarative schema — small enough for an AI agent to load end-to-end and safely refactor.
35
36
-**Agent-ready metadata** — Business objects, actions, and permissions are explicit enough for AI agents to inspect and use.
36
37
-**Automatic tool surface** — Metadata can power REST APIs, client SDKs, UI views, and MCP tools without redefining each action by hand.
37
38
-**Protocol-first schemas** — All schemas are defined with Zod; TypeScript types are derived via `z.infer<>`.
@@ -51,15 +52,19 @@ See [ARCHITECTURE.md](./ARCHITECTURE.md) for the full microkernel and layer arch
51
52
52
53
Most internal-tool and low-code platforms were designed for humans clicking screens. AI support is usually added later as a chat box that can call a few predefined queries.
53
54
54
-
ObjectStack starts from a different assumption: AI agents need a structured, bounded, and auditable business backend before they can safely perform real work.
55
+
ObjectStack starts from a different assumption: **AI agents need a structured, bounded, and auditable business backend before they can safely perform real work** — and the entire business system needs to be small enough to fit in an agent's context window.
56
+
57
+
A typical enterprise application is tens of thousands of lines of CRUD, forms, queries, permissions, and API glue spread across dozens of files. ObjectStack collapses the same surface into a few hundred lines of typed metadata — roughly **two orders of magnitude less code for a developer (or an AI agent) to read, write, and maintain.** That's what turns AI from an autocomplete tool into a real co-maintainer of production business software.
| Business model | Implicit in pages, queries, and scripts | Explicit Zod `ObjectSchema` metadata |
62
+
| Code footprint | Thousands of lines of queries, JS, and UI state per app |**~100× less** — declarative metadata replaces CRUD, forms, validation, and API glue |
59
63
| Business logic | JavaScript snippets and query glue | Flows, policies, conditions, and typed metadata |
This makes ObjectStack a backend substrate for AI-native business applications: CRM agents, support agents, operations agents, workflow agents, and internal tools that must act on real business data without bypassing permissions or audit trails.
Copy file name to clipboardExpand all lines: content/docs/concepts/metadata-driven.mdx
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,11 +197,15 @@ Node.js Python
197
197
React Flutter
198
198
```
199
199
200
-
### 4. Reduced Boilerplate
200
+
### 4. ~100× Less Code — Sized for AI Agents
201
201
202
-
**Traditional:** ~300 lines of code for a simple CRUD feature
202
+
**Traditional:** ~300 lines of code for a simple CRUD feature
203
203
**ObjectStack:** ~30 lines of metadata
204
204
205
+
For a complete enterprise module (CRM, ticketing, approvals, …) the gap typically widens to **roughly two orders of magnitude** — tens of thousands of lines of hand-written CRUD, forms, validation, and API glue collapse into a few hundred lines of typed metadata.
206
+
207
+
The point isn't lines of code. The point is **fit in an agent's context window.** When the entire business system is small, typed, and declarative, an AI agent can load it end-to-end, reason about every dependency, and safely refactor across data, API, UI, and permissions in a single change. That turns AI from an autocomplete tool into a real co-maintainer.
208
+
205
209
```typescript
206
210
// All you need:
207
211
import { ObjectSchema, Field } from '@objectstack/spec/data';
Copy file name to clipboardExpand all lines: content/docs/concepts/north-star.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,9 +31,10 @@ Phase 1 is deliberately **code-first**:
31
31
metadata in Phase 1.
32
32
- ObjectOS runtimes are stateless consumers of the Project's current Version artifact.
33
33
34
-
Five non-negotiable tenets:
34
+
Six non-negotiable tenets:
35
35
36
36
-**Agent-Ready Business Metadata** - objects, fields, functions, views, flows, permissions, and tools are all explicit metadata artifacts
37
+
-**Compact by Construction** - because the whole business system is declarative metadata, a typical enterprise app fits in roughly **1% of the code** of a hand-written equivalent. Small enough for an AI agent to load end-to-end, reason about every dependency, and safely refactor across data, API, UI, and permissions in a single change - this is the real moat, not "low-code UI"
37
38
-**Versioned Artifacts, Stateless Runtime** - every publish creates an immutable Project Version; ObjectOS runtimes pull the current Version artifact and serve it
38
39
-**TS-Authored, JSON-Stored** - TypeScript is the authoring form (type safety, IDE intelligence, AI-assisted editing); JSON is the wire and storage form (Project Version artifact payload, Artifact API response body, local artifact cache). Zod schemas are the only bridge between the two.
39
40
-**Local-First (development)** - every project can run against local drivers (memory, SQLite, embedded Turso replica); cloud is an enhancement, not a dependency. This refers to the *developer/runtime* mode, not to data sovereignty on end-user devices.
Copy file name to clipboardExpand all lines: content/docs/index.mdx
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,10 @@ Define business objects, permissions, workflows, APIs, UI metadata, and agent to
10
10
11
11
> ObjectStack is **not another low-code UI builder**. It is the **structured execution layer** for AI-native business software: agent-ready, permission-aware, versioned, and auditable.
12
12
13
+
> **~100× less code to write and maintain.** A typical enterprise application is tens of thousands of lines of CRUD, forms, queries, permissions, and API glue. ObjectStack collapses the same surface into a few hundred lines of typed metadata — small enough to fit in an AI agent's context window so the agent can reason about the whole system end-to-end and safely refactor across data, API, UI, and permissions in a single change.
14
+
13
15
```bash
14
-
npx @objectstack/cli init my-app &&cd my-app &&os studio
16
+
npx create-objectstackmy-app &&cd my-app &&pnpm dev
15
17
```
16
18
17
19
Open [http://localhost:3000/_studio/](http://localhost:3000/_studio/) to browse objects, test APIs, inspect metadata, and review the agent-ready tool surface.
0 commit comments