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

@shipwake/next-ai-crawl

v0.1.0

Published

Server-side AI crawler tracking for Next.js applications.

Readme

@shipwake/next-ai-crawl

Server-side AI crawler tracking for Next.js applications deployed on Vercel or another Next.js-compatible runtime.

The package observes requests from known AI and search crawlers in Next.js proxy.ts and sends a small, authenticated event to Shipwake after the response path has started. It does not use browser JavaScript, cookies, visitor IDs, or IP addresses.

Install

npm install @shipwake/next-ai-crawl

The package supports Next.js 15.1 through 16.x and requires Node.js 18.18 or newer.

Configure

Set these environment variables in Vercel:

SHIPWAKE_SITE_KEY=your_site_public_key
SHIPWAKE_SERVER_TOKEN=your_private_server_token
SHIPWAKE_AI_CRAWL_ENDPOINT=https://shipwake.dev/api/ai-crawls
SHIPWAKE_AI_CRAWL_TIMEOUT=1000

SHIPWAKE_AI_CRAWL_ENDPOINT is optional when using Shipwake production. The server token must never be exposed to client-side code.

Next.js integration

Create src/proxy.ts at the same level as your app directory:

export { proxy } from "@shipwake/next-ai-crawl/proxy";

This package intentionally owns the crawler catalog, filtering, and delivery path. The application only provides its environment configuration. The proxy is safe to run for every request because non-crawler requests return immediately and static assets are filtered before delivery.

Composing an existing proxy

If the application already has a proxy, compose it with the package:

import { withAiCrawlerProxy } from "@shipwake/next-ai-crawl";
import type { ProxyHandler } from "@shipwake/next-ai-crawl";

const applicationProxy: ProxyHandler = (request, event) => {
  return undefined;
};

export const proxy = withAiCrawlerProxy(applicationProxy);

When composing, keep the package's matcher out of the application and let the package filter requests internally. Next.js only accepts one exported config object per project.

Categories

The package and Shipwake keep these signals separate:

  • ai_answers: user-initiated assistant fetches and AI search crawlers.
  • indexing: conventional search and AI index crawlers.
  • training: crawlers identified as collecting training data.

Crawler identity is based on the User-Agent and can be spoofed. This is crawler observability, not proof that a user saw a citation or converted from an AI answer.

Development

npm install
npm test
npm run lint
npm run build