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

beztack

v0.0.9

Published

Beztack initialization and module management CLI

Downloads

294

Readme

beztack

CLI to create and configure Beztack monorepo projects.

Features

  • 🚀 Project scaffolding: Create new Beztack projects from template
  • 🎯 Optional modules: Select only the modules you need
  • �️ Interactive UI: Beautiful CLI interface with @clack/prompts
  • 🧹 Auto cleanup: Removes unused dependencies, files, and code
  • 🔄 Codemods: Automatically updates imports and references
  • 📦 Smart install: Single pnpm install at the end

Usage

Create a new project

# Using pnpm create (recommended)
pnpm create beztack

# Or directly with the CLI
pnpm dlx beztack create

Configure modules in existing project

pnpm dlx beztack init

Show help

pnpm dlx beztack help

Commands

| Command | Description | |---------|-------------| | create | Create a new Beztack project (default) | | init | Configure modules in an existing project | | help | Show help message |

Available Modules

| Module | Required | Description | |--------|----------|-------------| | auth | ✅ | Authentication with Better Auth | | payments | ❌ | Payment processing with Polar | | email | ❌ | Email sending with Resend and React Email | | ai | ❌ | AI integration with Vercel AI SDK | | ocr | ❌ | Optical Character Recognition with Tesseract.js | | state | ❌ | URL state management with nuqs |

How it works

beztack create

  1. Prompts for project name and configuration
  2. Clones the Beztack template repository
  3. Customizes project files with your settings
  4. Installs dependencies
  5. Runs beztack init to configure modules
  6. Initializes Git repository (optional)

beztack init

  1. Shows interactive module selector
  2. Removes unselected modules:
    • Deletes package directories
    • Cleans dependencies from package.json
    • Removes related files
    • Runs codemods to clean imports
  3. Regenerates entrypoints (routes, API modules)
  4. Runs pnpm install once

Development

# Build
pnpm build

# Watch mode
pnpm dev

# Type check
pnpm typecheck

Project Structure

src/
├── cli.ts                    # CLI entry point with commands
├── create.ts                 # Project creation logic
├── index.ts                  # Public exports
├── modules.ts                # Module definitions
├── init-project.ts           # Module initialization logic
├── remove-module.ts          # Module removal logic
├── generate-entrypoints.ts   # Entrypoint file generation
├── utils/
│   ├── workspace.ts          # Workspace utilities
│   ├── remove-deps.ts        # Dependency cleanup
│   └── get-nx-project-roots.ts # Nx project detection
└── codemods/
    ├── shared.ts             # Shared utilities
    └── remove-*-imports.ts   # Module-specific codemods

Adding a New Module

  1. Add definition in src/modules.ts:
{
  name: "my-module",
  label: "My Module",
  description: "Short description",
  required: false,
  packageDir: "packages/my-module",
  npmDeps: ["@beztack/my-module"],
  nxProjects: ["api", "ui"],
  hasApiModule: true,
  hasUiFeature: true,
  fileGlobs: [
    "apps/api/server/modules/my-module/**/*",
    "apps/ui/src/features/my-module/**/*",
  ],
  codemods: ["remove-my-module-imports"],
}
  1. Create codemod in src/codemods/remove-my-module-imports.ts:
import { removeImportsForPackage } from "./shared.js";

export async function run() {
  await removeImportsForPackage("@beztack/my-module");
}
  1. Create module files:
    • apps/api/server/modules/my-module/index.ts
    • apps/ui/src/features/my-module/routes.tsx

License

MIT