@antelopejs/dms

中文文档
0.17.0发布于 2026/11/06Apache-2.0TypeScriptESM + CJS构建来源已验证近 30 天下载 1.1万

AntelopeJS DMS. Plug in your PostgreSQL, MongoDB or RethinkDB database and your coding agent builds a back office and analytics dashboard as typed TypeScript. Real-time updates on the data the DMS manages.

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

@antelopejs/dms

npm License Discord Documentation

Admin dashboards for AntelopeJS, declared in TypeScript on the backend.

Documentation · Modules · Frontend

The Helio dashboard of the demo template: KPI cards, a revenue chart and the period selector

What it does

  • Declares pages as TypeScript classes: forms, tables, charts and layouts are blocks the shared Vue renderer draws, with no Vue to write for standard screens.
  • Handles sign-in, members, roles and permissions down to each block, multi-tenancy and a SaaS mode.
  • Manages data through data controllers and table views, with file uploads, notifications and realtime updates.
  • Grows with installable modules: an AI assistant, a page builder, database and API consoles, automations, SaaS billing, translations, mailing, marketing analytics and a media library.
  • Ships Claude Code skills (dms, dms-best-practices, dms-pages…) so coding agents build pages the way the DMS expects.

Its public contracts live in a separate package, @antelopejs/interface-dms: modules import them from there, never from this runtime.

Install

For a new application, start from the template in the quick start below. To add the DMS to an existing AntelopeJS project, add the module and the dashboard's frontend loader:

ajs project modules add @antelopejs/dms
pnpm add -D @antelopejs/dms-frontend

The DMS also needs an API module, a module implementing the database interface, and an authentication module: see Installation. Its settings belong in the config block of @antelopejs/dms in antelope.config.ts (Configuration). In production, set clientBaseUrl and strong values for auth.jwtSecret, htmlRender.serviceSecret and frontend.bootstrapSecret (the DMS refuses to start without the first three), and use Redis for realtime across several backend instances.

Quick start

Create a project from the template-dms-demo template, which loads the DMS, its companion modules and Helio, a demo back office for a solar installer. It needs the Node.js and pnpm releases the template pins, and a MongoDB on localhost:27017.

npx @antelopejs/core project init my-app --template dms-demo
cd my-app
pnpm dev            # backend on http://localhost:5010

When the backend answers, start the dashboard in a second terminal, from the same folder:

pnpm frontend:dev   # dashboard on http://localhost:3001

Open the address that the backend logs after No owner exists yet, and create the first administrator. The Quickstart walks through each step. A page is a class whose static fields are blocks:

import { PageController, RegisterPage, pagesCategory } from "@antelopejs/interface-dms/page";
import { KpiCard } from "@antelopejs/interface-dms/base/kpi-card";

@RegisterPage()
export class SalesPage extends PageController("sales", {
  displayName: "Sales",
  icon: "i-ph-chart-line",
  category: pagesCategory,
}) {
  static revenue = KpiCard({ title: "Revenue", fetchUrl: "/api/sales/revenue" });
}

Compatibility

PackageSupportedTested with
@antelopejs/core>=1.20.0 <21.20.0
@antelopejs/interface-api>=0.2.0 <1.0.00.2.0
@antelopejs/interface-api-util>=0.3.0 <1.0.00.3.0
@antelopejs/interface-core>=0.4.0 <1.0.00.4.0
@antelopejs/interface-data-api>=0.6.0 <1.0.00.6.0
@antelopejs/interface-database>=0.3.0 <1.0.00.3.0
@antelopejs/interface-database-decorators>=0.2.0 <1.0.00.2.0
@antelopejs/interface-dms>=0.12.0 <0.13.00.12.0
@antelopejs/interface-dms-automation>=0.6.0 <1.0.00.6.0
@antelopejs/interface-email>=0.0.6 <1.0.00.0.6
@antelopejs/interface-file-storage>=0.1.4 <1.0.00.1.4
@antelopejs/interface-redis>=0.0.9 <1.0.00.0.9

Each DMS release declares the renderer releases it runs on in engines["@antelopejs/dms-frontend"] of its frontend module, and the frontend's compatibility table lists the renderer release line of each DMS release it covers. The DMS also runs embedded in an AdonisJS application: see Run the DMS inside AdonisJS.

Documentation

The runtime guides live in docs/. The canonical contract reference belongs to @antelopejs/interface-dms, not this runtime package.

The package ships the core Claude Code skills (dms, dms-auth, dms-best-practices, dms-module, dms-pages, dms-project) in skills/, declared under antelopeJs.skills; Install the plugin to use them.

Contributing

This package lives in the AntelopeJS/dms pnpm workspace, next to @antelopejs/interface-dms. Read CONTRIBUTING.md and the repository README for the development commands.

Third-party data

The package ships the DB-IP IP to Country Lite database (data/) to tell which country a sign-in came from. It is licensed under the Creative Commons Attribution 4.0 International License: IP Geolocation by DB-IP. pnpm country-database downloads the current edition; packing the package for a release runs it.

License

Apache-2.0

版本与发布记录

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

版本发布日期距今
0.17.0latest2026/11/06今天
0.16.22026/11/06今天
0.16.12026/11/051 天前
0.16.02026/11/051 天前
0.15.12026/11/032 天前
0.15.02026/11/024 天前

关于 @antelopejs/dms 的常见问题

@antelopejs/dms 是什么?

AntelopeJS DMS. Plug in your PostgreSQL, MongoDB or RethinkDB database and your coding agent builds a back office and analytics dashboard as typed TypeScript. Real-time updates on the data the DMS manages.

如何安装 @antelopejs/dms?

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

@antelopejs/dms 支持 TypeScript 吗?

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

@antelopejs/dms 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@antelopejs/dms 可以商用吗?

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

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

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

@antelopejs/dms 还在维护吗?

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