npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@antelopejs/interface-dms-builder

v0.4.1

Published

AntelopeJS interface for the DMS builder: create and edit pages, blocks, resources and queries in a DMS project from another module.

Readme

@antelopejs/interface-dms-builder

The AntelopeJS interface that edits the pages, blocks, resources and queries of a DMS project from code.

What it does

  • Creates and edits pages, categories and their block trees with operations such as CreatePage, AddBlock, ConfigureBlock, MoveBlock and SetPageBlocks.
  • Generates resources, each a Table, a DataController and a model, and edits their fields.
  • Compiles query templates into a model method and a page route, so a card gets a number without hand-written code.
  • Reports every block type and DataType the builder can write, with a schema for its options (GetCatalog).
  • Returns every mutation as an OpResult. It holds the files changed on success, and a typed error otherwise.

Every operation is an InterfaceFunction routed to @antelopejs/dms-builder. That module parses the project, applies the edit as an AST rewrite, and writes only if the project still typechecks.

Install

Add the interface to the module that calls the builder.

pnpm add @antelopejs/interface-dms-builder

Quick start

The following code creates a page and puts a KPI card on it.

import { AddBlock, CreatePage } from "@antelopejs/interface-dms-builder";

const page = await CreatePage({
  name: "revenue",
  displayName: "Revenue",
  category: "pages",
  icon: "i-ph-chart-line",
});
if (!page.ok) {
  throw new Error(`could not create the page: ${page.error.code}`);
}

const block = await AddBlock({
  page: page.data.ref,
  name: "total",
  type: "KpiCard",
  config: { title: "Total revenue", icon: "i-ph-currency-eur" },
});
if (!block.ok) {
  throw new Error(`could not add the block: ${block.error.code}`);
}

Compatibility

The interface declares this peer dependency:

| Package | Supported | Tested with | | ---------------------------- | ---------------- | ----------- | | @antelopejs/interface-core | >=0.2.4 <1.0.0 | 0.4.0 |

The @antelopejs/dms-builder module implements this interface. The @antelopejs/interface-dms-builder row in the compatibility block of the module README gives the interface range each module release implements. The implementation is not a peer dependency of the interface package. It runs in development only, unless its api.enabled option turns it on.

Documentation

Contributing

This package lives in the AntelopeJS/dms-builder pnpm workspace, next to the module that implements it. Read CONTRIBUTING.md and the repository README for the development commands. Release this package before the module that implements it.

License

Apache-2.0