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

laufen

v1.3.1

Published

Typed script runner for monorepos — discover, validate, and execute TypeScript scripts with Zod-powered arguments

Downloads

2,065

Readme


Features

  • 🔍 Auto-discovery — Scans every workspace package for scripts matching your configured glob patterns.
  • Zod-powered validation — Define args with Zod schemas and get runtime validation + full TypeScript inference.
  • 📦 Package management — Declare npm packages in scripts or workspace config, auto-installed to cache without polluting project dependencies.
  • 🧩 Workspace-agnostic — Auto-detects pnpm, npm, yarn, bun, lerna, and single-package projects.
  • 💬 Auto-prompting — Missing required args are interactively prompted, so scripts work both in CI and locally.
  • 🪶 Tiny API surface — One function (lauf()), one schema library (z), one convention (scripts/ directory).

Quick Start

Install the laufen package.

pnpm add -D laufen

Setup a lauf script, including defining args, env variables, and packages.

import { lauf, z, infisical } from 'laufen';

export default lauf({
  description: 'Say hello',
  env: infisical({ path: '/ops/ci', env: 'dev' }),
  packages: {
    chalk: '^5.0.0', // Auto-installed to cache, no project dependency needed
  },
  args: {
    name: z.string().default('world'),
    loud: z.boolean().default(false),
  },
  async run(ctx) {
    const { default: chalk } = await ctx.import('chalk');
    const greeting = `Hello, ${ctx.args.name}!`;
    const message = ctx.args.loud ? greeting.toUpperCase() : greeting;
    ctx.logger.info(chalk.blue(message));
  },
});

Run the script using the args you defined.

lauf run @my-org/my-package/hello --name=Zac --loud=true

[!TIP] Requires Node.js >= 22.0.0

Quick Reference

lauf init        # scaffold lauf.config.ts
lauf create      # generate a new script from a template
lauf list        # discover all scripts across the workspace
lauf run         # execute a script by name
lauf info        # view a script's args and description

📖 Documentation

For full docs — configuration, script API, CLI reference, examples, and more — visit the documentation site.

📝 License

MIT