Skip to content

docs: third-party developer onboarding and self-hosted deployment guides - #2899

Merged
os-zhuang merged 3 commits into
mainfrom
claude/third-party-dev-docs-0t5256
Jul 14, 2026
Merged

docs: third-party developer onboarding and self-hosted deployment guides#2899
os-zhuang merged 3 commits into
mainfrom
claude/third-party-dev-docs-0t5256

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

背景

从第三方开发者(通过 npm 使用框架、不 clone monorepo 的外部用户)的视角评估了 https://docs.objectstack.ai/docs 的现有文档,发现两个结构性缺口:

  1. 入门缺口:Get Started 板块没有一篇不依赖 AI agent、也不依赖 monorepo 的动手教程。quick-start 实际是"读懂元数据"(Anatomy),build-with-claude-code 是 AI 优先路径,手动路径只以速览形式埋在 CLI 参考页里;也没有任何地方说明一个独立项目依赖哪些 npm 包。
  2. 部署缺口:Deployment 板块只有 Vercel 一个具体部署目标,没有自托管指南 —— 没有 Docker/Compose/systemd 的落地步骤,OS_SECRET_KEY/OS_AUTH_SECRET 等容器化必设项散落在各页,健康检查端点(/api/v1/health/api/v1/ready)未在部署文档中出现。

变更

新增文档

  • content/docs/getting-started/your-first-project.mdx — 面向外部开发者的动手教程:npm create objectstack 脚手架(含真实模板表:blank + 远程 todo/compliance/content/contracts/procurement)、生成的项目结构与依赖包说明、os dev --ui、curl 调用生成的 REST API(/api/v1/data/<object>)、手动扩展模型 + os validate 门禁、os build 产物。所有命令与行为均对照 packages/create-objectstack/src/index.ts 与 CLI 实现核实。
  • content/docs/deployment/self-hosting.mdx — 自托管指南:必设四项(OS_DATABASE_URL/OS_AUTH_SECRET/OS_SECRET_KEY/OS_PORT)、systemd 裸机部署、多阶段 Dockerfile、Docker Compose + Postgres、liveness/readiness 探针、反向代理与 OS_AUTH_URL/OS_TRUSTED_ORIGINS 同步、多节点 OS_CLUSTER_DRIVER 注意事项,收尾链接到 Production Readiness 清单。

修正

  • packages/create-objectstack/README.md — 原 README 列出的模板(minimal-api/full-stack/plugin)与实现不符;改为真实模板注册表,补充 --skip-skills 选项与身份重写(namespace 前缀替换、AGENTS.md 生成)行为说明。

导航与交叉链接

  • 两个板块的 meta.json 加入新页面;getting-started/index.mdxdeployment/index.mdx 增加指向新页的链接。

验证

  • 新文档中的命令、标志、环境变量、端点均与源码核对:create-objectstack 模板注册表与重写逻辑、os start 的 flag/env 解析与默认 SQLite 路径(<home>/data/objectstack.db)、REST basePath + /v1 拼接、/api/v1/health/api/v1/ready 路由、OS_AUTH_SECRET 的 canonical 名称(AUTH_SECRET 为兼容别名)。
  • 仅文档与 README 变更,无运行时代码改动。

🤖 Generated with Claude Code

https://claude.ai/code/session_01Em3ky9uu6zw2cYzVhqCij2


Generated by Claude Code

… guides
Evaluated the docs from an external (npm-consumer) developer's perspective:
the getting-started section had no hands-on scaffold-to-API tutorial that
doesn't assume an AI agent or the monorepo, and the deployment section had
no self-hosting guide (only Vercel as a concrete target).
- getting-started/your-first-project: scaffold via create-objectstack,
generated layout and package surface, dev server, REST calls, manual
model edits, validate gate, artifact build
- deployment/self-hosting: systemd, Docker (multi-stage), Docker Compose
with Postgres, required secrets (OS_AUTH_SECRET/OS_SECRET_KEY), health
and readiness probes, reverse-proxy wiring, multi-node notes
- create-objectstack README: replace stale template list
(minimal-api/full-stack/plugin) with the real registry (blank + remote
todo/compliance/content/contracts/procurement) and document
--skip-skills and the identity-rewrite behavior
- nav meta.json + cross-links from section indexes
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Em3ky9uu6zw2cYzVhqCij2
@vercel

vercelBot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
specReadyReadyPreview, CommentJul 14, 2026 6:32am

Request Review

@github-actionsgithub-actionsBot added documentation Improvements or additions to documentation size/l labels Jul 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): create-objectstack.

5 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/ai/skills-reference.mdx(via create-objectstack)
  • content/docs/ai/skills.mdx(via create-objectstack)
  • content/docs/getting-started/your-first-project.mdx(via create-objectstack)
  • content/docs/plugins/packages.mdx(via create-objectstack)
  • content/docs/releases/v9.mdx(via create-objectstack)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

…le grammar)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Em3ky9uu6zw2cYzVhqCij2
@os-zhuang
os-zhuang marked this pull request as ready for review July 14, 2026 06:36
@os-zhuang
os-zhuang merged commit 04ce2db into mainJul 14, 2026
16 checks passed
@os-zhuang
os-zhuang deleted the claude/third-party-dev-docs-0t5256 branch July 14, 2026 06:37
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationImprovements or additions to documentationsize/l

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@os-zhuang@claude