Skip to content

Commit 20e79bc

Browse files
docs: sync recent architecture updates (#1621)
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
1 parent 594002d commit 20e79bc

47 files changed

Lines changed: 1132 additions & 2859 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ Instead of hiding business logic inside ad-hoc SQL queries, UI state, or JavaScr
1616
- **Business objects** are Zod schemas with typed fields, relations, validation, and permissions.
1717
- **Business actions** are generated from metadata as REST APIs, SDK calls, and MCP tools.
1818
- **Business logic** is represented as analyzable metadata: flows, conditions, policies, and artifacts.
19-
- **Business runtime** is a microkernel that loads plugins, drivers, services, and compiled project artifacts.
19+
- **Business runtime** is a microkernel that loads plugins, drivers, services, and compiled environment artifacts.
2020

2121
The goal is not to be another low-code UI builder. ObjectStack is the structured execution layer for AI-native business software: agent-ready, permission-aware, versioned, and auditable.
2222

2323
ObjectStack is built around three protocol layers:
2424

2525
- **ObjectQL** (Data Layer) — Objects, fields, queries, relations, validation, and data access.
26-
- **ObjectOS** (Control Layer) — Runtime, permissions, automation, plugins, tenants, and artifact loading.
26+
- **ObjectOS** (Control Layer) — Runtime, permissions, automation, plugins, environments, and artifact loading.
2727
- **ObjectUI** (View Layer) — Apps, views, dashboards, actions, and presentation metadata.
2828

2929
All core definitions start with **Zod schemas** (1,600+ exported schemas across 200 schema files). TypeScript types, JSON Schemas, REST routes, UI metadata, and agent tools are derived from the same source of truth.
3030

31-
See [ARCHITECTURE.md](./ARCHITECTURE.md) for the full microkernel and layer architecture documentation, and [content/docs/concepts/north-star.mdx](./content/docs/concepts/north-star.mdx) for the product north star (Studio · Org/Project/Branch · per-project ObjectOS · compiled app artifacts).
31+
See [ARCHITECTURE.md](./ARCHITECTURE.md) for the full microkernel and layer architecture documentation, and [content/docs/concepts/north-star.mdx](./content/docs/concepts/north-star.mdx) for the product north star (metadata protocols · environment-aware runtime · compiled app artifacts).
3232

3333
## Key Features
3434

@@ -45,8 +45,8 @@ See [ARCHITECTURE.md](./ARCHITECTURE.md) for the full microkernel and layer arch
4545
- **RBAC / RLS / FLS security** — Role-based, row-level, and field-level access control.
4646
- **Automation engine** — DAG-based flows, triggers, and workflow management.
4747
- **AI service** — Agent, Tool, and Skill protocol built on the Vercel AI SDK.
48-
- **Studio IDE** — Web-based metadata explorer, schema inspector, API console, and AI assistant.
49-
- **CLI toolchain** — `os init`, `os dev`, `os studio`, `os serve`, `os validate`, and more.
48+
- **Console UI** — Published ObjectUI console bundle for metadata exploration, schema inspection, API testing, and administration.
49+
- **CLI toolchain** — `os init`, `os dev`, `os start`, `os serve`, `os validate`, and more.
5050

5151
## Why AI-native?
5252

@@ -63,7 +63,7 @@ The point isn't lines of code. The point is **fit in an agent's context window.*
6363
| Business model | Implicit in pages, queries, and scripts | Explicit Zod `ObjectSchema` metadata |
6464
| Code footprint | Thousands of lines of queries, JS, and UI state per app | **~100× less** — declarative metadata replaces CRUD, forms, validation, and API glue |
6565
| Business logic | JavaScript snippets and query glue | Flows, policies, conditions, and typed metadata |
66-
| External contract | App-specific UI state | Self-describing JSON Project Artifact |
66+
| External contract | App-specific UI state | Self-describing JSON Environment Artifact |
6767
| Agent tools | Manually defined one by one | Generated from metadata and permissions |
6868
| Agent reasoning | Calls predefined queries | Reads the full schema, composes safe actions, respects boundaries |
6969
| AI maintainability | Agents must crawl sprawling app code | Whole app fits in an agent's context window |
@@ -80,10 +80,10 @@ This makes ObjectStack a backend substrate for AI-native business applications:
8080
npx create-objectstack my-app
8181
cd my-app
8282

83-
# Start dev server (REST API + Studio IDE)
83+
# Start dev server (REST API + console UI)
8484
pnpm dev
8585
# → API: http://localhost:3000/api/v1/
86-
# → Studio: http://localhost:3000/_studio/
86+
# → Console: http://localhost:3000/_console/
8787
```
8888

8989
Alternatively, with the CLI installed: `os init my-app && cd my-app && os dev`.
@@ -116,7 +116,7 @@ pnpm docs:dev
116116
| `pnpm dev:showcase` | Same as `pnpm dev` (explicit alias) |
117117
| `pnpm dev:crm` | Run the minimal CRM example (`@objectstack/example-crm`) |
118118
| `pnpm dev:todo` | Run the Todo example (`@example/app-todo`) |
119-
| `pnpm studio:start` | Start the prebuilt Studio IDE |
119+
| `pnpm objectui:refresh` | Pull the sibling `../objectui` build into `packages/console/` |
120120
| `pnpm test` | Run all tests (Turborepo) |
121121
| `pnpm setup` | Install dependencies and build the spec package |
122122
| `pnpm docs:dev` | Start the documentation site locally |
@@ -129,11 +129,10 @@ The CLI binary ships as both `os` and `objectstack`.
129129
```bash
130130
os init [name] # Scaffold a new project
131131
os create # Interactive project / object scaffolder
132-
os dev # Start dev server with hot-reload (REST + Studio)
133-
os studio # Open the Studio IDE
132+
os dev # Start dev server with hot-reload (REST + console)
134133
os start # Start the production server
135134
os serve # Serve a compiled artifact
136-
os compile # Build a deployable JSON Project Artifact
135+
os compile # Build a deployable JSON Environment Artifact
137136
os validate # Validate metadata against the protocol
138137
os lint # Lint metadata for best-practice violations
139138
os info # Display project metadata summary
@@ -142,7 +141,7 @@ os doctor # Check environment health
142141
os explain # Explain protocol concepts on the command line
143142
```
144143

145-
Cloud, package registry, and project management subcommands (`os projects`, `os publish`, `os login`, `os whoami`, `os cloud …`) are available when targeting an ObjectStack Cloud control plane.
144+
Cloud, package registry, and environment management subcommands (`os publish`, `os rollback`, `os package`, `os login`, `os whoami`, `os cloud …`) are available when targeting an ObjectStack Cloud control plane.
146145

147146
## Package Directory
148147

@@ -154,7 +153,7 @@ Cloud, package registry, and project management subcommands (`os projects`, `os
154153
| [`@objectstack/core`](packages/core) | Microkernel runtime — Plugin system, DI container, EventBus, Logger |
155154
| [`@objectstack/types`](packages/types) | Shared TypeScript type utilities |
156155
| [`@objectstack/formula`](packages/formula) | Canonical expression engine — CEL (cel-js) + ObjectStack stdlib for formula fields, predicates, conditions, dynamic defaults |
157-
| [`@objectstack/platform-objects`](packages/platform-objects) | Built-in platform object schemas — identity, security, audit, tenant |
156+
| [`@objectstack/platform-objects`](packages/platform-objects) | Built-in platform object schemas — identity, security, audit, notification, package, and environment |
158157

159158
### Engine
160159

@@ -205,7 +204,7 @@ Cloud, package registry, and project management subcommands (`os projects`, `os
205204
| :--- | :--- |
206205
| [`@objectstack/service-ai`](packages/services/service-ai) | AI service — Agent, Tool, Skill, Vercel AI SDK integration |
207206
| [`@objectstack/service-analytics`](packages/services/service-analytics) | Analytics — aggregations, time series, funnels, dashboards |
208-
| [`@objectstack/service-automation`](packages/services/service-automation) | Automation engine — flows, triggers, DAG-based workflows |
207+
| [`@objectstack/service-automation`](packages/services/service-automation) | Automation engine — flows, triggers, and workflow state machines |
209208
| [`@objectstack/service-cache`](packages/services/service-cache) | Cache — in-memory, Redis, multi-tier |
210209
| [`@objectstack/service-feed`](packages/services/service-feed) | Activity feed / chatter |
211210
| [`@objectstack/service-i18n`](packages/services/service-i18n) | Internationalization service |
@@ -215,7 +214,6 @@ Cloud, package registry, and project management subcommands (`os projects`, `os
215214
| [`@objectstack/service-realtime`](packages/services/service-realtime) | Real-time events and subscriptions |
216215
| [`@objectstack/service-settings`](packages/services/service-settings) | Settings — manifest registry + K/V resolver (Env > Tenant > User) |
217216
| [`@objectstack/service-storage`](packages/services/service-storage) | File storage (local, S3, R2, GCS) |
218-
| [`@objectstack/service-tenant`](packages/services/service-tenant) | Multi-tenant context and routing |
219217

220218
### Framework Adapters
221219

@@ -233,10 +231,9 @@ Cloud, package registry, and project management subcommands (`os projects`, `os
233231

234232
| Package / App | Description |
235233
| :--- | :--- |
236-
| [`@objectstack/cli`](packages/cli) | CLI binary (`os` / `objectstack`) — `init`, `dev`, `serve`, `studio`, `compile`, `validate`, `generate`, `lint`, `doctor` |
234+
| [`@objectstack/cli`](packages/cli) | CLI binary (`os` / `objectstack`) — `init`, `dev`, `start`, `serve`, `compile`, `publish`, `validate`, `generate`, `lint`, `doctor` |
237235
| [`create-objectstack`](packages/create-objectstack) | Project scaffolder (`npx create-objectstack`) |
238236
| [`objectstack-vscode`](packages/vscode-objectstack) | VS Code extension — autocomplete, validation, diagnostics |
239-
| [`@objectstack/studio`](apps/studio) | Studio IDE — metadata explorer, schema inspector, AI assistant |
240237
| [`@object-ui/console`](https://github.com/objectstack-ai/objectui/tree/main/apps/console) | Fork-ready runtime console SPA (lives in objectstack-ai/objectui, served via `@object-ui/console` on npm) |
241238
| [`@objectstack/account`](apps/account) | Account & identity portal — sign in, organizations, connected apps |
242239
| [`@objectstack/docs`](apps/docs) | Documentation site (Fumadocs + Next.js) |
@@ -254,9 +251,9 @@ Cloud, package registry, and project management subcommands (`os projects`, `os
254251
| Metric | Value |
255252
| :--- | :--- |
256253
| Source packages | 51 |
257-
| Apps | 6 (objectos, cloud, studio, console, account, docs) |
254+
| Apps | 2 (account, docs) |
258255
| Framework adapters | 7 (Express, Fastify, Hono, NestJS, Next.js, Nuxt, SvelteKit) |
259-
| Database drivers | 4 (Memory, SQL, SQLite-WASM, MongoDB) |
256+
| Database drivers | 3 (Memory, SQL, MongoDB) |
260257
| Zod schema files | 200 |
261258
| Exported schemas | 1,600+ |
262259
| `.describe()` annotations | 8,750+ |
@@ -300,9 +297,7 @@ See [ARCHITECTURE.md](./ARCHITECTURE.md) for the complete design documentation i
300297

301298
## Roadmap
302299

303-
See [ROADMAP.md](./ROADMAP.md) for the planned phases covering runtime hardening, framework adapter completion, developer experience improvements, performance optimization, and security hardening.
304-
305-
Studio-specific roadmap: [apps/studio/ROADMAP.md](./apps/studio/ROADMAP.md)
300+
See [ROADMAP.md](./ROADMAP.md) for the current documentation and architecture cleanup priorities.
306301

307302
## Contributing
308303

0 commit comments

Comments
 (0)