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

@mercury-fw/plugin-jira

v0.6.1

Published

Gives a [Mercury](https://github.com/lucabro81/mercury-fw) agent Jira, through the `jira` CLI: searching with JQL, reading an issue and its transitions, finding people and projects, creating issues, moving and assigning them, commenting (mentions included

Readme

@mercury-fw/plugin-jira

Gives a Mercury agent Jira, through the jira CLI: searching with JQL, reading an issue and its transitions, finding people and projects, creating issues, moving and assigning them, commenting (mentions included), and deleting one (only after the user confirms it with the token Mercury hands back). The pinned jira binary downloads when the package installs, so nothing else needs installing.

bun add @mercury-fw/plugin-jira

An app scaffolded with it already has all of this. By hand:

  • list it in trustedDependencies in the app's package.json, or Bun skips the install script that downloads the binary;
  • set JIRA_SITE_URL (https://<site>.atlassian.net), which the issue links in search results point to. It's required: without it the plugin doesn't load, and the log says so at startup.

The plugin hands search results over as a typed list (JiraDisplays["issue-list"]: key, summary, status, url), and the app decides how it reads with @mercury-fw/formatter:

import { formatterPlugin, formatter } from "@mercury-fw/formatter";
import { jiraPlugin, type JiraDisplays } from "@mercury-fw/plugin-jira";

const jiraIssueLine = (issue: JiraDisplays["issue-list"]) =>
  `${issue.key} ${issue.status ? `[${issue.status}] ` : ""}${issue.summary}\n${issue.url}`;

// in mercury.config.ts
plugins: [
  formatterPlugin(jiraPlugin, formatter<JiraDisplays>({
    "issue-list": { item: jiraIssueLine, empty: "No matching issues." },
  })),
],

Credentials

The plugin acts as the person: every command runs with the Jira account of whoever Mercury is talking to, so they see and change exactly what that account can, and currentUser() in JQL is them. On the terminal (mfw repl) there's no person, and commands run as the app's Service Account.

The CLI keeps every login under ~/.config/jira-cli (one folder per person, next to the Service Account's), and the plugin declares that folder in its package.json (mercury.cliCredentials) with the commands that set it up. Two things are set up once, inside the app's container, pasting each credential's client id and secret when the CLI asks (the jira CLI's README has the steps on Atlassian's side):

  • the Service Account, created by an org admin in admin.atlassian.com (Directory → Service accounts, an OAuth 2.0 credential with the read:jira-work, read:jira-user, write:jira-work scopes): what the terminal runs as;
  • the 3LO app people log in through, from developer.atlassian.com (Resource-level, the same scopes, sharing enabled under Distribution), with <HTTP_SURFACE_PUBLIC_URL>/login/callback among its callback URLs.
mfw credentials setup @mercury-fw/plugin-jira
mfw credentials setup @mercury-fw/plugin-jira --user-app
mfw credentials check @mercury-fw/plugin-jira

People log in on their own: the first time someone asks for something in Jira, Mercury answers that they need to log in, and the HTTP channel shows them the link (it needs HTTP_SURFACE_PUBLIC_URL). After the consent they're sent back to Mercury and ask again; Mercury never falls back to the Service Account for them.

Coming from a version before 0.5.0: the CLI is now 2.x, which keeps the Service Account and each person apart and refuses the old login folder, so the env file's JIRA_CLI_CONFIG_TAR_B64 isn't read any more. Remove it, then run the setup above once.

MIT