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

@sightmap/next

v0.0.2

Published

Next.js compatibility layer for Sightmap and Sightkick: seed a .sightmap/ corpus from the App Router, publish the corpus and the compiled WebMCP tool layer at /.well-known/, boot the tools on every page, and replay natural-language plans through agent-bro

Readme

@sightmap/next

The Next.js side of Sightmap and Sightkick. Three commands and one component, no runtime dependencies beyond next and react.

npm i -D @sightmap/sightmap @sightmap/sightkick agent-browser
npm i @sightmap/next

sightmap-next seed

One-shot scaffold of .sightmap/ from the router. Never overwrites.

sightmap-next seed [app-root] [--app-dir DIR] [--sightmap-dir DIR] [--base-url URL] [--dry-run]
  • Walks app/**/page.* (and pages/**). Route groups vanish, [id]:id, [...slug]**, @slots, (.)intercepts, and _private folders are skipped.
  • One feature file per top-level route (home.yaml, tasks.yaml, …), per the spec's authoring conventions. Each view gets route:, source:, the layout chain as dependencies:, and stability: stub.
  • Route handlers under app/api become requests: seeds, with method: when the file exports exactly one HTTP verb.

Then curate against the running app with the sightmap-authoring skill and drop the stub markers.

sightmap-next build

sightmap-next build [app-root] [--public-dir DIR] [--no-init-script]

Writes, using the sightmap and sightkick CLIs:

| File | What | |---|---| | public/.well-known/sightmap.json | the corpus, sightmap export | | public/.well-known/sightkick.json | the compiled tool IR, sightkick build | | public/sightkick-runtime.js | the runtime that registers the IR on document.modelContext | | webmcp.init.js | runtime + IR in one file for agent-browser --init-script |

Wire it as "prebuild": "sightmap-next build".

<SightkickTools/>

// app/layout.tsx
import { SightkickTools } from "@sightmap/next";
import ir from "../public/.well-known/sightkick.json";

<SightkickTools ir={ir} />          // inline the IR (registers as soon as the runtime loads)
<SightkickTools />                  // or fetch /.well-known/sightkick.json after hydration
<SightkickTools enabled={process.env.VERCEL_ENV !== "production"} />   // gate it

Registers the tool layer on every page. Tools are view-scoped and re-register on client-side navigation. If an agent-browser init script already booted the runtime, the component reuses it.

sightmap-next run-plan

sightmap-next run-plan <plan.json ...> [--base-url URL] [--init-script FILE] [--session NAME]
                       [--stamp] [--stale-ok] [--dry-run]

Replays a stored plan — a Gherkin scenario resolved to tool calls and expectations — through agent-browser webmcp invoke. Same plan format and expectation vocabulary as Sightkick's scripts/run-plan.mjs (ok, value.{equals,contains,absent}, list.{length,contains,excludes}); only the executor differs. --stamp records the feature-file and compiled-IR hashes; a later run refuses to proceed when either moved.

--init-script boots the tools from webmcp.init.js instead of relying on the page's own <SightkickTools/>. agent-browser only registers init scripts when it launches the browser, so the first open with one closes any daemon already running (later plans in the same run reuse the relaunched one). Without --init-script, plans run against whatever the page ships.

Tests

npm test