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

cmplr

v1.3.0

Published

Speedy web compiler without the config

Readme

cmplr

Speedy web compiler without the config

Features

  • Dual Module Output - Automatically compiles to both CommonJS and ESM formats
  • Zero Configuration - Works out of the box with sensible defaults
  • TypeScript Support - Full TypeScript compilation with declaration generation
  • Smart Source Detection - Auto-detects source directory (src > lib > bin)
  • SWC Powered - Lightning-fast compilation using SWC
  • TypeScript Config Integration - Reads and respects your tsconfig.json settings
  • Automatic Cleaning - Cleans output directory before each build to prevent conflicts
  • Package.json Integration - Automatically updates exports, main, module, and types fields
  • JSX/TSX Support - Handles React components and JSX syntax
  • Decorators Support - Works with experimental decorators
  • Source Maps - Generates source maps for debugging
  • Multiple Entry Points - Supports projects with multiple entry files
  • Dry Run Mode - Preview what would be compiled without executing
  • Optional Type Checking - Enable strict TypeScript type checking with --type-check

Born from the frustration of repeatedly setting up TypeScript, SWC configs, and build tooling for every new module. cmplr does all the heavy lifting so you can focus on writing typescript code.

Install

npm install cmplr --save-dev

Usage

cmplr is a CLI you can directly add in your package.json scripts:

{
  "scripts": {
    "build": "cmplr"
  }
}

CLI Options

cmplr [options]

Options:
  --dry-run      Show what would be compiled without executing
  --help, -h     Show help message
  --version, -v  Show version number
  --src-dir      Source directory (default: auto-detect)
  --out-dir      Output directory (default: 'dist')
  --no-types     Skip TypeScript declaration generation
  --type-check   Enable TypeScript type checking (installs TypeScript if needed)

Notes

  • Automatic Cleaning: Output directory is cleaned before each compilation to prevent conflicts
  • Source Priority: Detects source directory in order: srclibbin → fallback to src
  • TypeScript Config: Respects your tsconfig.json settings for target, decorators, JSX, etc.
  • Package.json Updates: Automatically sets main, module, types, and exports fields
  • SWC Configuration: Uses tsconfig-swc for comprehensive TypeScript-to-SWC config conversion
  • File Detection: Automatically detects TypeScript, JSX, and TSX files in source directory
  • Entry Points: If index.* file exists, all files are treated as entry points; otherwise all non-test files
  • Output Structure: Creates dist/cjs/, dist/esm/, and dist/types/ directories
  • Dependencies: Requires Node.js 16+ and uses @swc/core for compilation