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

indexnow-notify

v0.1.0

Published

Tiny zero-dependency IndexNow client for Node.js. Notify Bing, Yandex, Seznam, and Naver of URL changes from your CMS, sitemap webhook, or CI. Library + CLI.

Readme

indexnow-notify

Tiny, zero-dependency IndexNow client for Node.js. Notify Bing, Yandex, Seznam, and Naver when your content changes — from a CMS webhook, a sitemap generator, or your CI pipeline.

npm install indexnow-notify

Why

IndexNow is the standard way to push URL changes to non-Google search engines, but no maintained npm package exists for it. This is a 50-line, dependency-free client with sensible defaults, host filtering, batching, and "fire-and-forget" semantics (it never throws).

Library usage

import { IndexNowClient } from "indexnow-notify";

const client = new IndexNowClient({
  host: "www.example.com",
  key: process.env.INDEXNOW_KEY!,
});

const result = await client.submit([
  "https://www.example.com/blog/new-post",
  "https://www.example.com/blog/updated-post",
]);

console.log(result);
// { submitted: 2, skipped: false, status: 200 }

Convenience function (reads env)

import { submitToIndexNow } from "indexnow-notify";

// reads INDEXNOW_HOST + INDEXNOW_KEY from env
await submitToIndexNow(["https://www.example.com/page"]);

Next.js route handler

// app/api/revalidated/route.ts
import { submitToIndexNow } from "indexnow-notify";

export async function POST(req: Request) {
  const { urls } = await req.json();
  // fire-and-forget — IndexNow client never throws
  submitToIndexNow(urls).then(console.log);
  return Response.json({ ok: true });
}

CLI

# install once, then:
npx indexnow-notify --host example.com --key abc https://example.com/foo https://example.com/bar

# from a file
npx indexnow-notify --host example.com --key abc --file urls.txt

# from stdin
echo "https://example.com/foo" | npx indexnow-notify --host example.com --key abc

Setup

  1. Generate a key (any 8–128 alphanumeric chars).
  2. Host it as a plain text file at https://yourhost/{key}.txt whose contents are the key itself.
  3. Pass host and key to the client. Done.

Submissions are forwarded by the IndexNow API to all participating engines.

Options

| Option | Default | Description | | --- | --- | --- | | host | — | Hostname (required) | | key | — | IndexNow key (required) | | keyLocation | https://{host}/{key}.txt | Public URL of the key file | | endpoint | https://api.indexnow.org/indexnow | Override (e.g. Bing's endpoint) | | fetch | globalThis.fetch | Inject a custom fetch (tests, polyfills) |

Result

type IndexNowResult = {
  submitted: number;
  skipped: boolean;
  reason?: string;
  status?: number;
};

The client never throws. Inspect result.skipped and result.reason to decide whether to log/alert.

License

MIT