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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@luanroger/ts-package-template

v1.0.3

Published

A TypeScript package template

Readme

ts-package-template

GitHub License NPM Version

A future proof TypeScript package template, using good alternative (kind of) tools. It includes everything you need to get started quickly, including a basic project structure, build scripts, and configuration files.

You can delete the content of this README and add your own information about your package.

Tools

  • 📘 TypeScript - A typed superset of JavaScript that compiles to plain JavaScript.
  • ⬇️ Rolldown with tsdown - A modern JavaScript bundler that focuses on simplicity and ease of use. With tsdown, it provides seamless TypeScript integration.
  • 🌿 Biome - An all-in-one code linter and formatter.
  • Vitest - A blazing fast unit test framework.
  • 📋 git-cliff - A changelog generator based on conventional commits.
  • 🚀 np - A better npm publish.
  • 📦 pnpm — Already used in this project.

Directory Structure

./
├── ./.vscode/
│   └── settings.json
├── ./src/
│   └── index.ts
├── ./test/
│   └── index.test.ts
├── biome.json
├── CHANGELOG.md
├── cliff.toml
├── tsconfig.json
├── tsconfig.build.json
└── tsdown.config.ts

This is just the most important files and folders. Not every file is shown in this structure.

  • ./ - The root directory of the project.
    • ./.vscode/ - Contains VSCode-specific settings for the project.
    • ./src/ - The source code of the package. Used by the bundler to create the final output, also, in the dev mode, the files here will be watched for changes.
    • ./test/ - The test files for the package. Used by Vitest to run unit tests.
  • biome.json - Configuration file for Biome, the code linter and formatter. Check the Biome documentation for more details.
  • CHANGELOG.md - The changelog file generated by git-cliff.
  • cliff.toml - Configuration file for git-cliff. Check the git-cliff documentation for more details.
  • tsconfig.json - The main TypeScript configuration file.
  • tsconfig.build.json - TypeScript configuration file used specifically for the build process.
  • tsdown.config.ts - Configuration file for tsdown. Check the tsdown documentation for more details.

NPM Scripts

Run with:

pnpm <script>

or

npm run <script>
  • dev - Starts the bundler in watch mode over ./src.
  • build - Bundles the package using Rolldown and outputs to the ./dist folder.
  • check - Runs Biome to lint and format the code.
  • check:write - Runs Biome to automatically fix linting and formatting issues.
  • test - Runs Vitest to execute the unit tests.
  • test:watch - Runs Vitest in watch mode for continuous testing during development.
  • changelog - Generates or updates the CHANGELOG.md file using git-cliff.
  • publish - Publishes the package to NPM using np.
  • publish:all - Builds before publishing it to NPM.

How to use

  1. Clone this repository. Alternatively, you can use this template when creating a new repository on GitHub by selecting the "Use this template" option. This will create a new repository with the same structure and files as this template.
  2. Run pnpm install to install the dependencies.
  3. Modify the package.json file to set your package name, version, description, author, and other relevant information.
  4. You are ready to start coding your TypeScript package!

License

This project is licensed under the MIT License - see the LICENSE file for details.