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

@mesagroup/mesa-cli

v1.1.0

Published

CLI tool for scaffolding MESAPPA plugin projects (on-prem and SaaS)

Readme

MESA CLI

Command-line tool for scaffolding MESAPPA on-prem plugin projects — complete with TypeScript + Express backend, optional Angular 16 frontend with Module Federation, and .NET Aspire orchestration.

Works on macOS and Windows.

Install

pnpm install -g .

Or link locally for development:

pnpm build && pnpm link --global

Quick Start

# Interactive — walks you through name, description, frontend, GitHub repo
mesa init

# Non-interactive with defaults
mesa init my-plugin -y

# Backend-only (no Angular frontend)
mesa init my-plugin --no-frontend -y

# Preview without writing files
mesa init my-plugin --dry-run -y

Commands

mesa setup

Checks that all required development tools are installed and guides you through fixing anything missing.

Checks performed:

  • Node.js (required)
  • pnpm (required)
  • Git (required) — also verifies user.name and user.email are configured
  • GitHub CLI (gh) — verifies authentication and org access to mesagroup
  • Docker Desktop (required for local SQL Server)
  • .NET Aspire CLI (optional, for orchestration)

If a tool is missing, MESA CLI shows the exact install command for your platform and waits for you to install it before re-checking.

mesa setup runs automatically on first use of mesa init.

mesa init [name]

Scaffolds a complete MESAPPA plugin project:

my-plugin/
├── backend/
│   ├── src/
│   │   ├── config/env.ts          # Zod-validated env config
│   │   ├── middleware/authJwt.ts   # JWT verification (jose)
│   │   ├── routes/health.ts       # Health check with DB probe
│   │   ├── routes/index.ts        # API router
│   │   ├── services/db.ts         # MSSQL connection pool (Aspire-aware)
│   │   └── server.ts              # Express + Helmet + CORS
│   ├── .env.example
│   ├── nodemon.json
│   ├── package.json
│   └── tsconfig.json
├── frontend/                      # (if --no-frontend is not set)
│   ├── projects/<name>/src/
│   │   ├── lib/<name>.module.ts
│   │   ├── lib/<name>.component.ts
│   │   ├── lib/<name>.service.ts
│   │   ├── lib/models.ts          # MESAPPA V9 interfaces
│   │   └── public-api.ts
│   ├── src/app/                   # Dev shell app
│   ├── angular.json
│   ├── webpack.config.js          # Module Federation
│   ├── proxy.conf.js
│   ├── package.json
│   └── tsconfig.json
├── aspire/
│   └── apphost.ts                 # .NET Aspire orchestrator
├── scripts/
│   ├── start-local.ps1
│   ├── start-local.sh
│   └── deploy.ps1
├── docs/
│   ├── README.md
│   └── env-vars.md
├── .claude/CLAUDE.md              # AI coding rules for Claude Code
├── CLAUDE.md                      # Project-level AI instructions
├── .env.example
├── .gitignore
└── package.json                   # Root workspace scripts

Options:

| Flag | Description | |------|-------------| | --no-frontend | Skip Angular frontend generation | | --author <name> | Author name (default: git config user.name) | | --description <text> | Plugin description | | --dry-run | Preview generated files without writing | | -y, --yes | Skip prompts, use auto-generated defaults |

After scaffolding, the CLI optionally creates a GitHub repo on mesagroup and pushes the initial commit.

mesa login

Authenticate with a MESA instance.

| Flag | Description | |------|-------------| | --tenant-id <id> | Tenant ID (default: MESA_INSTANCE env var or default) |

Generated Project — Getting Started

cd my-plugin

# Install all dependencies
npm run install:all

# Start with Aspire (recommended)
aspire run

# Or start manually
cd backend && npm run dev
cd frontend && npm start     # if frontend is present

Prerequisites for Generated Projects

| Tool | Purpose | |------|---------| | Docker Desktop | SQL Server container | | .NET SDK 10+ | Aspire orchestrator | | Aspire CLI | dotnet tool install -g aspire.cli | | Node.js 20+ | Runtime | | pnpm | Package manager |

Development

pnpm install
pnpm build          # Build CLI
pnpm dev            # Watch mode
pnpm lint           # xo + prettier
pnpm test           # vitest

Tech Stack

  • TypeScript + tsup (bundler)
  • meow (CLI framework)
  • @inquirer/prompts (interactive prompts)
  • chalk (terminal styling)
  • zod (env validation in generated projects)

License

ISC