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

@9xlabs/paperclip-mantis-plugin

v0.1.5

Published

Synchronize MantisBT issues into Paperclip projects.

Readme

@9xlabs/paperclip-mantis-plugin

MantisBT connector plugin for Paperclip.

This repository is the 9xLabs–maintained home for the package (source, release, CI). The Paperclip core app and monorepo are upstream and are not developed here—install this plugin into any compatible Paperclip instance via npm or a local path.

This plugin helps operators:

  • connect a Paperclip instance to MantisBT using API token validation (secret ref),
  • map Mantis projects to Paperclip projects,
  • import and update Paperclip issues from Mantis (title, description, status where applicable),
  • import Mantis notes as Paperclip issue comments,
  • index Mantis media metadata into issue document mantis-media-index (file upload is disabled in compatibility mode for Paperclip 0.3.x),
  • run scheduled sync (sync.mantis-issues) plus manual sync from the project toolbar.

What this plugin includes

  • Worker + UI entrypoints (src/worker.ts, src/ui/index.tsx)
  • Mantis Sync settings page (base URL, token ref, mappings, advanced per-company options)
  • Project toolbar action for on-demand sync
  • Scheduled job: sync.mantis-issues (default poll cadence; respects configured sync interval in plugin state)
  • No separate agent tool surface in v1—the value is sync + UI; agents are unaffected unless you extend the package later.

Requirements

  • Paperclip runtime with plugin support
  • MantisBT REST API access and a Personal Access Token (or equivalent API token) stored as a Paperclip secret ref (mantisTokenRef)
  • Network path from the Paperclip host to your Mantis base URL (the host’s outbound HTTP rules apply)
  • Attachment upload is currently disabled in compatibility mode so this plugin can run on Paperclip 0.3.x
  • Media metadata is synchronized into issue document key mantis-media-index so agents can consume it through the documents API/SDK

Development

Clone this repo (not the full Paperclip monorepo). Dependencies resolve from the public npm registry (@paperclipai/plugin-sdk, etc.).

pnpm install
pnpm dev
pnpm dev:ui
pnpm test

Useful commands:

pnpm typecheck
pnpm build
pnpm build:rollup

Install into local Paperclip

curl -X POST http://127.0.0.1:3100/api/plugins/install \
  -H "Content-Type: application/json" \
  -d '{"packageName":"/absolute/path/to/paperclip-mantis-plugin","isLocalPath":true}'

Or from the CLI (with PAPERCLIP_API_URL pointing at your instance):

pnpm paperclipai plugin install /absolute/path/to/paperclip-mantis-plugin --local

From npm (after publish):

pnpm paperclipai plugin install @9xlabs/paperclip-mantis-plugin

Configuration flow

  1. Open Paperclip → SettingsPluginsMantis Sync
  2. Set mantisBaseUrl (root URL of your Mantis instance)
  3. Validate and save mantisTokenRef (Paperclip secret reference for the Mantis API token)
  4. Add project mappings: Mantis project → Paperclip project (per company)
  5. Optionally tune syncIntervalMinutes and per-company advanced options (open-only, assignee filter, default status/agent, ignored reporters)
  6. Save settings; the scheduled job and toolbar action will use the resolved configuration

Upgrading

Paperclip exposes POST /api/plugins/:pluginId/upgrade (instance admin) for npm upgrades; the board UI may surface the same flow. You can also install a newer npm version explicitly:

pnpm paperclipai plugin install @9xlabs/paperclip-mantis-plugin@<version>

Because npm forbids re-publishing the same version, each release needs a new semver in package.json.

npm release

Package: @9xlabs/paperclip-mantis-plugin

Workflow: .github/workflows/publish.yml

  • Trigger: GitHub Release published or manual workflow_dispatch
  • Required repo secret: NPM_TOKEN
  • Publish command:
pnpm publish --no-git-checks --access public --registry https://registry.npmjs.org/

Prepublish validation:

pnpm prepublishOnly

Which runs:

pnpm typecheck && pnpm test

prepack runs pnpm build to emit dist/ before the tarball is packed.

Troubleshooting

  • Sync does nothing: confirm project mappings exist and the Mantis token is valid for the projects you mapped.
  • Notes import but attachments do not: expected on compatibility builds of this plugin for Paperclip 0.3.x; file uploads are intentionally skipped and media is indexed into mantis-media-index.