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

@frontsail-ai/qr-mcp

v0.3.0

Published

MCP server that generates QR codes identical to qr-code-gen.frontsail.app

Readme

@frontsail-ai/qr-mcp

An MCP server that generates QR codes identical to the ones qr-code-gen.frontsail.app produces — same dot and corner styles, same palette, same transparent-background handling, same share links.

It shares its rendering logic with the web app rather than reimplementing it, so agent output cannot drift from what the site produces.

Setup

Add it to your MCP client's config:

{
  "mcpServers": {
    "qr-code-generator": {
      "command": "npx",
      "args": ["-y", "@frontsail-ai/qr-mcp"]
    }
  }
}

In Claude Code, one line does the same thing:

claude mcp add qr -- npx -y @frontsail-ai/qr-mcp

Requires Node 20+. The first run downloads roughly 80 MB of dependencies (jsdom, a native canvas, and an SVG rasterizer); subsequent runs use the npx cache.

Tools

generate_qr_code

Renders a QR code as SVG (default, 280px) or PNG (560px), returned inline or written to output_path.

{
  "content_type": "url", // url | email | phone | text | vcard
  "url": { "url": "example.com" }, // the object matching content_type
  "customization": {
    "foreground_color": "#1B1812",
    "foreground_color_2": "#2C4A8A", // second gradient stop
    "gradient_type": "linear-bl-tr", // none | linear-bl-tr | linear-tl-br | radial
    "background_color": "transparent", // a hex color, or "transparent"
    "dot_type": "rounded",
    "corner_square_type": "extra-rounded",
    "corner_dot_type": "dot",
    "logo": "/absolute/path/to/logo.png", // or a data: URI
  },
  "format": "svg", // svg | png
  "output_path": "/absolute/path/out.svg", // optional
}

Content shapes: url { url }, email { to, subject?, body? }, phone { number }, text { content }, vcard { firstName?, lastName?, phone?, email?, org?, title?, website? }.

create_share_link

Takes the same design inputs and returns a qr-code-gen.frontsail.app link that reopens the design in the web editor. The design travels in the URL fragment — nothing is stored server-side. Logos are excluded, matching the web app.

Output fidelity

  • SVG without a logo is byte-identical to the file the web app downloads, aside from an internal id counter with no rendered effect. A test in this repo enforces that against SVGs captured from the live site.
  • PNG and logo SVGs are the same design, not the same bytes. PNGs are rasterized with resvg rather than Chromium, and the library re-encodes logo images, so exact byte equality is not achievable. Ask for SVG when you need exactness.

Releasing

Releases are published by .github/workflows/release-mcp.yml when a qr-mcp-v* tag is pushed. There is no npm token anywhere in this repo — the workflow authenticates with npm Trusted Publishing over GitHub OIDC, and npm generates provenance attestations automatically.

  1. Bump the version in two placespackage.json and SERVER_VERSION in src/server.ts. The version an MCP client sees in the handshake comes from the constant, so a drifting one ships a package that misreports itself. A test pins them equal.
  2. Merge it. The workflow refuses to publish a tag whose commit is not reachable from master.
  3. Tag and push:
    git tag qr-mcp-v<version> && git push origin qr-mcp-v<version>

The workflow then verifies the tag is on master, checks the tag version against both constants, runs the package's tests against the packed artifact, rejects the release if the dry run emits any npm warn, publishes, and finally npxes the published version to confirm its handshake reports the right one. Every one of those gates exists because it was nearly missed by hand.

To exercise the gates without publishing — after changing the workflow, for instance — run it from the Actions tab via workflow_dispatch with an existing tag. It runs everything and publishes nothing.

Trusted publisher registration

One-time, on npmjs.com, under the package's Settings → Trusted Publisher. All fields are case-sensitive, and npm matches the workflow by filename only:

| Field | Value | | -------------------- | ------------------- | | Organization or user | frontsail-ai | | Repository | qr-code-generator | | Workflow filename | release-mcp.yml | | Environment | (leave empty) |

Renaming or moving the workflow file breaks publishing until this registration is updated to match.

Manual fallback

Only for registry emergencies — a broken OIDC exchange, or a release that cannot wait on GitHub Actions. It bypasses every gate above, so re-read them and check by hand.

From packages/mcp, on a checkout of merged master (npm publish packs whatever dist/ currently holds, so a feature-branch publish ships unreviewed code under an immutable version):

vp run test                                   # packs, then tests the packed artifact
npm publish --dry-run --access public         # must emit no `npm warn` lines
npm publish --access public --otp=<code>      # auth-and-writes 2FA requires a fresh code
git tag qr-mcp-v<version> && git push origin qr-mcp-v<version>
npx -y @frontsail-ai/qr-mcp@<version>         # handshake must report <version>

--access public is not optional for a scoped package, and --otp is what makes an unattended publish possible at all — without it npm falls back to a browser flow that needs a terminal.

License

MIT