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

@dragoon0x/markupkit

v1.0.0

Published

Draw on your live website. Freehand feedback for AI agents. Circles detect elements, arrows map relationships, strikethroughs flag removals.

Readme

@dragoon0x/markupkit

Draw on your live website. Freehand feedback for AI agents. Circles detect elements, arrows map relationships, strikethroughs flag removals.

Interactive Essay →

Why

Agentation proved pointing beats describing. MarkupKit pushes that further: drawing beats pointing. A circle says "these elements." An arrow says "move this there." A strikethrough says "delete this." Every gesture carries semantic meaning that words have to spell out laboriously.

Install

npm i @dragoon0x/markupkit

Quick Start

import { Markup } from '@dragoon0x/markupkit'

export default function Layout({ children }) {
  return (
    <>
      {children}
      {process.env.NODE_ENV === "development" && <Markup />}
    </>
  )
}

A toolbar appears in the corner. Click the pencil to start drawing. Draw on your page. Add optional notes. Copy structured output for agents.

Shape Detection

MarkupKit recognizes seven gesture types, each with distinct semantic meaning:

| Gesture | Detected As | Agent Intent | |---------|-------------|--------------| | Circle around elements | circle | "Fix/review these elements" | | Arrow between elements | arrow | "Move/connect/relate these" | | Horizontal line through text | strikethrough | "Remove or replace this" | | Underline beneath text | underline | "Emphasize or keep this" | | X mark over element | cross | "Delete this entirely" | | Rectangle around area | rectangle | "This area needs attention" | | Any other stroke | freehand | Captures nearest element |

Each shape auto-resolves to DOM elements with CSS selectors.

What Agents Get

## Annotation 1

### ⭕ circle: Circled 2 elements — area needs review
> Make these cards the same height

- `div.card:nth-child(1)`
  Text: "Monthly Revenue — $124,500"
- `div.card:nth-child(2)`
  Text: "Active Users — 8,241"

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | enabled | boolean | true | Enable/disable | | color | string | "#e53e3e" | Stroke color | | strokeWidth | number | 3 | Stroke width | | tool | ToolMode | "draw" | Active tool | | detail | OutputDetail | "standard" | Output detail | | toolbar | boolean | true | Show toolbar | | position | string | "bottom-right" | Toolbar position | | root | string | "body" | Scope selector | | ignore | string[] | [] | Selectors to skip | | onAnnotation | (a) => void | — | Per-annotation callback | | onCopy | (md) => void | — | Copy callback | | shortcut | string | "ctrl+shift+d" | Keyboard shortcut |

Tools

| Tool | Icon | Behavior | |------|------|----------| | draw | ✏️ | Freehand drawing with shape detection | | arrow | ➡️ | Draws with arrowhead rendering | | circle | ⭕ | Freehand with circle bias | | eraser | 🧹 | Removes strokes in drawn area |

Programmatic API

import { detectShape, resolveShape, formatSession } from '@dragoon0x/markupkit'

// Detect shape from a stroke
const shape = detectShape(stroke)
// → { type: 'circle', confidence: 0.82, bounds: {...} }

// Resolve to DOM elements
const annotation = resolveShape(shape)
// → { elements: [{ selector: 'div.card', text: '...' }], intent: 'Circled 2 elements' }

Technical

  • ~6kb gzipped — Tree-shakeable ESM and CJS
  • Zero dependencies — React 18+ and React DOM only
  • Pressure-sensitive — Variable-width strokes based on speed
  • Shape recognition — 7 gesture types with confidence scoring
  • Element resolution — Circles find enclosed elements, arrows resolve endpoints, strikethroughs find text underneath
  • Full TypeScript — Every type exported

License

MIT © dragoon0x