|
55 | 55 | <h1>One typed model for every app that shares your data</h1> |
56 | 56 | <p class="hero-lede">Your agent writes the model. Each app's code is generated from it, and each app's build is checked against it.</p> |
57 | 57 | <p class="hero-lede"> |
58 | | - Rules files, memories and MCP servers give a coding agent context, but nothing fails when the code stops matching it. It gets worse when several apps share one data model: your API, your LLM worker, your admin app and your prompts can each look right alone and still disagree, and an agent working in one can't see the others. |
| 58 | + OpenAPI and TypeSpec keep an API contract honest. They don't reach the database schema behind it, or the prompts your LLM features fill from the same data, and rules files and Markdown specs only tell an agent what should be true: nothing fails when the code stops matching them. So one field change still touches the migration, the API types in each language and the prompt inputs, and a coding agent working in one of them can't see the others. |
59 | 59 | </p> |
60 | 60 | <p class="hero-lede"> |
61 | | - MetaObjects gives them one typed model covering the data, the API contract, the prompt payloads, and what the software is supposed to do. Each app generates its types, validators and routes from that model, in its own language, and the output depends on no proprietary runtime. Each app's <code>verify</code> step fails CI when its generated code, a prompt or a claimed capability no longer matches the model. |
| 61 | + MetaObjects puts them in one typed model: the data, the API contract, the prompt payloads, and the features the software is supposed to have. Each app generates its types, validators and routes from it, in its own language, and the output depends on no proprietary runtime; the same model drives migrations and the live-database check. Each app's <code>verify</code> step fails CI when its generated code, a prompt template or a declared feature no longer matches, and the Node <code>meta verify --db</code> does the same for the database in any language. If partners call your API, keep OpenAPI and <code>oasdiff</code> at that edge: MetaObjects does not export OpenAPI yet, and it does not compare a change with your last release. |
62 | 62 | </p> |
63 | 63 | <p class="hero-lede"> |
64 | 64 | <strong>Less code to write and review.</strong> You, or your coding agent, write one declaration in the model instead of the same thing once per layer: the types, validators, queries, routes and UI. The generators write the rest. In one app, 18 model objects become 129 generated files. In another, 13 become 117. |
@@ -224,6 +224,33 @@ <h3>Probably not: one app, one language, no LLM</h3> |
224 | 224 | <p class="pillars-note"><strong>If the tool falls short, you can fix it.</strong> Most changes a team needs are to generated output: your own generators are already yours, and <code>eject</code> copies any shipped one into your repo to change the same day. For the core (loader, <code>verify</code>, <code>migrate</code>, render) it is Apache 2.0 with all five ports in one public repo: patch a fork, pin to it, and drop the patch when upstream catches up. Every upstream release you then want is a merge you do.</p> |
225 | 225 | </section> |
226 | 226 |
|
| 227 | + <!-- For readers who already use Markdown specs --> |
| 228 | + <section class="compare" id="spec-driven"> |
| 229 | + <h2 class="section-label">If you already work spec-driven</h2> |
| 230 | + <p class="compare-intro">Spec Kit, Kiro and OpenSpec get a feature started well: a spec, a plan and a task list in Markdown, then the agent writes the code. After the first iteration nobody updates the Markdown, each service re-derives the same types slightly differently, and nothing fails when the code and the spec drift apart. A Markdown spec is read by the agent. It is not checked by the build.</p> |
| 231 | + |
| 232 | + <table class="compare-table"> |
| 233 | + <thead> |
| 234 | + <tr> |
| 235 | + <th></th> |
| 236 | + <th>Markdown specs (Spec Kit, Kiro, OpenSpec)</th> |
| 237 | + <th>The MetaObjects model</th> |
| 238 | + </tr> |
| 239 | + </thead> |
| 240 | + <tbody> |
| 241 | + <tr><td>What it holds</td><td>Intent, design, plan and tasks, in prose</td><td>Entities, API types, prompt payloads and declared features, as typed metadata</td></tr> |
| 242 | + <tr><td>Who reads it</td><td>Your agent, when it starts a task</td><td>The generators on every build, and your agent</td></tr> |
| 243 | + <tr><td>When the code drifts from it</td><td>You find out in review, or in production</td><td><code>verify</code> exits 1 and names the file, template or feature</td></tr> |
| 244 | + <tr><td>Reviewing a change</td><td>Pages of generated Markdown</td><td>A short model diff; the generated code is checked by <code>verify</code> rather than read line by line</td></tr> |
| 245 | + <tr><td>Same input twice</td><td>The agent may write different code</td><td>Each port is held to the same expected results on shared inputs by the shared conformance fixtures</td></tr> |
| 246 | + </tbody> |
| 247 | + </table> |
| 248 | + |
| 249 | + <p class="compare-note"> |
| 250 | + They work together: a feature spec names model entities instead of copying their fields, and the agent changes the model first, then regenerates. What the check proves is that the code matches the model, not that the feature behaves correctly, so you still need tests for behaviour. |
| 251 | + </p> |
| 252 | + </section> |
| 253 | + |
227 | 254 | <!-- Using it with your ORM, per port --> |
228 | 255 | <section class="drift" id="keep-your-orm"> |
229 | 256 | <h2 class="section-label">Using it with the ORM you have</h2> |
|
0 commit comments