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

@plurnk/plurnk-mimetypes-text-gherkin

v1.3.1

Published

text/x-gherkin (Gherkin/.feature BDD) mimetype handler for plurnk-service. Backed by @cucumber/gherkin, the cucumber org's reference parser.

Readme

@plurnk/plurnk-mimetypes-text-gherkin

text/x-gherkin (Gherkin / .feature BDD) mimetype handler for the plurnk ecosystem. Lean-library tier, backed by @cucumber/gherkin — the cucumber org's reference parser.

why @cucumber/gherkin

Gherkin has no usable tree-sitter grammar, so Tiers 1–3 (clean WASM / dirty WASM / antlr4ng) don't apply. The honest backend is the format's own reference parser: @cucumber/gherkin is pure JS/ESM, parses synchronously (no WASM init), and natively handles every Gherkin construct including localization (80 dialects via # language: xx). The dep precedent is text-pdf's pdfjs — a focused, canonical library beats a hand-rolled scanner once the parse surface (docstrings, data tables, outlines, dialects) gets non-trivial.

what it emits

extractRawMimeSymbol[] with 1-indexed line / endLine / column. The AST carries start locations only; endLine is derived as the deepest descendant line (docstrings reach their closing delimiter, tables reach their last row).

| construct | kind | name | container | |---|---|---|---| | Feature | module | feature name | — (top-level) | | Rule | module | rule name | feature name | | Scenario / Scenario Outline | function | scenario name | feature or feature.rule | | Background | function | the keyword (Background) | feature or rule path | | step | field | "{keyword} {text}" (e.g. Given a paid invoice) | dotted scenario path | | Examples: block | field | Examples: {name} (or Examples) | the outline's path |

container is the dot-joined path of enclosing named symbols (e.g. a step under a rule scenario carries Feature.Rule.Scenario). Tags (@smoke) are dropped from symbols — they're render noise; leave them to query.

Localization works for free: keyword extraction reads the parsed keyword text, so a # language: fr file surfaces Fonctionnalité / Scénario / Soit … keywords without special handling.

Malformed .feature input → extractRaw returns [] (mirrors the AntlrExtractor catch-to-empty policy; agents see malformed input rather than an error).

refs-free

This handler emits no references. Gherkin steps bind to step-definitions living in other codebases (Java/Ruby/JS) via regex or cucumber-expressions — nothing in a .feature corpus is name-joinable in-corpus, so there is no honest code-graph edge to emit. References are a code-graph concept; this format has none to offer.

license

MIT.