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

@buildtovalue/sfeel

v1.0.0

Published

Minimal S-FEEL subset parser + evaluator for decision tables (Handoff 9 SF-1): input unary tests (comparisons, ranges, value lists, not(), '-'), literal outputs, number/string/boolean, hit policies U and F. Everything outside the documented subset returns

Downloads

196

Readme

@buildtovalue/sfeel

Minimal S-FEEL subset parser + evaluator for decision tables (Handoff 9 §5). Serves the token simulator (Handoff 7 — businessRuleTask routes through real decision tables) and the DMN editor (Handoff 5 — ⚠ "não-simulável" cell markers) without importing either: the package operates on plain string cells plus a {variable: value} context and has zero dependencies, zero imports from the ecosystem.

The subset (supported)

| Construct | Example | |---|---| | Comparisons | < 5, <= 5, > 5, >= 5, = "gold" | | Ranges (incl./excl./mixed) | [1..10], ]1..10[, [1..10[, ]1..10] | | Value lists (implicit OR) | "a", "b" · 1, 2, 3 · < 3, > 10 | | List negation | not("a", "b") | | Irrelevant | - (or an empty cell) | | Types | number, string, boolean | | Hit policies | U (Unique), F (First) |

Outputs are literals only (number, "string", boolean).

Explicitly excluded (cerca §1.6)

Function invocation (date(), duration(), …), arithmetic in cells, for/some/every, nested contexts, date/time/duration types and literals, non-literal output expressions, identifier references in cells, and evaluation of the A/P/R/O/C hit policies (they remain editor metadata — registered in pendencias.md).

Honesty contract

evaluate(table, context) returns exactly one of:

  • { result } — the matched rule's outputs (or null when no rule matches);
  • { nonSimulable: { cell, reason } } — a declared failure naming the offending cell and why: a construct outside the subset, a malformed cell, a missing input variable, a type mismatch, or a Unique-hit-policy violation (two rules matching).

There is no third, silent state — a cell the package cannot evaluate correctly is never evaluated at all. checkTable / checkUnaryCell / checkOutputCell expose the same verdicts statically for editor feedback before simulation.

Input-column expressions are used verbatim as context keys — they are not evaluated (an input expression that needs evaluation is outside the subset).