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

@jabraf/dev

v0.0.5

Published

Shared and opinionated utilities and scripts for web projects

Readme

@jabraf/dev

Collection of web dev tools

Documentation

Here is the documentation for different tools available in this package.

TSConfig

Create a tsconfig.json file in the project and extend one of the available base configs:

{
  "extends": "@jabraf/dev/tsconfig/lib"
}

Available TSConfigs:

| Subpath export | Description | | --------------------------- | --------------------------------- | | @jabraf/dev/tsconfig/base | Shared base — strict, ESM, ES2023 | | @jabraf/dev/tsconfig/lib | React library (jsx: react, emits) | | @jabraf/dev/tsconfig/app | React application (jsx: preserve) | | @jabraf/dev/tsconfig/node | Node.js / bundler targets |

Prettier

Create a .prettierrc.mjs or .prettierrc.mts file in the project and export the base config:

import basePrettierConfig from '@jabraf/dev/prettier';

export default basePrettierConfig;

or in package.json

{
  "prettier": "@jabraf/dev/prettier"
}

Named export: basePrettierConfig.

ESLint

Create a eslint.config.js or eslint.config.ts file in the project and export the base config:

import baseEslintConfig from '@jabraf/dev/eslint';

export default baseEslintConfig;

Named export: baseEslintConfig.

The config automatically ignores dist, build, and node_modules and includes recommended rules for JavaScript, TypeScript, and React.

Lintstaged

Create a .lintstagedrc.mjs file in the project and export the base config:

import baseLintStagedConfig from '@jabraf/dev/lint-staged';

export default baseLintStagedConfig;

Named exports: baseLintStagedConfig, lintStagedCommands.

The config runs:

  • prettier --write for staged *.{js,mjs,ts,mts,jsx,tsx,md,yaml,yml,json,xml} files.
  • eslint and vitest run related --bail 0 --passWithNoTests for staged *.{js,ts,mjs,mts,jsx,tsx} files.

To compose a custom config, use the lintStagedCommands helpers (eslint, tsc, vitest, prettier):

import { lintStagedCommands } from '@jabraf/dev/lint-staged';

export default {
  '*.{js,ts,mjs,mts,jsx,tsx}': (files) => [lintStagedCommands.eslint(files), lintStagedCommands.tsc()],
};

Commit lint

Create a commitlint.config.js file in the project and export the base config:

import baseCommitLintConfig from '@jabraf/dev/commitlint';

export default baseCommitLintConfig;

Named export: baseCommitLintConfig.

Playwright

Create a playwright.config.ts file in the project and use the basePlaywrightConfig factory:

import { basePlaywrightConfig } from '@jabraf/dev/playwright';

export default basePlaywrightConfig();

Pass options to customise the test directory, base URLs, CI behaviour, and browser projects:

export default basePlaywrightConfig({
  testDir: './e2e',
  isFunctional: process.env.TEST_ENV === 'functional',
  isCI: Boolean(process.env.CI),
  baseURL: 'https://jabran.dev',
  devServerURL: 'http://localhost:3000',
});

Example npm scripts:

"test:functional": "TEST_ENV=functional playwright test --grep-invert @non-functional",
"test:e2e": "playwright test --grep @e2e",
"test:vr": "playwright test --grep @vr",

| Option | Type | Default | Description | | -------------- | ---------------------------------- | ------------------------- | ------------------------------------------------------------------ | | testDir | string | './integration' | Directory containing Playwright tests | | isFunctional | boolean | false | When true, starts a dev/build server and targets devServerURL | | isCI | boolean | false | Enables CI-specific settings (forbid .only, 2 retries, 1 worker) | | baseURL | string | 'http://localhost' | Base URL used when isFunctional is false | | devServerURL | string | 'http://localhost' | Dev server origin used when isFunctional is true | | projects | PlaywrightTestConfig['projects'] | Chromium (Desktop Chrome) | Playwright browser project definitions |

Vitest

Create a vitest.config.ts file in the project and use the baseVitestConfig factory:

import { baseVitestConfig } from '@jabraf/dev/vitest';

export default baseVitestConfig();

Pass options to enable React Testing Library support or coverage reporting:

export default baseVitestConfig({ react: true, coverage: true });

| Option | Type | Default | Description | | ----------- | ---------- | ------------- | ----------------------------------------- | | react | boolean | false | Adds the React Testing Library setup file | | coverage | boolean | false | Enables V8 coverage provider | | reporters | string[] | ['default'] | Vitest reporter list |