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

@bpmn-sdk/feel

v0.0.8

Published

Complete FEEL (Friendly Enough Expression Language) implementation — parser, evaluator, and highlighter

Readme

npm license typescript

Documentation · GitHub · Changelog


Overview

@bpmn-sdk/feel is a complete implementation of the FEEL expression language used in DMN decision tables and BPMN condition expressions. It includes a tokenizer, recursive-descent parser, AST evaluator, formatter, and syntax highlighter.

Features

  • Full FEEL grammar — arithmetic, comparisons, logic, function calls, paths, filters
  • Temporal types — date, time, datetime, duration (ISO 8601, full spec compliance)
  • Unary tests — DMN input expression syntax (> 5, "gold", "silver", [1..10])
  • Built-in functions — 50+ standard FEEL functions (string, list, numeric, date, context)
  • Range expressions[1..10], (0..1), [today..end]
  • Context literals{ key: value, nested: { x: 1 } }
  • Syntax highlighting — semantic token classification for editors
  • Zero dependencies

Installation

npm install @bpmn-sdk/feel

Quick Start

Evaluate an expression

import { parseExpression, evaluate } from "@bpmn-sdk/feel"

const parsed = parseExpression("amount * 1.2 + fee")
if (!parsed.errors.length) {
  const result = evaluate(parsed.ast!, { amount: 100, fee: 5 })
  console.log(result) // 125
}

Evaluate unary tests (DMN input expressions)

import { parseUnaryTests, evaluateUnaryTests } from "@bpmn-sdk/feel"

// Does input value match any listed condition?
const parsed = parseUnaryTests('"gold","silver"')
const matches = evaluateUnaryTests(parsed.ast!, "gold", { /* context */ })
console.log(matches) // true

Syntax highlighting

import { highlightFeel } from "@bpmn-sdk/feel"

const tokens = highlightFeel('if x > 10 then "high" else "low"')
for (const token of tokens) {
  console.log(token.type, token.value) // keyword, number, string, ...
}

API Reference

| Export | Description | |--------|-------------| | parseExpression(src) | Parse a FEEL expression → ParseResult | | parseUnaryTests(src) | Parse unary tests → ParseResult | | evaluate(ast, ctx) | Evaluate a parsed expression | | evaluateUnaryTests(ast, input, ctx) | Test input against unary tests | | formatFeel(src) | Pretty-print a FEEL expression | | highlightFeel(src) | Tokenize with semantic types for highlighting | | tokenize(src) | Raw token stream | | annotate(src) | Full AST with position metadata |

ParseResult

interface ParseResult {
  ast: FeelNode | null
  errors: ParseError[]   // { message, position }
}

Related Packages

| Package | Description | |---------|-------------| | @bpmn-sdk/core | BPMN/DMN/Form parser, builder, layout engine | | @bpmn-sdk/canvas | Zero-dependency SVG BPMN viewer | | @bpmn-sdk/editor | Full-featured interactive BPMN editor | | @bpmn-sdk/engine | Lightweight BPMN process execution engine | | @bpmn-sdk/plugins | 22 composable canvas plugins | | @bpmn-sdk/api | Camunda 8 REST API TypeScript client | | @bpmn-sdk/ascii | Render BPMN diagrams as Unicode ASCII art | | @bpmn-sdk/profiles | Shared auth, profile storage, and client factories for CLI & proxy | | @bpmn-sdk/operate | Monitoring & operations frontend for Camunda clusters |

License

MIT © bpmn-sdk