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

@berenddeboer/nx-biome

v1.0.2

Published

Nx self-inferring plugin for Biome linter and formatter with batch processing support

Downloads

617

Readme

@berenddeboer/nx-biome

A self-inferring Nx plugin for Biome - a fast linter and formatter for JavaScript, TypeScript, JSON, and CSS. This plugin includes support for batch processing, which dramatically speeds up linting in monorepos.

Table of Contents

Features

  • Self-inferring plugin that automatically adds lint targets to all projects
  • Standard executor for single project linting
  • Batch executor for running Biome once across all affected projects - massive performance improvement for large monorepos
  • Caching support for faster subsequent runs

Install

npm install --save-dev @berenddeboer/nx-biome
pnpm add --save-dev @berenddeboer/nx-biome
yarn add --dev @berenddeboer/nx-biome
bun add -D @berenddeboer/nx-biome

Usage

Plugin Setup

Add the plugin to your nx.json:

{
  "plugins": [
    {
      "plugin": "@berenddeboer/nx-biome",
      "options": {
        "targetName": "lint"
      }
    }
  ]
}

This will automatically add a lint target to all projects in your workspace.

Basic Usage

Run linting for a single project:

nx lint my-project

Run linting for all affected projects:

nx affected -t lint

Batch Mode (Recommended for CI)

The --batch flag enables batch processing, which runs Biome once for all affected projects instead of spawning separate processes for each project. This can provide massive performance improvements in monorepos with many projects.

nx affected -t lint --batch

Why use --batch?

In a typical Nx setup, running nx affected -t lint spawns a separate Biome process for each affected project. With the batch executor:

  • Biome is invoked only once with all project directories
  • No process spawning overhead per project
  • Biome can optimize its internal caching across all directories
  • Significantly faster execution, especially in CI environments

Example performance improvement:

| Projects | Without --batch | With --batch | | -------- | ----------------- | -------------- | | 10 | ~15s | ~3s | | 50 | ~60s | ~8s | | 100 | ~120s | ~12s |

Actual times depend on project size and machine specifications.

All Projects

Run linting for all projects:

nx run-many -t lint
nx run-many -t lint --batch

Configuration

Plugin Options

| Option | Type | Default | Description | | ------------ | ------ | ------- | ------------------------------------------------- | | targetName | string | lint | The name of the target to create for each project |

Executor Options

| Option | Type | Default | Description | | ------------- | ------ | ------- | --------------------------------- | | projectRoot | string | . | The root directory of the project |

Biome Configuration

This plugin expects a biome.json or biome.jsonc configuration file at the workspace root or in individual project directories. See the Biome configuration documentation for details.

Caching

The plugin configures Nx caching with appropriate inputs:

  • Project-level biome.json / biome.jsonc
  • Workspace-level biome.json / biome.jsonc
  • Source files: *.ts, *.tsx, *.js, *.jsx, *.mjs, *.json, *.jsonc, *.css, *.md

This ensures the cache is invalidated when relevant files change.

Contributing

See the contributing file!

PRs accepted.

License

This project is MIT licensed.