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

@ccnanas/pagepen

v0.3.0

Published

Annotated screenshot feedback widget for React — draw on the page, capture it, send it to your own dashboard.

Readme

pagepen

Annotated screenshot feedback for React — draw on the page, capture it, send it to your own dashboard.

Part of Pagepen, a self-hosted annotated-screenshot feedback system. This package is the React widget; it talks to a Pagepen server you run yourself (your screenshots and feedback never leave your infrastructure).

Install

npm install @ccnanas/pagepen

react and react-dom (18 or 19) are peer dependencies.

Usage

import { FeedbackWidget } from "@ccnanas/pagepen";

<FeedbackWidget siteKey="my-site" endpoint="https://feedback.example.com" />
  • Review mode (default): the widget is invisible until a reviewer activates it with a share link (?pagepen=<token>). Opening it enters a full-screen annotation mode with a toolbar docked at the bottom: comment on elements, point arrows, write a summary in the floating composer, and Send — a full-page screenshot is captured with the marks burned in. Annotations are stored as vectors and replay on the live page. A compact mode tucks the bar down to a minimal tool pill (persisted per browser).
  • Support mode (mode="support"): an embeddable end-user issue reporter with prefilled identity and file attachments (in the bar's details drawer).

Props

| Prop | Type | Notes | |------|------|-------| | siteKey | string | Public site identifier registered on your server. | | endpoint | string | Your Pagepen server origin. Required. | | mode | "review" \| "support" | Default "review". | | user | { name, email } | Support mode: prefilled, locked identity. | | copy | { title?, prompt?, footer? } | Text overrides. | | freezeSelectors | string[] | Selectors to force-reveal during capture (reveal-on-scroll sections). |

The widget renders inside a Shadow DOM, so host-page styles never leak in or out.

Self-hosting the server

The Pagepen server + dashboard (Next.js + Postgres + Vercel Blob) is what the widget reports to. endpoint points at your deployment.

License

MIT