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

susee

v1.5.1

Published

Simple TypeScript Bundler

Readme

npm version license Socket Badge codecov

Overview

Susee is a TypeScript-first bundler for library packages.

It reads susee.config.{ts,js,mjs}, resolves the dependency graph for each entry, bundles sources into a single unit, then compiles output for ESM and/or CommonJS with types.

Features

  • Loads config from one of:
    • susee.config.ts
    • susee.config.js
    • susee.config.mjs
  • Supports multiple entry points with subpath exports (. and ./subpath).
  • Validates and type-checks dependency files before bundling.
  • Runs dependency, pre-process, and post-process plugins (sync or async).
  • Compiles to:
    • ESM (.mjs, .d.mts, source maps)
    • CommonJS (.cjs, .d.cts, source maps)
  • Can update package.json fields (type, main, module, types, exports) when allowUpdatePackageJson is enabled.

Current Constraints

  • CommonJS dependencies in the source graph are rejected by core (suggested workaround: @suseejs/plugin-commonjs).
  • JSX/TSX dependencies are currently rejected.
  • CLI supports only susee and susee init.

Installation and Quick Start

Install

npm i -D susee

Create a config file

npx susee init

Build your first project

Use the CLI:

npx susee

Or in package.json:

{
  "scripts": {
    "build": "susee"
  }
}

Config Reference

SuSeeConfig

interface SuSeeConfig {
  entryPoints: EntryPoint[];
  outDir?: string; // default: "dist"
  plugins?: (SuseePlugin | SuseePluginFunction)[]; // default: []
  allowUpdatePackageJson?: boolean; // default: false
}

EntryPoint

type OutputFormat = ("commonjs" | "esm")[];

interface EntryPoint {
  entry: string;
  exportPath: "." | `./${string}`;
  format?: OutputFormat; // default: ["esm"]
  tsconfigFilePath?: string;
  renameDuplicates?: boolean; // default: true
  binary?: { name: string };
}

Entry Validation Rules

  • At least one entryPoint is required.
  • Duplicate exportPath values are rejected.
  • Each entry file must exist.

TypeScript Options Behavior

For each entry point, Susee builds compiler options from:

  1. tsconfigFilePath (if provided)
  2. project tsconfig.json
  3. Susee defaults

Susee enforces/adjusts key options internally:

  • moduleResolution: "NodeNext"
  • allowJs: true
  • outDir set per entry output path
  • types includes node
  • lib includes ESNext

Plugin Hooks

Susee supports these plugin stages:

  • dependency
    • receives resolved dependency files and compiler options
    • transforms dependency metadata/content before bundling
  • pre-process
    • receives bundled code before compilation
  • post-process
    • receives emitted JS output content per file

Both sync and async plugins are supported.

Output Behavior

  • format: ["esm"]
    • emits .mjs and .d.mts
  • format: ["commonjs"]
    • emits .cjs and .d.cts
  • format: ["esm", "commonjs"]
    • emits both sets

When allowUpdatePackageJson is true, Susee can update:

  • type (forced to module)
  • main
  • module
  • types
  • exports (including subpath exports from exportPath)

CLI

susee
susee init

Any other argument combination exits with an error.

Local Development

Common project scripts:

npm run build
npm run test
npm run lint
npm run fmt
npm run hooks:install

Notes:

  • npm run test opens an interactive selector (scripts/susee-tests.ts).
  • Git hooks are tracked in .githooks and installed via npm run hooks:install.

Contributing

Contributions are welcome for bug fixes, features, documentation, and code quality improvements.

See detail in CONTRIBUTING.md

License

Apache-2.0 © Pho Thin Maung