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

@mikecbrant/tsconfig

v0.1.0

Published

Shareable TypeScript presets for modern ESM Node projects. This package exports three JSON/JSONC presets that downstream projects can extend via the `tsconfig.json` `extends` field:

Readme

@mikecbrant/tsconfig

Shareable TypeScript presets for modern ESM Node projects. This package exports three JSON/JSONC presets that downstream projects can extend via the tsconfig.json extends field:

  • @mikecbrant/tsconfig/base
  • @mikecbrant/tsconfig/node-library
  • @mikecbrant/tsconfig/node-test

Baseline and assumptions

  • Runtime: Node 22 (ES2023). This matches the repository engines.node and the root tsconfig.json baseline discussed in PR #1.
  • File format: JSON/JSONC is intentionally used for tsconfig files. The TypeScript compiler resolves only JSON/JSONC via extends; JS/ESM (.mjs) tsconfig files are not supported by tsc, so keeping JSON/JSONC ensures consumers can extend these presets reliably.

Presets

base.json@mikecbrant/tsconfig/base

Intended for ESM Node codebases as a strict, no‑emit baseline that you can extend in apps or libraries.

Key options (as defined in this preset):

  • target: ES2023
  • lib: ["ES2023"]
  • module: ESNext
  • moduleResolution: Bundler
  • verbatimModuleSyntax: true
  • strict: true
  • exactOptionalPropertyTypes: true
  • noUncheckedIndexedAccess: true
  • noImplicitOverride: true
  • useDefineForClassFields: true
  • resolvePackageJsonExports / resolvePackageJsonImports: true
  • skipLibCheck: true
  • noEmit: true

node-library.json@mikecbrant/tsconfig/node-library

For publishable Node libraries that produce .d.ts files.

Differences vs base:

  • Enables declaration output: declaration: true, declarationMap: true
  • Allows emitting build output: noEmit: false (inherits all strictness from base)

Typical consumers will also set outDir, rootDir, and include/exclude to match their project layout.

node-test.json@mikecbrant/tsconfig/node-test

For Node test code. Extends base and preloads common test type packages.

Differences vs base:

  • Adds types: ["node", "vitest", "vitest/globals"]
  • Keeps noEmit: true

Consumers can replace or augment the types array if they use a different runner.

Usage

Extend a preset from your project tsconfig.json:

App or library baseline (no emit):

{
  "extends": "@mikecbrant/tsconfig/base",
  "compilerOptions": {
    // project-specific options here (paths/outDir/isolatedModules/etc.)
  },
  "include": ["src/**/*.ts"],
  "exclude": ["dist", "node_modules"],
}

Node library (generate declarations):

{
  "extends": "@mikecbrant/tsconfig/node-library",
  "compilerOptions": {
    "outDir": "dist",
    "rootDir": "src",
  },
  "include": ["src/**/*.ts"],
  "exclude": ["dist", "node_modules", "**/*.test.ts"],
}

Node tests:

{
  "extends": "@mikecbrant/tsconfig/node-test",
  "compilerOptions": {
    // add any runner-specific types if needed
  },
  "include": ["src/**/*.test.ts", "tests/**/*.ts"],
}

Compatibility notes

  • ESM-first: The presets assume ESM (module: ESNext) with moduleResolution: Bundler and verbatimModuleSyntax: true. Prefer explicit type-only imports and avoid deep CJS interop.
  • JSON/JSONC only: Presets are published as JSON; this is by design for tsc compatibility when using extends.
  • TypeScript peer: typescript >=5.6 is required by consumers.

If you need to diverge (e.g., CommonJS, different types for tests, or a stricter/looser lib target), override those fields in your project’s tsconfig.json.