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

@mandaitor/taxonomy-core

v0.3.0

Published

Core types, interfaces, validation, and registry for Mandaitor industry taxonomies

Readme

@mandaitor/taxonomy-core

The core foundation for Mandaitor industry taxonomies. This package provides shared TypeScript types, validation logic, and the central registry for loading and evaluating domain-specific actions, resources, and constraints within the Mandaitor delegation ecosystem.

Overview

Mandaitor uses industry-specific taxonomies to define the vocabulary of authority. Instead of generic "read" and "write" permissions, a construction agent uses construction.validation.approve, while a healthcare agent uses healthcare.prescription.issue.

The @mandaitor/taxonomy-core package provides the underlying engine that powers these vocabularies. It defines the structure of a taxonomy, provides the registry to load them at runtime, and includes the validation engine that checks whether an action attempt matches a defined scope pattern.

Installation

npm install @mandaitor/taxonomy-core

Core Concepts

| Concept | Description | | :--- | :--- | | Taxonomy | A domain-specific vocabulary of actions, resources, constraints, and templates | | Action | A specific operation an agent can perform (e.g., aviation.dispatch.create_release) | | Resource Pattern | A structured identifier for the target of an action (e.g., project:proj_1/*) | | Constraint Template | Pre-defined boundaries for authority (e.g., maximum transaction amount) | | Semantic Graph | Relationships between actions used for drift detection and anomaly scoring |

Usage

Registering Taxonomies

Before you can validate actions or scopes, you must register the relevant industry taxonomies with the core registry.

import { registerTaxonomy, taxonomyRegistry } from "@mandaitor/taxonomy-core";
import { aviationTaxonomy } from "@mandaitor/taxonomy-aviation";

// Register the aviation taxonomy
registerTaxonomy(aviationTaxonomy);

// Retrieve it later
const taxonomy = taxonomyRegistry.get("aviation");
console.log(`Loaded ${taxonomy.metadata.name} v${taxonomy.metadata.version}`);

Validating Scope

The core package provides the validation engine that determines whether a specific scope declaration is valid according to the taxonomy rules.

import { validateScope } from "@mandaitor/taxonomy-core";

const result = validateScope(taxonomy, {
  actions: ["aviation.dispatch.create_release"],
  resources: ["aviation:flight:LH401/*"],
  effect: "ALLOW",
});

if (!result.valid) {
  console.error("Invalid scope:", result.errors);
}

Semantic Graph Analysis

For advanced use cases like drift detection, the core package exposes the SemanticGraphEngine, which analyzes the relationships between actions.

import { SemanticGraphEngine } from "@mandaitor/taxonomy-core";

const engine = new SemanticGraphEngine(taxonomy.semanticGraph);

// Calculate how semantically distant an attempted action is from the expected scope
const distance = engine.semanticDistance(
  "aviation.maintenance.defer_defect", 
  "aviation.dispatch.create_release"
);

console.log(`Semantic distance: ${distance.score}`);

Package Contents

The published package exposes the compiled runtime and type definitions from dist/. The source of truth for the monorepo, contribution workflow, and cross-package release process lives in the repository root at https://github.com/C4RR13P0TT3R/mandaitor-taxonomies.

License

Apache-2.0