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

typescript-prod-starter

v1.0.1

Published

scaffold a production ready typescript project.

Readme

1. Package Overview

This package helps skip the process of routine-based boilerplate configuration for a typescript based production ready project. By simply running a terminal command your project is scaffolded with the necessary production ready configurations.

2. Installation

To install the package all you need do is run the command:

npm install typescript-prod-starter --global

For this installation to work you must have node >= 20 installed. Install here

3. Usage Instructions

NOTE: This package can only be used for a new project.

Initialize your project

npm init -y

Scaffolding your project

  • To scaffold your project run the command
typescript-prod-starter init

4. Features

  • a tsconfig.json file is created for you, with the following compiler options:
{
"compilerOptions": {
 "target": "ES6",
 "outDir": "./build/",
 "module": "commonjs",
 "strict": true,
 "noUnusedLocals": true,
 "noUnusedParameters": true,
 "noImplicitReturns": true,
 "noFallthroughCasesInSwitch": true,
 "esModuleInterop": true,
 "resolveJsonModule": true
}
}
  • a test index.ts file is created.

  • already configured eslint plugins:

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import stylistic from "@stylistic/eslint-plugin";

export default tseslint.config({
 files: ['**/*.ts'],
 extends: [
     eslint.configs.recommended,
     ...tseslint.configs.recommendedTypeChecked,
 ],
 languageOptions: {
     parserOptions: {
         project: true,
         tsconfigRootDir: import.meta.dirname,
     },
 },
 plugins: {
     "@stylistic": stylistic,
 },
 ignores: ["build/*"],
 rules: {
     '@stylistic/semi': 'error',
     '@typescript-eslint/no-unsafe-assignment': 'error',
     '@typescript-eslint/no-explicit-any': 'error',
     '@typescript-eslint/explicit-function-return-type': 'off',
     '@typescript-eslint/explicit-module-boundary-types': 'off',
     '@typescript-eslint/restrict-template-expressions': 'off',
     '@typescript-eslint/restrict-plus-operands': 'off',
     '@typescript-eslint/no-unused-vars': [
         'error',
         { 'argsIgnorePattern': '^_' }
     ],
 },
});
  • the following libraries are installed:
 "devDependencies": {
 "@eslint/js": "^9.18.0",
 "@stylistic/eslint-plugin": "^2.13.0",
 "@types/eslint__js": "^8.42.3",
 "eslint": "^9.18.0",
 "typescript": "^5.7.3",
 "typescript-eslint": "^8.21.0"
}
  • the following scripts are added to your package.json file:
 "scripts": {
   "tsc": "tsc",
   "lint": "eslint ."
 }

5. Examples

  • the folder structure resembles this:

  • folder_structure

9. License

  • MIT