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

@michaelthielemann/kestrel-links-default

v5.8.1

Published

Steps links.extract/check/report/rebuild: finds external URLs in content, checks them periodically and reports broken links.

Readme

links/default

External link checking for content. links.extract:<type> after content.create/update (and links.unextract:<type> after remove) indexes every http(s) URL found in text, richtext and json fields (per locale) into links_index. links.check (cron) probes each due URL once (HEAD, GET on 405/501; timeout, concurrency and recheck interval from config) and stores ok/status/error/checkedAt on all entries of that URL. links.report lists broken ones (optional type filter), links.rebuild refills the index from all content. A probed URL's own ok/status/error (whether the target answered) is data, not a step failure — only a failure to read or write the index itself (a busy database) fails the step. Outbound requests are a SSRF surface: non-http schemes and private/loopback addresses are never requested (allowPrivate: false); hostnames resolving to private ranges are not detected. Every method returns a Result: a failure is an Err(KestrelError), never an exception. Only wiring bugs throw (unknown type).

| Step | reads | writes | codes | |---|---|---|---| | links.extract:<type> | result.id | – | TRANSIENT | | links.unextract:<type> | params.id | – | VALIDATION (missing id), TRANSIENT | | links.check | – | result | TRANSIENT | | links.report | – | result | TRANSIENT | | links.rebuild | – | result | TRANSIENT |

Not included: link rewriting, retries before reporting, robots.txt.

Generated from the manifest

@michaelthielemann/kestrel-links-default – module links/default: provides no contract; requires content@1, persistence@1.

| Config | Type | Required | Default | |---|---|---|---| | timeoutMs | integer | no | 10000 | | concurrency | integer | no | 4 | | recheckAfterSeconds | integer | no | 21600 | | userAgent | string | no | "kestrel-links/0.1 (+link check)" | | allowPrivate | boolean | no | false |

| Step | Summary | Reads | Writes | Input | Output | Errors | |---|---|---|---|---|---|---| | links.extract:<arg> | Index external links of | result.id | – | – | – | – | | links.unextract:<arg> | Drop indexed links of | params.id | – | – | – | 400 missing id | | links.check | Check due links | – | result | – | { urls?: number, checked?: number, broken?: number, skipped?: number, … } | – | | links.report | Broken links | – | result | ?type: string | object[] | – | | links.rebuild | Rebuild the link index | – | result | – | { documents?: number, entries?: number, … } | – |

Pipelines in examples/minimal using these steps:

  • brokenLinks (GET /admin/links/broken): authn.requireUser → authz.require:pages.manage → links.report
  • checkLinks (cron 0 3 * * *): links.check
  • createPage (POST /pages): authn.requireUser → authz.require:pages.write → validate.check:pages.body → validate.sanitize:pages.body → validate.check:pages.body → references.check:pages → content.create:pages → revisions.record:pages → references.index:pages → links.extract:pages → delivery.publish:pages → delivery.exportLlms → events.emit:page.created
  • deletePage (DELETE /pages/:id): authn.requireUser → authz.require:pages.delete → references.guard:pages → content.remove:pages → revisions.remove:pages → references.unindex:pages → links.unextract:pages → delivery.unpublish:pages → delivery.exportLlms → events.emit:page.deleted
  • deletePageTranslation (DELETE /pages/:id/translations/:locale): authn.requireUser → authz.require:pages.write → content.removeTranslation:pages → revisions.removeTranslation:pages → references.index:pages → links.extract:pages → delivery.publish:pages → delivery.exportLlms → events.emit:page.translationRemoved
  • rebuildLinks (POST /admin/links/rebuild): authn.requireUser → authz.require:pages.manage → links.rebuild
  • restorePageRevision (POST /admin/pages/:id/revisions/:revisionId/restore): authn.requireUser → authz.require:pages.write → revisions.restore:pages → validate.check:pages.body → validate.sanitize:pages.body → validate.check:pages.body → references.check:pages → content.update:pages → revisions.record:pages → references.index:pages → links.extract:pages → delivery.publish:pages → delivery.exportLlms → revisions.reportRestore → events.emit:page.restored
  • updatePage (PATCH /pages/:id): authn.requireUser → authz.require:pages.write → validate.check:pages.body → validate.sanitize:pages.body → validate.check:pages.body → references.check:pages → content.update:pages → revisions.record:pages → references.index:pages → links.extract:pages → delivery.publish:pages → delivery.exportLlms → events.emit:page.updated