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

@laioutr/app-botid

v0.1.0

Published

Vercel BotID as the bot-protection provider for Laioutr actions

Readme

Vercel BotID for Laioutr

Laioutr npm version License Nuxt

Makes Vercel BotID the bot-protection provider of a Laioutr storefront. It checks the actions the project lists and rejects a request that BotID does not classify as a person.

Usage

Requires @laioutr-core/frontend-core with bot protection.

pnpm add @laioutr/app-botid
export default defineNuxtConfig({
  modules: ['@laioutr/app-botid'],
});

List the actions to protect in the project's laioutrrc.json:

{
  "config": {
    "botProtection": { "actions": ["newsletter/subscribe"], "whenUnavailable": "open" }
  }
}

Limits

  • Vercel only. On any other production host no check is registered, and every protected action is rejected. The build logs a warning when it targets another host.
  • Do not enable "Vercel BotID Deep Analysis" in the Vercel dashboard. The browser then loads Kasada's script whatever this app configures, and every check is billed.
  • Test a protected action from a page in the storefront, not with curl. BotID rejects a request that did not pass through its client script. Scripts use frontend-core's signed bypass header.
  • BotID's challenge script loads on the first protected request, not on page load, so that request is slower.

Development

pnpm install
pnpm dev:prepare   # generates .nuxt, which lint, tests and typecheck need
pnpm test
pnpm lint

In development, BotID classifies every request as a person without contacting Vercel. Verify the challenge flow on a Vercel preview deployment.

Publishing

Releases run through changesets and publish to npmjs.org with npm trusted publishing, so CI needs no npm token and every release carries provenance.

Day to day: run pnpm changeset to describe your change and merge it. The release workflow opens a "chore: release" PR collecting the pending changesets; merging that builds and publishes.

One-time setup per repository

  1. Repository secrets

    • NPM_LAIOUTR_TOKEN — read access to npm.laioutr.cloud, so CI can install @laioutr-core/*.
    • RELEASE_TOKEN — a fine-grained PAT owned by the org, scoped to this repo, with Contents: read and write and Pull requests: read and write. A PR opened with the default GITHUB_TOKEN cannot trigger workflows, so release PRs would arrive with no CI and could never satisfy a required-status rule.
  2. Bootstrap the package on npm. Trusted publishing is configured on a package that already exists, so the very first version has to be published by hand. publishConfig.provenance fails outside CI — there is no OIDC provider — so disable it for that one publish:

    pnpm prepack
    npm publish --access public --no-provenance

    A brand-new package can 404 on the registry for a few minutes afterwards. That is replication lag, not a failed publish; check again before re-running anything.

  3. Configure the trusted publisher on the package's npm settings page: GitHub Actions, this repository, workflow release.yml. Every release after that is tokenless.