# globby: 6.4 out of 10

Reasonable, with limits. 5th of 9 in [Globs and file watching](https://elestia.ai/opensource/files/index.md).

globby is a long-running glob wrapper over fast-glob. It adds several patterns at once, negation, directory expansion and real .gitignore support. It is well kept, but many major tools have moved to tinyglobby, which has far fewer dependencies, so globby now makes sense mainly when you need its gitignore handling.

**Best for:** Node CLIs and scripts that must find files while respecting .gitignore and other ignore files, without writing that logic themselves.

## Scores

- **Overall: 6.4** (likely 5.4 to 7.4)
  - Claude Opus 5.5 (5.5): It is a well-maintained, capable library, and its gitignore support remains a real reason to pick it. For plain globbing in a new project, tinyglobby does the same job with far fewer dependencies, and the ecosystem has moved to it. globby's share is shrinking fast. It is a reasonable choice with clear limits rather than the default.
  - GPT-6.2 Sol (7.2): Globby is a strong pick for Node.js tools that need to discover files using a repository’s ignore rules. For ordinary matching, tinyglobby has a smaller dependency tree, and modern Node covers many basic searches on its own. Recent fixes support choosing Globby for its specialty, while concentrated release ownership and weaker adoption growth limit the wider recommendation.
- **Needed by many: 5.8** (likely 4.7 to 6.9)
  - Claude Opus 5.5 (6.0): Many Node build scripts, CLIs and tools need to find files by pattern. globby only finds files. It does not watch, copy or delete them, and it runs only on Node. That is a large group of developers, but not most of them.
  - GPT-6.2 Sol (5.5): File discovery serves build scripts, linters, test runners, and CLIs across frameworks. Globby covers the matching part of the category, and Node’s built-in glob API covers many simple searches. State of JavaScript shows how widely developers use Node.js, but does not measure how many need a separate glob library.
- **Helps a lot: 7.5** (likely 6.4 to 8.4)
  - Claude Opus 5.5 (7.0): It has the richest ignore-file handling among the glob libraries, plus negation, directory expansion and stream, sync and promise APIs. The types and docs are good. The limits are a heavy dependency tree, gitignore scanning that can be slow on big repositories, and speed that is no better than fast-glob, which it is built on. tinyglobby does the common cases with far fewer dependencies.
  - GPT-6.2 Sol (7.9): The typed API, short examples, and built-in ignore-file handling make repository scans straightforward to write. Version 16 can skip ignored directories during traversal, and recent patches fixed several ignore-rule edge cases. Windows pattern handling takes care, and benchmark results vary by pattern and workload.
- **Holds up over time: 6.3** (likely 5.2 to 7.3)
  - Claude Opus 5.5 (6.0): There were 7 releases and 17 commits in the last year, with 1 open issue and no open pull requests. That shows careful upkeep by a maintainer who is funded through sponsorship. The risks are that one person can release it, that it depends on fast-glob, whose last release was in January 2025, and that the wider ecosystem is moving to tinyglobby. Majors arrive about once a year and sometimes change behaviour.
  - GPT-6.2 Sol (6.5): Seven releases and 17 commits in the past year show ongoing maintenance, with a July regression fix merged and shipped the same day. The maintainer has community sponsorship, and one npm account handles releases. Version 16 changed which ignore rules apply, and Stylelint’s switch to tinyglobby adds uncertainty about future adoption.
- **Used widely: 6.5** (likely 5.3 to 7.6)
  - Claude Opus 5.5 (6.0): Downloads are large at 453M per 4 weeks, and 3.7M dependent repositories put it among the most widely depended-on packages. But its year-over-year ratio is about 1.56, against a median of 4.1, so it is clearly losing ground. tinyglobby went from 152M to 1.18B over the same year. Much of globby's use comes from old dependency trees spread across ten major versions.
  - GPT-6.2 Sol (6.9): Ecosyste.ms found 3.77 million dependent repositories, the highest available count in the bundle, and about 13,100 dependent npm packages. Downstream tools such as del account for some installs, so the number of projects choosing Globby directly remains uncertain. Downloads rose from 291 million to 453 million, or 1.56×, below the catalog median of 4.1× and tinyglobby’s 7.81×.
- **Vouched for: 5.9** (likely 4.8 to 7.0)
  - Claude Opus 5.5 (5.0): Linters, CLIs and other projects have used it in production for years. The signal is fading: well-known tools such as tsup, Vite and copy-webpack-plugin now advertise moving to tinyglobby. There are no independent benchmarks or survey data that favour globby today.
  - GPT-6.2 Sol (6.8): markdownlint-cli2 and SAP’s UI5 MCP server list Globby 16.2.4 as a runtime dependency. Stylelint’s migration confirms the value of Globby’s ignore-file handling and shows that a major user chose a smaller dependency tree. Independent comparisons cover individual workloads, and recent Globby-specific satisfaction data is scarce.
- **Safe: 6.1** (likely 5.1 to 7.2)
  - Claude Opus 5.5 (6.0): It has no known advisories and an MIT licence. Its OpenSSF Scorecard score is low at 3.4, with no code review, no branch protection and unpinned dependencies. It pulls in about 23 transitive packages, which widens the supply-chain surface compared with tinyglobby.
  - GPT-6.2 Sol (6.2): Globby uses MIT, and OSV lists zero direct advisories. Its seven runtime dependencies widen the supply-chain exposure, although GitHub withdrew the recent advisory for the transitive `braces` package. OpenSSF scored it 3.4, with zeroes for code review, branch protection, and workflow token permissions. One account appears to publish releases, and npm publishing provenance remains unverified.

## Good

- Built-in .gitignore and ignore-file support that follows Git's lookup up to the repository root (since v16).
- Promise, sync and stream APIs, with several patterns, negation-only patterns and directory expansion.
- Steady patch releases in 2026 fix gitignore edge cases, and almost no issues or pull requests are open.
- It ships its own TypeScript types, has an MIT licence and has no known advisories.

## Bad

- It pulls in about 23 transitive packages through fast-glob and micromatch, against 2 for tinyglobby.
- It is ESM-only and needs Node 20 or later, and recent major versions changed behaviour (v16 changed how it finds .gitignore files).
- Its downloads grow much more slowly than its peers' as Vite, Angular, SvelteKit, pnpm and others switch to tinyglobby.
- gitignore: true can be slow on large trees, and a long-standing performance issue is still discussed.

## The numbers

- Downloads, 4 weeks: 453M
- In a year: +56%
- GitHub stars: 2.7k
- Commits, 12 months: 17
- Last npm release: Aug 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/sindresorhus/globby
- npm: https://www.npmjs.com/package/globby

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
