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

goodcraft-jot

v0.0.0

Published

A drop-in feedback widget for web applications. Collects bug reports and feature requests with automatic screenshot capture, system info, console error collection, and submits them as Linear issues.

Readme

@goodcraft/feedback-widget

A drop-in feedback widget for web applications. Collects bug reports and feature requests with automatic screenshot capture, system info, console error collection, and submits them as Linear issues.

Architecture

┌─────────────────────┐     ┌──────────────────────┐     ┌─────────────────────┐
│  feedback-widget-    │     │  feedback-widget-     │     │  feedback-widget-   │
│  core                │────▶│  react                │     │  nextjs             │
│  Modal UI, capture,  │     │  React components,    │     │  API handler,       │
│  system info, errors │     │  hooks, context       │     │  Linear, Bunny CDN  │
└─────────────────────┘     └──────────────────────┘     └─────────────────────┘
        Client                      Client                       Server

Core renders a framework-agnostic modal with screenshot capture, error collection, and system info gathering. React wraps core in React components and context. Next.js provides the server-side API route handler that validates submissions, uploads screenshots to Bunny CDN, and creates Linear issues.

Quick Start

1. Install

# React / Next.js
pnpm add @goodcraft/feedback-widget-react @goodcraft/feedback-widget-nextjs

2. Add the widget to your layout

// app/layout.tsx
import { FeedbackWidget } from '@goodcraft/feedback-widget-react';

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <FeedbackWidget
          endpoint="/api/feedback"
          projectSlug="my-app"
        />
      </body>
    </html>
  );
}

3. Create an API route

// app/api/feedback/route.ts
import { NextResponse } from 'next/server';
import {
  createFeedbackHandler,
  validateSubmission,
  type FeedbackSubmission,
} from '@goodcraft/feedback-widget-nextjs';

const handleFeedback = createFeedbackHandler({
  linear: {
    apiKey: process.env.LINEAR_API_KEY!,
    teamId: process.env.LINEAR_TEAM_ID!,
  },
});

export async function POST(request: Request) {
  const body = await request.json();

  if (!validateSubmission(body)) {
    return NextResponse.json({ success: false, message: 'Invalid submission' }, { status: 400 });
  }

  const result = await handleFeedback(body as FeedbackSubmission);
  return NextResponse.json(result, { status: result.success ? 200 : 500 });
}

Packages

| Package | Description | |---------|-------------| | @goodcraft/feedback-widget-core | Framework-agnostic widget: modal UI, screenshot capture, error collection, system info | | @goodcraft/feedback-widget-react | React components (<FeedbackWidget>, <FeedbackWidgetProvider>, <FeedbackTrigger>), context, and hooks | | @goodcraft/feedback-widget-nextjs | Server-side handler for Next.js API routes: Linear issue creation, Bunny CDN screenshot upload, validation |

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | LINEAR_API_KEY | Yes | Linear API key for issue creation | | LINEAR_TEAM_ID | Yes | Linear team ID to create issues in | | LINEAR_BUG_LABEL_ID | No | Label ID to apply to bug reports | | LINEAR_FEATURE_LABEL_ID | No | Label ID to apply to feature requests | | LINEAR_WIDGET_LABEL_ID | No | Label ID to apply to all widget submissions | | LINEAR_PROJECT_ID | No | Default Linear project ID | | BUNNY_API_KEY | No | Bunny.net storage API key (enables screenshot upload) | | BUNNY_STORAGE_ZONE | No | Bunny.net storage zone name | | BUNNY_CDN_HOSTNAME | No | Bunny.net CDN hostname for public URLs |

Development

pnpm install
pnpm dev          # Watch all packages
pnpm build        # Build all packages
pnpm typecheck    # Type-check all packages

Running the example app

pnpm --filter nextjs-example dev

License

MIT