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

firebase-tools-with-isolate

v15.17.0

Published

Command-Line Interface for Firebase with monorepo support

Readme

Firebase CLI with monorepo support

This is a fork of firebase-tools that integrates isolate-package into the functions deploy command to support monorepo setups. Whether to run isolation is decided by detect-monorepo, so standalone projects are untouched.

The integration is minimal — roughly 50 lines of code across 3 files — and does not affect any existing functionality. Isolation runs automatically whenever your functions source directory sits inside a detected monorepo (pnpm / npm / yarn / bun workspaces, or Rush). Standalone projects are left untouched and behave exactly like upstream.

Installation

Add this dependency to the root of your monorepo:

pnpm add firebase-tools-with-isolate -D -w

Or the equivalent for NPM or Yarn. I encourage using pnpm — apart from being fast and efficient, it has better monorepo support, and the lockfile isolation code is solid and works in parallel for multiple packages, unlike NPM.

Important: Remove/uninstall the original firebase-tools package if you have it installed, because otherwise that binary might get precedence over the forked one and npx firebase deploy will execute the wrong one.

Usage

Installing the fork provides you with the same firebase command. On the command line, prefix it with npx:

npx firebase deploy

In package.json scripts, npx is not required — scripts already prefer locally installed binaries.

Configuration

No configuration is required. When you run firebase deploy, the fork calls detectMonorepo from detect-monorepo on the functions source directory. If a workspace root is found (pnpm-workspace.yaml, a parent package.json with a workspaces field, or rush.json), isolation runs automatically. Otherwise the deploy proceeds exactly as in upstream firebase-tools.

{
  "functions": {
    "source": ".",
    "runtime": "nodejs22",
    "predeploy": ["turbo build"]
  }
}

For a monorepo with multiple function packages, place firebase.json at the root:

{
  "functions": [
    {
      "source": "services/api",
      "predeploy": ["pnpm build:api"],
      "runtime": "nodejs22",
      "codebase": "api"
    },
    {
      "source": "services/fns",
      "predeploy": ["pnpm build:fns"],
      "runtime": "nodejs22",
      "codebase": "fns"
    }
  ]
}

Note: firebase-tools has a limitation that prevents running predeploy commands containing =. So "turbo build --filter=@repo/api" won't work. Use "pnpm build:api" instead, with "build:api": "turbo build --filter=@repo/api" in your root package.json.

For a complete working example of a modern monorepo setup, check out mono-ts.

How this fork stays in sync

Fork versions match upstream firebase-tools versions (e.g. 15.13.0 corresponds to upstream v15.13.0). The fork is kept in sync using automated tooling:

Scripts (scripts/sync/)

  • apply-isolate-changes.mjs — Applies the isolate integration on top of any clean upstream release. Patches 2 source files plus package.json and the README, using anchor-based string matching verified to be stable across upstream releases from v15.4.0 through v15.13.0.

  • sync-upstream.sh — Orchestrates the full sync: fetches upstream, merges a release tag, re-applies the isolate changes, installs dependencies, and verifies the build compiles.

The sync can also be triggered manually:

# Sync to the latest upstream release
./scripts/sync/sync-upstream.sh

# Sync to a specific version
./scripts/sync/sync-upstream.sh --target v15.13.0

# Dry run (no push)
./scripts/sync/sync-upstream.sh --no-push --no-build

GitHub Actions (.github/workflows/)

All workflows use Node 24 and npm OIDC trusted publishing (provenance).

  • sync-upstream.yml — Runs daily (09:00 UTC) and on manual dispatch. Checks for new upstream firebase-tools releases, merges to main, and triggers the publish workflow automatically. Can target a specific version.

  • update-isolate.yml — Updates the isolate-package dependency to a given version, bumps the fork's pre-release number (e.g. 15.13.015.13.0-1), and opens a PR targeting main. Follow up with the publish workflow to release to npm.

  • publish.yml — Publishes the fork to npm. Called automatically by the sync workflow, or can be triggered manually. Creates a git tag and GitHub release.

Versioning

  • The daily sync automatically publishes version X.Y.Z matching upstream vX.Y.Z
  • Isolate-package updates use pre-release versions (X.Y.Z-1, X.Y.Z-2, ...) published under the next dist-tag

Issues

Issues on this repository are disabled. For problems with the isolation step itself, submit them at isolate-package. For problems with how the fork decides whether a project is a monorepo, submit them at detect-monorepo. For anything unrelated to the isolate integration, refer to the upstream firebase-tools.

Documentation

For all other documentation see the official firebase-tools.