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

@mifort-solutions/report-issue

v1.0.0

Published

In-page Ctrl+Q bug reporter — custom right-click menu with text report, screenshot annotator, screen recorder and an environment block, behind a required configuration seam (submit endpoint, build identity, upload limits, analytics). Framework-agnostic Re

Readme

@mifort-solutions/report-issue

In-page Ctrl+Q bug reporter for React 19 apps — a custom right-click menu that opens a text report, a Lightshot-style screenshot annotator, a screen recorder, or an "About this page" panel, with a browser/OS/environment block auto-appended to every report.

Framework-agnostic (no Next.js coupling): panels lazy-load via React.lazy, and every app-specific concern (submit endpoint, build identity, upload limits, analytics) is injected through a required config prop — the package ships no app-specific defaults.

Install

npm install @mifort-solutions/report-issue

Peer deps: react and react-dom ^19. The package brings its own lucide-react, html2canvas, clsx, and tailwind-merge.

Usage

import { ReportIssue } from '@mifort-solutions/report-issue';

<ReportIssue
  config={{
    submitEndpoint: '/api/report', // where the multipart report is POSTed
    appVersion: '1.2.3', // shown in the environment block / About panel
    appCommit: 'abc1234', // short SHA, or '' when unavailable
    uploadLimits: {
      maxFiles: 5,
      maxFileBytes: 10 * 1024 * 1024,
      maxTotalBytes: 25 * 1024 * 1024,
      acceptedTypes: ['image/png', 'image/jpeg', 'application/pdf'],
      acceptHint: '.png, .jpg, .pdf',
    },
    onTrack: (action, params) => {}, // analytics sink — pass a no-op to disable
  }}
/>;

config is required; omitting it (or any field) is a type error. Mount it once, near the root, so the Ctrl+Q shortcut is available on every page.

Next.js (App Router) — Server Component layouts

onTrack is a function, which cannot cross the Server→Client boundary as a prop. Mount the widget through a thin client wrapper:

// app/ReportIssueMount.tsx
'use client';
import { ReportIssue } from '@mifort-solutions/report-issue';
// …import your analytics + config…
export function ReportIssueMount() {
  return <ReportIssue config={{ /* … */ }} />;
}

…then render <ReportIssueMount /> from your Server Component layout.tsx.

Styling — required Tailwind tokens (peer requirement)

The package ships Tailwind class strings, not CSS. Your app's Tailwind build must (1) scan the package and (2) define the design tokens below, or the widget renders unstyled.

1. Add the package to your content globs:

// tailwind.config.ts
content: [
  './src/**/*.{js,ts,jsx,tsx,mdx}',
  './node_modules/@mifort-solutions/report-issue/dist/**/*.{js,mjs}',
];

2. Define these tokens in theme.extend (colors / shadow / radius):

| Token | Used for | | -------------------- | --------------------------------- | | brand (+ 50, dark) | accent, CTAs, indicator dot | | ink (+ muted, soft) | text | | line | borders / dividers | | surface | muted backgrounds | | shadow-card-hover | dialog / menu elevation | | rounded-btn | button radius |

(Standard Tailwind utilities — red-600, gray-300, etc. — are used as-is.)

What it sends

submitReport POSTs multipart/form-data to config.submitEndpoint:

| field | notes | | ---------------------------------- | -------------------------------------------------- | | message | description + appended environment block | | url | page URL | | selector, elementText, email | optional | | files | screenshot / recording / attachments |

Your endpoint owns validation, storage, and notifications, and should return { ok: boolean, message?: string }. The package is backend-agnostic.

Notes

  • Lazy-loaded: visitors who never open report mode download none of the panel code or html2canvas — each panel is a separate chunk fetched on first use.
  • SSR-safe: the widget is 'use client' and guards every window/navigator access.
  • The report UI carries data-report-ui (excluded from screenshots) and mifort-widget="ReportIssue".

License

MIT