# thecodrr/fdir

⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s

Repository: https://github.com/thecodrr/fdir
Canonical: https://ross.abutalabs.com/products/fdir
Homepage: https://thecodrr.github.io/fdir/
Language: TypeScript
License: MIT
License Family: permissive
Topics: fdir, fast, nodejs, javascript, os, sys, fs, filesystem, walker, directory, directory-tree, glob, fast-glob, hacktoberfest
Last push: 2025-08-16T13:15:37+00:00

## Health v2 (maintenance only)
Score: 47/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 37, release rhythm 30, longevity 100
- inputs: {"age_days": 2364, "days_push": 382, "days_rel": 384, "gap_med": 39, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1730, forks 70 (observed 2026-08-28T04:05:28.588276+00:00)

## What it is
fdir is an extremely fast directory crawler and globbing library for NodeJS, capable of crawling 1 million files in under a second. It uses a builder-pattern API, has zero dependencies (globbing requires optional picomatch), and ships in under 2KB gzipped.

## Use cases
- list all files in a directory tree quickly
- find files matching glob patterns in NodeJS
- build a directory tree listing
- replace glob or fast-glob for faster file walking
- crawl large file systems with millions of files
- get full paths of files recursively

## When to choose
- you need the fastest possible directory traversal in NodeJS
- you want a tiny, zero-dependency file walker
- you need both sync and async crawling APIs
- you're building tooling like bundlers or linters that scan file trees

## When to avoid
- you need to crawl directories outside NodeJS (browser, Python, etc.)
- you need advanced glob features beyond what picomatch provides
- you need file watching or change detection
- you need cross-platform shell-style globbing with complex brace expansion out of the box

## Facets
- artifact type: library
- maturity: stable
- function: file-system, search-engine, developer-tools
- domain: developer-tools, files, performance
- platform: cross-platform
- tags: directory-crawler, globbing, file-walker, builder-pattern, zero-dependency, command-line, nodejs

## Member repositories
- thecodrr/fdir (main) score 47

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:28.588276+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:31:45.813695+00:00, confidence not recorded.
  - readme: https://github.com/thecodrr/fdir (fetched 2026-08-28T04:05:28.588276+00:00, sha 64df71662df3)
  - homepage: https://thecodrr.github.io/fdir/ (fetched 2026-08-29T11:08:56.769262+00:00, sha 49d6e5e4fc20)
  - registry_npm: https://registry.npmjs.org/fdir (fetched 2026-08-29T11:08:56.778232+00:00, sha 9057b3a06abe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
