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

@expressxjs/cli

v0.0.8

Published

A CLI tool for ExpressXjs framework

Readme

ExpressX CLI

The official command-line toolkit for creating, developing, generating, and building ExpressXjs applications.

Install

npm install --global @expressxjs/cli
expressx --version

You can also install it locally:

npm install --save-dev @expressxjs/cli
npx expressx --help

Create a project

expressx new my-api
cd my-api
npm run dev

The recommended full template is used by default. The CLI initializes Git and installs dependencies unless you disable those setup steps.

expressx new my-api --template full
expressx new my-api --template api
expressx new my-api --template default
expressx new my-api --skip-install --skip-git

| Template | Includes | | --------- | -------------------------------------------------------------------------------- | | default | Application bootstrap and a complete users CRUD resource | | api | Default template plus global exception handling | | full | API template plus middleware, route interceptor, and global response interceptor |

The full scaffold uses a feature-first structure:

my-api/
├── src/
│   ├── common/
│   │   ├── exceptions/app.exception-handler.ts
│   │   ├── interceptors/
│   │   │   ├── response-envelope.interceptor.ts
│   │   │   └── timing.interceptor.ts
│   │   └── middlewares/request-logger.middleware.ts
│   ├── modules/users/
│   │   ├── user.controller.ts
│   │   ├── user.dto.ts
│   │   └── user.service.ts
│   ├── application.ts
│   └── index.ts
├── .env.example
├── .gitignore
├── package.json
├── README.md
└── tsconfig.json

The generated package contains the required ExpressX scanner configuration:

{
  "expressx": {
    "sourceDir": "src",
    "outDir": "dist",
    "main": "src/index.ts"
  }
}

Generate code

Generate a complete CRUD resource in one command:

expressx generate resource Product
# alias
expressx g r Product

This creates:

src/modules/products/
├── product.controller.ts
├── product.dto.ts
└── product.service.ts

Generate individual components when you need finer control:

expressx generate controller Health
expressx generate service Notification
expressx generate middleware Logger
expressx generate interceptor Timing
expressx generate guard Auth
expressx generate exception App
expressx generate dto Account
expressx generate application Admin

Components are placed in conventional folders by default. Pass a relative path to choose another location:

expressx generate controller Product src/modules/catalog

Useful generation options:

expressx generate resource Product --dry-run
expressx generate resource Product --force

--dry-run previews every file without writing. --force overwrites an existing component or resource.

Develop and build

# Hot reload
expressx dev

# Forward Node.js and application flags
expressx dev --inspect --port 4000
expressx dev --max-old-space-size=4096

# Build the scanner cache, then compile TypeScript
npm run build

# Target a custom compiler output directory
expressx build --output build
tsc --outDir build

# Run compiled output
npm start

The generated scripts are:

{
  "scripts": {
    "dev": "expressx dev",
    "build": "expressx build && tsc",
    "start": "node dist/index.js",
    "typecheck": "tsc --noEmit"
  }
}

The development cache is intentionally reused between CLI sessions. Files added while expressx dev is running are detected automatically. If you add a decorated file while the CLI is stopped, delete <sourceDir>/.expressx/cache.json before starting the CLI again to trigger a fresh scan.

expressx build --output <dir> writes the production cache into that directory and maps discovered TypeScript paths to their compiled JavaScript extensions. Compile the application into the same directory.

Command reference

expressx --help
expressx new --help
expressx generate --help
expressx dev --help
expressx build --help

License

MIT