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

@jelto/crawler

v1.0.4

Published

Optional server crawler request reporting for Jelto

Readme

@jelto/crawler

Optional server crawler request reporting for Jelto. Node.js 22+ or a Fetch runtime with Web Crypto and AbortSignal.timeout; zero runtime dependencies.

import { createCrawlerTracker } from '@jelto/crawler'

const crawlers = createCrawlerTracker({
  endpoint: 'https://your-jelto-api.example',
  apiKey: process.env.JELTO_CRAWLER_KEY ?? '',
  publicOrigin: 'https://example.com',
})

// Once the application has created the response:
crawlers.trackResponse(request, response, context) // context.waitUntil is optional
// A middleware without the final response uses trackRequest(request, context).

Use a server-held Jelto API key (jk_…) scoped to your website with only crawlers:write. Register your website hostname, install the integration, then follow Verify it works.

trackRequest and trackResponse return a boolean indicating whether the in-memory queue accepted the observation. They never wait for network delivery. flush() resolves once current queued work completes or exhausts its retries; it does not guarantee delivery. Repeated use of the same Request is deduplicated. check(hostname) returns connection evidence or null on failure.

The SDK reads only request URL/method/user-agent and optional response status. No cookies, authorization, bodies, forwarding headers, IPs or browser identities are copied. Query strings and fragments are stripped. Classification by user agent is a claim, not verification; the server discards raw user agents. Only GET/HEAD requests are eligible. The bandwidth filter preserves robots, llms text, Markdown, PDF and sitemap files (including .xml.gz); it skips API routes, framework internals and obvious assets. Invalid paths are dropped before they can cause the server to reject other events in the same batch.

Memory is bounded at 100 events including in-flight work, 20 per batch, two concurrent requests, one-second timeouts and two retries with unchanged IDs. Long Retry-After values drop a batch rather than retry early. Server termination and queue overflow can lose events; use waitUntil on short-lived runtimes and flush on graceful Node shutdown. This is an optional best-effort analytics path.

The package is published on npm as @jelto/crawler; in your website project, run npm install @jelto/crawler. To build from this repository root instead, run npm ci and npm pack; packing rebuilds the exports and includes the current installation guide. npm run conformance rebuilds and tests the exported JavaScript; run it twice before release.

The tarball includes full framework, rotation, coverage and erasure instructions in GUIDE.md, generated from the pinned vendor/guide/crawler.md input. The public integration guide covers the same setup.

Verify it works

  1. From the server, while collection is still disabled, run await crawlers.check('example.com'); it returns connection evidence, or null on failure. A check creates no traffic.
  2. After a successful check, enable collection and save in Settings → Traffic & usage → Server crawlers.
  3. Once real eligible crawler requests arrive, refresh Connection activity to see when they were received.

Standalone development

Run npm ci, npm run check, npm run conformance twice, then npm pack from this directory. The guide included in the tarball and the bot catalog used by tests are versioned inputs in vendor/jelto/; their manifest records source paths and checksums. Builds and tests need no documentation or backend checkout. The source repository refreshes these inputs explicitly; do not edit the copies.

Repository CI and releases

The component-owned workflows become active when this directory is the repository root. CI runs local package tests; release CI additionally requires conformance twice and the configured contracts pin where applicable. See RELEASING.md for initial publication, trusted publishing, version tags, and retries. Publishing stays disabled until explicitly configured.

Community and license

Questions, bug reports and documentation improvements are welcome. See Support, Contributing, Code of Conduct, and Security policy. Contact [email protected] for anything else.

Jelto-owned software and associated documentation use the MIT license. Third-party materials retain their own terms, including the Contributor Covenant attribution. Jelto names, logos, mascots and original brand artwork are excluded from the software license; no trademark rights are granted.