@antelopejs/dms-api
v0.6.4
Published
API console for the AntelopeJS DMS: API health, request logs, per-route statistics, inferred contracts and a request tester.
Readme
@antelopejs/dms-api
See whether your API is healthy, which routes fail or slow down and why, and test any route from the dashboard.
Try it in the live demo · Documentation · All modules
What it does
- Tells whether your API is healthy, since when and why not, with traffic, errors and the slowest routes.
- Captures every request of your project's routes with its error, timing, headers and bodies (size-capped and redacted).
- Lists every registered route with its statistics and a contract inferred from code and traffic.
- Sends test requests from a built-in tester, logged apart from real traffic.
- Applies its settings (watched routes, retention, captured headers, slow threshold) without a restart.
It is the dashboard for your API, not the HTTP server: the project still needs an API provider such as @antelopejs/api.
Install
Run the AntelopeJS CLI from the root of a project that already loads @antelopejs/dms:
ajs project modules add @antelopejs/dms-apiQuick start
The module works without configuration. Restart the backend, then the frontend, and open Modules → API (/modules/api). Review the configuration before capturing real traffic: request logs can hold application data.
To try it with sample traffic, clone this repository and run its playground:
pnpm install && pnpm dev # backend
pnpm frontend:dev # dashboard, in a second terminal
pnpm --dir playground traffic # a few hundred demo requeststemplate-dms-demo also loads the module.
Compatibility
| Package | Supported | Tested with |
| ------------------------------------------- | ----------------- | ----------- |
| @antelopejs/interface-api | >=0.2.0 <1.0.0 | 0.2.0 |
| @antelopejs/interface-api-util | >=0.3.0 <1.0.0 | 0.3.0 |
| @antelopejs/interface-core | >=0.4.0 <1.0.0 | 0.4.0 |
| @antelopejs/interface-database | >=0.3.0 <1.0.0 | 0.3.0 |
| @antelopejs/interface-database-decorators | >=0.2.0 <1.0.0 | 0.2.0 |
| @antelopejs/interface-dms | >=0.12.0 <1.0.0 | 0.12.0 |
| @antelopejs/interface-dms-automation | >=0.6.0 <1.0.0 | 0.6.0 |
The module also needs a DMS backend in a release that implements the @antelopejs/interface-dms range above, and the @antelopejs/dms-frontend renderer in the range its frontend module declares in engines["@antelopejs/dms-frontend"] of frontend-vue/package.json; the ajs dms CLI refuses to build it with a renderer outside that range. It runs on these providers:
- API provider:
@antelopejs/api. - Database: an
@antelopejs/interface-databaseimplementation, such as@antelopejs/mongodb.
Upgrading from 0.1? Read the FAQ.
Documentation
The guide's sources live in docs/. The package also ships the dms-api Claude Code skill in skills/, declared under antelopeJs.skills.
Contributing
Read CONTRIBUTING.md before opening a pull request. Use the pnpm version declared in package.json. The playground connects to MongoDB at mongodb://localhost:27017 unless MONGO_URL points elsewhere.
One root install includes the backend and shipped Vue module, retaining their separate lockfiles. The playground remains independent: run pnpm --dir playground install --ignore-workspace --frozen-lockfile before starting it. Use the root scripts below rather than recursive scripts: frontend build and typecheck need the playground or a generated Inertia workspace, and root checks already delegate to the Vue module.
pnpm install
pnpm dev # playground backend
pnpm frontend:dev # dashboard, in a second terminal
pnpm lint
pnpm typecheck
pnpm test # backend unit tests (tests/), then the frontend suite
pnpm knip- To build and typecheck the frontend module against the installed DMS, run
pnpm exec ajs dms verify-source -m ../frontend-vuefromplayground/, or setDMS_FRONTEND_WORKSPACEto the workspace generated byajs dms prepareand runpnpm --dir frontend-vue typecheck.
Part of AntelopeJS DMS
This module installs into AntelopeJS DMS, the open-source back office. Every module adds its pages to the same dashboard, behind the same sign-in and roles.
| Module | What it adds |
| ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| dms-builder | Edit pages, tables and data sources by clicking, as TypeScript that compiles |
| dms-ai | An assistant chat in the dashboard, on your own Claude Code or Codex |
| dms-database | Schemas, relation diagrams, a data browser and a query console |
| dms-api | API health, request logs, per-route statistics and a request tester |
| dms-automation | Node-graph automations on schedules, webhooks and DMS events, with a trace for every run |
| dms-mailing | E-mail templates in a block editor, versions, a send log and delivery metrics |
| dms-lang | Translation coverage, a translation matrix and a translation queue |
| dms-media | A media library with folders, per-folder permissions, image sizes and light editing |
| dms-saas | Self-service sign-up, plans that gate features, and Stripe billing |
| dms-marketing | Traffic, conversion funnels with A/B splits and click heatmaps, without cookies |
| dms-frontend | The ajs dms CLI, the Vue renderer and the SDK every frontend module builds on |
