Skip to content

Commit da08548

Browse files
Merge pull request #1139 from objectstack-ai/claude/standardize-examples-app-host-to-apps-server
[WIP] Standardize examples/app-host to apps/server for unified application structure
2 parents e0b150c + 56f68af commit da08548

31 files changed

+154
-174
lines changed

.github/copilot-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ objectstack-ai/spec/
7979
8080
├── apps/
8181
│ ├── studio/ # 🎨 Studio UI (React + Hono, web-based)
82-
│ └── docs/ # 📖 Documentation site (Fumadocs + Next.js)
82+
│ ├── docs/ # 📖 Documentation site (Fumadocs + Next.js)
83+
│ └── server/ # 🚀 Production server (multi-app orchestration)
8384
8485
├── examples/ # 📚 Reference implementations
8586
│ ├── app-todo/ # Beginner: simple CRUD
8687
│ ├── app-crm/ # Advanced: full CRM with relations
87-
│ ├── app-host/ # Host application bootstrap
8888
│ └── plugin-bi/ # Plugin example: BI dashboard
8989
9090
├── skills/ # 🤖 AI skill definitions (for Copilot/Cursor)

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
290290
- **Removed `value` field from data API responses** — The `findData` protocol
291291
implementation no longer returns the deprecated `value` field alongside `records`.
292292
Only `records` is returned, matching the `FindDataResponseSchema` spec. All
293-
downstream consumers (Studio, app-host example, tests) updated to use `records`
293+
downstream consumers (Studio, server example, tests) updated to use `records`
294294
exclusively. OData-specific responses (`ODataResponseSchema`) retain `value` per
295295
the OData v4 standard — protocol-to-OData adaptation is handled in the HTTP
296296
dispatch layer.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ os doctor # Check environment health
181181
| :--- | :--- | :--- |
182182
| [`@example/app-todo`](examples/app-todo) | Task management app — objects, views, dashboards, flows | Beginner |
183183
| [`@example/app-crm`](examples/app-crm) | Enterprise CRM — accounts, contacts, opportunities, leads | Intermediate |
184-
| [`@example/app-host`](examples/app-host) | Server host — multi-app orchestration with plugins | Advanced |
184+
| [`@objectstack/server`](apps/server) | Production server — multi-app orchestration with plugins | Advanced |
185185
| [`@example/plugin-bi`](examples/plugin-bi) | BI plugin — analytics objects and reports | Intermediate |
186186

187187
## Codebase Metrics

ROADMAP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ Final polish and advanced features.
852852

853853
- [x] **app-todo** — Beginner reference (objects, actions, flows, dashboards, reports, i18n) ✅
854854
- [x] **app-crm** — Enterprise reference (10 objects, 5 AI agents, 4 RAG pipelines, security profiles) ✅
855-
- [x] **app-host**Multi-app orchestration pattern ✅
855+
- [x] **server** (formerly app-host)Production server with multi-app orchestration pattern ✅
856856
- [ ] **plugin-bi** — Business Intelligence plugin (currently a stub/placeholder)
857857
- [ ] **app-hrm** — Human Resource Management example
858858
- [ ] **app-project** — Project Management example
File renamed without changes.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Deploying App Host to Vercel
1+
# Deploying ObjectStack Server to Vercel
22

3-
This example demonstrates how to deploy the ObjectStack app-host to Vercel using Hono.
3+
This guide demonstrates how to deploy the ObjectStack production server to Vercel using Hono.
44

55
## Prerequisites
66

@@ -26,9 +26,9 @@ You can get these credentials from [Turso Dashboard](https://turso.tech/).
2626
npm i -g vercel
2727
```
2828

29-
2. Navigate to the app-host directory:
29+
2. Navigate to the server directory:
3030
```bash
31-
cd examples/app-host
31+
cd apps/server
3232
```
3333

3434
3. Deploy to Vercel:
@@ -46,7 +46,7 @@ You can get these credentials from [Turso Dashboard](https://turso.tech/).
4646
### Option 2: Using Vercel Dashboard
4747

4848
1. Import the repository to Vercel
49-
2. Set the root directory to `examples/app-host`
49+
2. Set the root directory to `apps/server`
5050
3. Add environment variables in the project settings
5151
4. Deploy
5252

@@ -64,7 +64,7 @@ The build is configured in `vercel.json`:
6464
## How It Works
6565

6666
1. **Build Process** (`scripts/build-vercel.sh`):
67-
- Builds both app-host and Studio using Turbo
67+
- Builds both server and Studio using Turbo
6868
- Studio is built with `VITE_RUNTIME_MODE=server` (set in vercel.json build.env)
6969
- Bundles the server code using esbuild (`scripts/bundle-api.mjs`)
7070
- Copies Studio dist files to `public/` for static file serving
@@ -95,7 +95,7 @@ The build is configured in `vercel.json`:
9595
The deployment follows Vercel's serverless function pattern:
9696

9797
```
98-
examples/app-host/
98+
apps/server/
9999
├── api/
100100
│ ├── [[...route]].js # Committed entry point
101101
│ └── _handler.js # Generated bundle (not committed)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# ObjectStack Example Server
1+
# ObjectStack Production Server
22

33
This is a reference implementation of the ObjectStack Server Protocol (Kernel).
44
It demonstrates how to build a metadata-driven backend that dynamically loads object definitions from plugins and automatically generates REST APIs.
55

66
## Deployment
77

8-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/objectstack-ai/framework/tree/main/examples/app-host&project-name=objectstack-app-host&repository-name=objectstack-app-host)
8+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/objectstack-ai/framework/tree/main/apps/server&project-name=objectstack-server&repository-name=objectstack-server)
99

1010
See [DEPLOYMENT.md](./DEPLOYMENT.md) for detailed deployment instructions.
1111

0 commit comments

Comments
 (0)