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

@llui/devmode-annotate

v0.2.5

Published

LLui dev-mode HUD — drop annotated notes from the running app into the shared notebook for the LLM to consume

Readme

@llui/devmode-annotate

A dev-mode HUD that lets you drop annotated notes from a running LLui app into a shared on-disk notebook — picked up automatically by the LLM via @llui/mcp.

This is v1: text-only notes, no annotations yet. Rect / lasso / pin / element-pick / screenshot baking land in P2 of the devmode-annotate proposal.

What it does

In dev mode, mounts a floating 📝 button (bottom-right corner) on your app. Clicking the button (or Cmd/Ctrl+Shift+A) opens a textarea. Submitting POSTs a note to the @llui/vite-plugin middleware at /_llui/notes, which writes a markdown file under .llui/notes/session-…/ with full metadata (URL, viewport, route, LLui versions, etc).

Both the developer and an MCP-connected LLM read the same notebook. The MCP server can subscribe to new notes and respond, propose fixes, or capture more context.

Install

Inside a project that already uses @llui/vite-plugin:

pnpm add -D @llui/devmode-annotate

Use

Mount the HUD in your app entry:

// src/main.ts
import { mountAnnotateHud } from '@llui/devmode-annotate'

mountAnnotateHud()

That's it. The notebook endpoint (/_llui/* middleware) is enabled by default in @llui/vite-plugin's dev server; the HUD is gated by import.meta.env.DEV and tree-shakes in production.

Opting out / customizing

Pass devmodeAnnotate: false to disable the endpoint entirely, or an object to customize:

// vite.config.ts
import { defineConfig } from 'vite'
import llui from '@llui/vite-plugin'

export default defineConfig({
  plugins: [
    llui({
      devmodeAnnotate: false, // opt out entirely
      // or: devmodeAnnotate: { notesDir: 'tmp/notes', captureTimeoutMs: 60_000 }
    }),
  ],
})

API

mountAnnotateHud(options?)AnnotateHudHandle

Mount the HUD. Idempotent — calling twice returns the same handle.

interface MountAnnotateOptions {
  /** Base origin for the dev-server API. Defaults to current location. */
  origin?: string
  /** Override the LLui versions in frontmatter. Auto-detected from
   *  `window.__llui` (set by @llui/dom's dev surface). */
  llui?: { runtime: string; compiler: string }
  /** Hide the on-page button (programmatic-only mode). */
  hidden?: boolean
}

interface AnnotateHudHandle {
  open(): void
  close(): void
  destroy(): void
  /** Submit a note programmatically; resolves with the created note metadata. */
  submit(
    prose: string,
    opts?: { captureLevel?: 'standard' | 'verbose' },
  ): Promise<CreateNoteResponse>
}

Keyboard

  • Cmd/Ctrl+Shift+A — open the HUD modal
  • Escape — close it

What ends up on disk

After submitting "edit button copy is wrong":

.llui/notes/
  session-2026-05-23-1432/
    001-human-text-edit-button-copy-wrong.md

The .md file carries the prose plus a frontmatter block with URL, viewport, route, LLui versions — everything the LLM needs to act on the note without round-trips.

Status

v1 — text-only. Annotations, screenshots, element-pick, LLM-initiated capture all land in later phases. See the proposal for the full plan.