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

@emdash-cms/marketplace

v0.0.1

Published

Plugin marketplace Worker for EmDash CMS

Readme

@emdash-cms/marketplace

Standalone Cloudflare Worker that hosts the EmDash plugin marketplace — discovery, publishing, and moderation.

Development

pnpm dev        # starts wrangler dev server on :8787
pnpm test       # runs vitest

Requires an AI binding (wrangler.jsonc has it configured). Code and image audits run on Workers AI.

Manual audit testing

The /api/v1/dev/audit endpoint (localhost only) runs the code + image audit pipeline without auth or DB writes. Use it to evaluate AI model accuracy against the fixture corpus.

Using the test script

# Run a single fixture
tests/fixtures/audit/test-audit.sh tests/fixtures/audit/prompt-injection

# Against a different host
tests/fixtures/audit/test-audit.sh tests/fixtures/audit/data-exfiltration http://localhost:8787

The script tars the fixture directory and POSTs it as a multipart bundle. Output is the raw audit JSON.

Using curl directly

Tarball mode (full bundle with manifest, code, and images):

tar -czf /tmp/bundle.tar.gz -C tests/fixtures/audit/crypto-miner .
curl -s -X POST http://localhost:8787/api/v1/dev/audit -F "bundle=@/tmp/bundle.tar.gz" | jq

JSON mode (code only, no manifest required):

curl -s -X POST http://localhost:8787/api/v1/dev/audit \
  -H "Content-Type: application/json" \
  -d '{"backendCode": "const x = eval(\"1+1\");"}' | jq

Running all fixtures

for d in tests/fixtures/audit/*/; do
  echo "=== $(basename "$d") ==="
  tests/fixtures/audit/test-audit.sh "$d"
  echo
done

Compare the verdict and riskScore in each response against the fixture's expected.json to evaluate model accuracy.

Fixture format

Each fixture in tests/fixtures/audit/ is a directory containing:

| File | Required | Purpose | | ------------------- | -------- | ----------------------------------- | | manifest.json | yes | Plugin manifest | | backend.js | yes | Backend code (primary audit target) | | admin.js | no | Admin UI code | | icon.png | no | Plugin icon (triggers image audit) | | screenshots/*.png | no | Screenshots (trigger image audit) | | expected.json | yes | Expected verdict, score, categories |

expected.json shape:

{
  "verdict": "pass" | "warn" | "fail",
  "minRiskScore": 50,
  "maxRiskScore": 10,
  "categories": ["data-exfiltration", "obfuscation"]
}

minRiskScore and maxRiskScore are optional bounds. categories lists the finding categories the model should detect.