@starcier/create-builder

中文文档
1.0.0发布于 2026/11/02MITES Module零依赖

Creates a Starcier prototype builder for a client: registers its tenant with the Starcier API and writes a repository with a starter design system. Run with npm create @starcier/builder.

原始使用文档
文档目录5 节
  1. Use
  2. Connection settings
  3. What it guarantees
  4. Options
  5. License

@starcier/create-builder

Creates a Starcier prototype builder for a client in one command: it registers the client's tenant with the Starcier API, then writes a repository with a starter design system, an example prototype, and the authoring tooling for coding agents. Comments, guided tours and sharing come from the @starcier/* packages, installed as dependencies.

Creating the tenant needs a Starcier staff account. Anyone can create the files alone with --offline.

Use

npm create @starcier/builder@next

It asks for the client's name, the tenant slug (suggested from the name) and the folder, then signs you in through your browser and creates the tenant. Pass anything up front as options, after --:

npm create @starcier/builder@next acme-builder -- --name "Acme" --slug acme

Until 1.0.0 is released, use @next as above.

Connection settings

These do not change between clients, so they are built in and you never type them. Override one only to point somewhere else, such as a local API, with an option or an environment variable:

VariableOptionWhat
STARCIER_API_URL--api-urlThe API's origin
STARCIER_AUTH0_DOMAIN--auth0-domainThe Auth0 tenant's domain
STARCIER_AUTH0_AUDIENCE--auth0-audienceThe API's audience
STARCIER_AUTH0_CLIENT_ID--auth0-client-idThe builders' single-page application, written into the builder's .env
STARCIER_AUTH0_CLI_CLIENT_ID--cli-client-idThe native application this command signs in with
STARCIER_TOKEN--tokenAn API access token, used instead of signing in

The built-in values point at production. Only STARCIER_API_URL differs between the environments — dev and production share one Auth0 tenant and one application — so a builder against dev is made by overriding that one variable.

Signing in. The command opens your browser and asks you to confirm a code. Pass --token instead, with an access token copied from the Starcier platform, where no browser can be opened.

What it guarantees

  • Nothing half-created. The files are prepared aside and moved into place only after the tenant exists. If the tenant cannot be created — not staff, slug taken, API unreachable — no folder is left behind.
  • A taken slug is never altered. You are asked for another one; without a terminal, the command stops.
  • The tenant is the client's identity, not their domain. The builder's address is set later, once it is deployed; the generated README explains the steps.

Options

Run npm create @starcier/builder@next -- --help for the full list.

License

MIT

版本与发布记录

@starcier/create-builder 共发布 4 个版本,首次发布于 2026/10/27;过去 12 个月发布了 4 个版本。

版本发布日期距今
1.0.0latest2026/11/021 天前
1.0.0-next.1next2026/10/277 天前
1.0.0-next.02026/10/277 天前
0.0.0-stage2026/10/277 天前

关于 @starcier/create-builder 的常见问题

@starcier/create-builder 是什么?

为客户端创建Starcier原型构建器:使用Starcier API注册其租户,并使用starter设计系统编写存储库。运行 npm create @starcier/builder.

如何安装 @starcier/create-builder?

在项目目录运行 npm install @starcier/create-builder,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 create-builder,可以用 npx create-builder 直接运行。

@starcier/create-builder 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/starcier__create-builder 是否存在。

@starcier/create-builder 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@starcier/create-builder 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@starcier/create-builder 可以商用吗?

@starcier/create-builder 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@starcier/create-builder 还在维护吗?

最新版本 1.0.0 发布于 2026/11/02(1 天前);至今共发布 4 个版本,其中过去 12 个月发布了 4 个;首次发布于 2026/10/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。