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

@homeassistant-extras/config

v0.3.1

Published

Shared ESLint, Prettier, TypeScript, Mocha, and NYC config for homeassistant-extras custom cards.

Readme

@homeassistant-extras/config

Shared dev tooling config for homeassistant-extras custom Lovelace cards and libraries.

Installation

yarn add -D @homeassistant-extras/config

Local sibling checkout:

"@homeassistant-extras/config": "file:../config"

Install the peer ESLint/Prettier plugins listed in each card repo's devDependencies (same set as before).

Usage

Prettier

In package.json:

"prettier": "@homeassistant-extras/config/prettier"

NYC

.nycrc:

{
  "extends": "@homeassistant-extras/config/nyc"
}

TypeScript

tsconfig.json:

{
  "extends": "@homeassistant-extras/config/tsconfig.base.json",
  "compilerOptions": {
    "paths": { "@/*": ["./src/*"] }
  },
  "include": ["src/**/*.ts"]
}

tsconfig.test.json:

{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    /* match @homeassistant-extras/config/tsconfig.test.base.json */
  },
  "include": ["test/**/*.ts", "test/**/*.spec.ts", "src/**/*.ts"],
  "exclude": ["node_modules"]
}

Copy compilerOptions from tsconfig.test.base.json (ts-node does not support array extends yet).

ESLint

eslint.config.mjs:

import { createCardEslintConfig } from "@homeassistant-extras/config/eslint/card";

export default createCardEslintConfig({
  tsconfigRootDir: import.meta.dirname,
});

Libraries use @homeassistant-extras/config/eslint/library.

Mocha

Add repo-local requires first, then shared setup:

{
  "require": [
    "./test/helpers/my-stub.cjs",
    "ts-node/register",
    "tsconfig-paths/register",
    "@homeassistant-extras/config/mocha/setup.card",
    "./test/mocha.hooks.ts"
  ],
  "extensions": ["ts"],
  "spec": ["test/**/*.spec.ts"],
  "watch-files": ["src/**/*.ts", "test/**/*.spec.ts"]
}

Publishing

This package ships config files only — there is no build step. Published artifacts are listed in package.json files.

Repository: github.com/homeassistant-extras/config

GitHub and npm are separate. Pushing to GitHub (git push) does not put the package on npm. Consumers install from the npm registry with yarn add -D @homeassistant-extras/config only after you run npm publish from this directory.

Check whether npm has the package:

npm view @homeassistant-extras/config version

If that returns 404, publish has not happened yet (or the version does not exist).

Prerequisites

  • npm account with access to the @homeassistant-extras scope (org member on npmjs.com)
  • GitHub SSH access to [email protected]:homeassistant-extras/config.git

One-time: log in to npm

npm login

Verify:

npm whoami

You should see your npm username. If publish fails with 403, ask an org owner to add you to the @homeassistant-extras team on npm.

First release (git + npm)

From the repo root:

yarn install
git add .
git commit -m "Initial release."
git push -u origin main
npm publish

publishConfig.access is set to public in package.json, so the scoped package publishes publicly without passing --access public.

Preview what npm would ship (optional):

npm pack --dry-run

Subsequent releases

  1. Bump version in package.json (semver).
  2. Commit, tag, and push:
git add package.json
git commit -m "chore: release v0.1.1"
git tag v0.1.1
git push origin main --tags
  1. Publish:
npm publish

Install after publish

Replace local file:../config in consuming repos with:

"@homeassistant-extras/config": "^0.1.0"

Then:

yarn install

Or install directly:

yarn add -D @homeassistant-extras/config

Install from GitHub (before npm publish)

If the repo is on GitHub but not npm yet, use a git dependency:

"@homeassistant-extras/config": "git+ssh://[email protected]/homeassistant-extras/config.git#v0.1.0"

Then yarn install. Prefer npm once @homeassistant-extras/config is published — installs are faster and semver ranges work with yarn upgrade.