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

typebuild

v1.0.8

Published

A build script for TypeScript ESM modules using esbuild. This script removes type-only imports, fixes TypeScript ESM import paths by adding `.js` extensions for compatibility, and copies static files that you want to preserve for your project structure.

Readme

npm version npm downloads license

TypeBuild 🛠

A powerful and lightweight build tool for modern TypeScript projects. Built with love, frustration, and the need to fix what most compilers leave broken. Before you start, make sure to install the TypeScript library. After all... a TypeScript tool doesn't really work without TypeScript 😅.


✨ Why I Made This

Honestly?
I was tired of compilers that would happily transpile my TypeScript… but leave all my import paths broken because they didn't add .js extensions.
I tried a bunch of tools. None of them really gave me what I needed — a clean build with working import paths, static files, a preserved folder structure, and full control.

Every time I built a project, I had to manually fix 30+ lines of imports, or the structure would break entirely, especially with relative paths.
I thought: “If no one fixes this properly… I will.”
And that’s how TypeBuild was born 💜


🚀 What TypeBuild Does

  • ESM Import Fixing – adds .js to relative imports after build, so your code actually runs.
  • Static File Copying – .env, config files, anything you want to ship with the build.
  • Optional Type Check – If your tsconfig uses strict: true, it will run tsc --noEmit first.
  • Removes Type-Only Imports – if you want, it can strip out type.ts imports from final files.
  • Progress Bars + Logs – shows you exactly what’s going on, with colorful feedback.

📦 Installation

Global installation and use:

npm install -g typebuild
typebuild

Or use it once with npx:

npm install -D typebuild
npx typebuild

🧠 How to Use

Add this to your tsconfig.json:

{
  "compilerOptions": {
    "outDir": "./dist",
    "rootDir": "./src",
    "strict": true,
    "module": "ESNext",
    "target": "ES2022"
  },
  "typebuild": {
    "typeFileNames": ["typeFile.ts", "secondTypeFile.ts"],
    "staticFiles": [".env", "data"],
    "ignoredDirs": ["node_modules", ".git"],
    "indexFile": "index.js"
  }
}

typeFileNames: names of files where you store your types (e.g. types.ts)

staticFiles: files/folders to copy to outDir (e.g. .env, data)

ignoredDirs: folders where types won't be searched (e.g. node_modules, .git)

indexFile: name of the output main entry file (e.g. index.js)

Then run:

npx typebuild

Or set it up in your package.json:

"scripts": {
  "build": "typebuild"
}

📝 What Makes It Special?

Unlike other tools that assume you’ll patch things later, TypeBuild does it right on the first go. It respects your folder structure, fixes your imports, copies files, and lets you decide how strict you want to be.

It’s not meant to replace big build tools — it’s here to make them suck less.


🔮 Future Plans (Maybe 😅)

  • TypeRun — A tiny runtime for TS apps

  • TypeGUI — Visual representation of TS projects

  • Typux OS — A TypeScript-friendly Linux distribution (no joke 😏, but a lot of years)


Made with 💜 by Wolvit

Because sometimes, you gotta build your own tools to make the world less annoying. 🤘


📜 License

MIT — use it, fork it, break it, fix it. Have fun 💜


🔧 Contributing

Have ideas or found a bug?
Feel free to open an issue or submit a PR — every bit helps