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

dmn-elements

v0.0.2

Published

Executable decision elements based on DMN 1.3

Readme

dmn-elements

BuildCoverage Status

Executable decision elements based on DMN 1.3.

Walks the decision requirement graph (DRG) and evaluates decisions — decision tables and literal expressions — standing on maintained upstream pieces:

  • dmn-moddle parses DMN XML (host-side, dev dependency)
  • feelin evaluates FEEL expressions and unary tests (peer dependency)

Sibling of bpmn-elements, sharing its idiom: isomorphic, tree-shakeable, minimal runtime dependencies.

Documentation

  • APIDefinition, environment settings, and extensions
  • Examples — runnable examples

Debug

Element execution is logged through the pluggable Logger environment option — silent by default. To follow the execution tree, pass a debug-backed logger:

import Debug from 'debug';
import { Context, Definition, Environment } from 'dmn-elements';

const environment = new Environment({
  Logger(scope) {
    return {
      debug: Debug(`dmn-elements:${scope}`),
      error: Debug(`dmn-elements:error:${scope}`),
      warn: Debug(`dmn-elements:warn:${scope}`),
    };
  },
});

Run with DEBUG=dmn-elements:*:

dmn-elements:dmn:definitions <membershipDefinitions> run decision <fee>
dmn-elements:dmn:definitions <fee> requires decision <category>
dmn-elements:dmn:definitions <category> requires input data <ageInput>
dmn-elements:dmn:inputdata <ageInput> evaluate
dmn-elements:dmn:decision <category> evaluate
dmn-elements:dmn:decisiontable <categoryTable> 1 of 2 rules matched: adultRule, resolving hit policy UNIQUE
dmn-elements:dmn:definitions <category> completed
dmn-elements:dmn:definitions <fee> bound <Category> from decision <category>
dmn-elements:dmn:decision <fee> evaluate
dmn-elements:dmn:decisiontable <feeTable> 1 of 2 rules matched: adultFeeRule, resolving hit policy UNIQUE
dmn-elements:dmn:definitions <fee> completed

DMN conformance

Checked against the DMN TCK (July 2026):

  • Compliance level 2: 100% (126/126 assertions)
  • Compliance level 3: 84.3% (2840/3369)
  • Overall: 84.9% (2966/3495)

All boxed expressions of DMN 1.3 evaluate: decision tables, literal expressions, contexts, invocations, relations, lists, and function definitions — plus decision services, business knowledge models, item definitions, and multi-model imports. The remaining gap is dominated by FEEL edge-case semantics owned by feelin (arithmetic corner cases, instance of, temporal functions) and DMN 1.4+ boxed expressions not yet in dmn-moddle's grammar.

The full per-case report lives in scripts/tck/REPORT.md — regenerate it with npm run test:tck (it tells you how to fetch the TCK test cases on first run).

Ecosystem

  • bpmn-elements — isomorphic BPMN 2.0 execution elements, the sibling this project mirrors
  • bpmn-engine — BPMN 2.0 execution engine
  • bpmn-middleware — Express middleware exposing the engine over HTTP. Holds example to combine dmn-elements with BPMN execution engine