@antelopejs/dms-frontend

中文文档
0.10.0发布于 2026/11/05Apache-2.0TypeScriptCommonJS构建来源已验证近 30 天下载 9205

Frontend-agnostic loader for AntelopeJS DMS, shipping the Vue 3 renderer (Vite, Inertia, SSR)

原始使用文档
文档目录7 节
  1. What it does
  2. Install
  3. Quick start
  4. Compatibility
  5. Documentation
  6. Contributing
  7. License
AntelopeJS DMS

@antelopejs/dms-frontend

npm License Discord Documentation

The frontend of the AntelopeJS DMS: the ajs dms CLI, the Vue renderer and the frontend-module SDK.

Documentation · DMS · Modules

The browser talks to the frontend server, which renders pages, answers module routes and proxies declared backend prefixes to the DMS backend, while the development and prepare commands fetch the manifest and write a workspace

What it does

  • Reads the frontend modules of an AntelopeJS project, materializes them into a generated workspace, builds it, and runs the frontend server.
  • Renders the dashboard with Vue, Vite, Inertia and server-side rendering.
  • Keeps the backend token on the server. The browser only holds a sealed, HttpOnly session cookie, and the server adds the session's token to each request it proxies to a declared backend prefix.
  • Lets a module extend the dashboard with pages, components and plugins (dms.frontend.ts), server routes (dms.server.ts) and build-time declarations (dms.frontend.build.ts).
  • Serves development with hot reload, and production with pre-compressed assets.

Install

Add the package next to @antelopejs/core. The core ajs command runs it as ajs dms.

pnpm add -D @antelopejs/core @antelopejs/dms-frontend

Quick start

In a DMS project started with ajs project dev -w, serve the dashboard with hot reload:

pnpm exec ajs dms dev

For production, build from the project root, without the backend. Then start the frontend server with DMS_SESSION_SECRET and the backend's secrets set:

pnpm exec ajs dms build
pnpm exec ajs dms start -b https://api.example.com -p 3001

ajs dms --help lists every command, and ajs dms help environment lists every environment variable.

Compatibility

PackageSupportedTested with
@antelopejs/core>=1.16.0 <21.20.0

Each DMS release declares the renderer releases it runs on in engines["@antelopejs/dms-frontend"] of its frontend module's package.json. The ajs dms CLI refuses to build a module whose range excludes the installed renderer. To find the renderer releases that match a DMS release, read that engines range in the installed DMS frontend module, as the Compatibility section of the introduction explains. The renderer needs the @antelopejs/core range in the table above, and the engines field of its package.json sets the Node.js versions it runs on.

Documentation

The guide's sources live in docs/. The package also ships the dms-frontend skill for coding agents in skills/, declared under antelopeJs.skills.

Contributing

Read CONTRIBUTING.md before opening a pull request.

pnpm install
pnpm build
pnpm lint          # oxlint, interface ranges, the docs reference check and the source checks
pnpm typecheck
pnpm test

pnpm docs:reference regenerates the environment-variable table of docs/4.configuration.md from the list ajs dms help environment prints. pnpm lint fails when the table is stale.

License

Apache-2.0

版本与发布记录

@antelopejs/dms-frontend 共发布 54 个版本,首次发布于 2026/09/17;过去 12 个月发布了 54 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.10.0latest2026/11/051 天前
0.9.32026/11/032 天前
0.9.22026/11/015 天前
0.9.12026/10/288 天前
0.9.02026/10/2413 天前
0.8.02026/10/2314 天前

关于 @antelopejs/dms-frontend 的常见问题

@antelopejs/dms-frontend 是什么?

Frontend-agnostic loader for AntelopeJS DMS, shipping the Vue 3 renderer (Vite, Inertia, SSR)

如何安装 @antelopejs/dms-frontend?

在项目目录运行 npm install @antelopejs/dms-frontend,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@antelopejs/core(>=1.16.0 <2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 ajs-dms,可以用 npx ajs-dms 直接运行。

@antelopejs/dms-frontend 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@antelopejs/dms-frontend 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@antelopejs/dms-frontend 需要什么版本的 Node.js?

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

@antelopejs/dms-frontend 可以商用吗?

@antelopejs/dms-frontend 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@antelopejs/dms-frontend 的下载量有多少?

根据 npm 官方下载统计,@antelopejs/dms-frontend 在 2026/10/06 – 2026/11/04 这 30 天内被下载 9,205 次,日均约 307 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@antelopejs/dms-frontend 还在维护吗?

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