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

@alexandrebenkendorf/frontend-tooling

v2.1.0

Published

Shared frontend tooling configs

Readme

@alexandrebenkendorf/frontend-tooling

Shared frontend tooling configs for ESLint, Prettier, and TypeScript.

Quick start

npm install -D @alexandrebenkendorf/frontend-tooling eslint prettier typescript typescript-eslint
npx frontend-tooling-init

The init command patches the project interactively and in a reviewable way. It does not silently rewrite files on install. See docs/init.md for all flags, defaults, and the legacy migration flow.

Install only the peer dependencies your config actually uses:

# React projects
npm install -D eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-refresh eslint-plugin-jsx-a11y

# Vitest projects
npm install -D @vitest/eslint-plugin

# Jest projects
npm install -D eslint-plugin-jest

# Import sorting in Prettier (opt-in)
npm install -D @trivago/prettier-plugin-sort-imports

# EJS formatting (opt-in)
npm install -D prettier-plugin-ejs

Exports

| Export | Purpose | | ------------------------------------------------------------ | ----------------------------------------------------- | | @alexandrebenkendorf/frontend-tooling/eslint | Async ESLint flat config builder | | @alexandrebenkendorf/frontend-tooling/prettier | definePrettierConfig builder with opt-in plugins | | @alexandrebenkendorf/frontend-tooling/lint-staged | Shared lint-staged config | | @alexandrebenkendorf/frontend-tooling/tsconfig/base.json | Base TypeScript config (strict, generic, no jsx/DOM) | | @alexandrebenkendorf/frontend-tooling/tsconfig/react.json | TypeScript config for React projects (jsx + DOM) | | @alexandrebenkendorf/frontend-tooling/tsconfig/node.json | TypeScript config for Node.js projects | | @alexandrebenkendorf/frontend-tooling/tsconfig/eslint.json | TypeScript config scoped to ESLint type-checks | | .editorconfig | Copied to consumer project by frontend-tooling-init |

Documentation

Usage examples

TypeScript

React project (tsconfig.json):

{
  "extends": "@alexandrebenkendorf/frontend-tooling/tsconfig/react.json",
  "include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.mjs", "**/*.cjs"]
}

Tooling files (tsconfig.node.json):

{
  "extends": "@alexandrebenkendorf/frontend-tooling/tsconfig/node.json",
  "include": ["vite.config.ts", "*.config.ts", "scripts/**/*"]
}

ESLint type-checking (tsconfig.eslint.json):

{
  "files": [],
  "references": [{ "path": "./tsconfig.json" }, { "path": "./tsconfig.node.json" }]
}

Non-React project uses tsconfig/base.json instead of tsconfig/react.json. See docs/typescript.md for overrides.

ESLint

// eslint.config.mjs
import defineEslintConfig from '@alexandrebenkendorf/frontend-tooling/eslint';

export default await defineEslintConfig({ includeReact: true, testFramework: 'vitest' });

Prettier

// prettier.config.mjs
import definePrettierConfig from '@alexandrebenkendorf/frontend-tooling/prettier';

export default definePrettierConfig({ sortImports: true });

lint-staged

// lint-staged.config.mjs
export { default } from '@alexandrebenkendorf/frontend-tooling/lint-staged';