{
 "kind": "tool",
 "slug": "tinyglobby",
 "path": "tools/tinyglobby/",
 "name": "tinyglobby",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Build tools and bundlers",
   "tools/build-tools/"
  ]
 ],
 "lead": "Find files by pattern in Node.js.",
 "chips": [
  {
   "label": "Build tools and bundlers",
   "path": "tools/build-tools/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install tinyglobby"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/SuperchupuDev/tinyglobby"
  },
  {
   "label": "Website",
   "href": "https://superchupu.dev/tinyglobby"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "Permission is hereby granted, free of charge, to any person obtaining a copy",
   "note": "MIT allows use in paid and closed-source apps.",
   "src": "https://github.com/SuperchupuDev/tinyglobby/blob/main/LICENSE"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release May 30, 2026. ",
   "src": "https://github.com/SuperchupuDev/tinyglobby"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "5 projects",
   "status": "info",
   "sub": "#105 of 185 in its category",
   "note": "Dependency in 5 public GitHub projects set up for AI coding agents that we scanned (0.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily; card checked Nov 11, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What tinyglobby does",
   "parts": [
    {
     "t": "prose",
     "text": "tinyglobby is a small free JavaScript library that finds files in a folder by a pattern like src/**/*.ts. Your build script or tool gets back a list of matching file paths, with tests, hidden files or other folders left out as you ask. It is a lighter stand-in for the older globby and fast-glob libraries."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Pick source files for a build",
       "text": "A build or lint script needs every TypeScript file in src except tests and type files; one call returns that list.",
       "idea": false
      },
      {
       "title": "Swap out globby or fast-glob",
       "text": "Your project or a package you maintain uses globby or fast-glob; switching to tinyglobby keeps the same calls with far fewer extra packages to install.",
       "idea": false
      },
      {
       "title": "Collect docs pages for a site",
       "text": "A small docs or blog generator gathers every Markdown page in the project, without the ones inside installed packages.",
       "idea": true
      },
      {
       "title": "Stop a search that runs long",
       "text": "A tool that searches a big or unknown folder gives up after a second instead of making the user wait.",
       "idea": false
      },
      {
       "title": "Folders with brackets in names",
       "text": "A user picks a folder called photos (1) or [draft]; escape its name first so the brackets are read as plain letters, not as pattern signs.",
       "idea": false
      },
      {
       "title": "Find hidden config files",
       "text": "A setup checker looks for files like .env or .prettierrc, which a normal search skips because their names start with a dot.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "tinyglobby popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "51",
       "of": "/ 100",
       "l": "Gid Score, #1864 overall"
      },
      {
       "n": "317M",
       "l": "downloads a week, npm"
      },
      {
       "n": "549",
       "l": "GitHub stars"
      },
      {
       "n": "5",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How tinyglobby is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "tinyglobby joined the catalog on its public numbers (317,170,004 downloads a week on npm and 549 GitHub stars), not on our project count: it is a dependency in 12 public GitHub projects of our scan, 5 of them set up for AI coding agents.",
      "Projects that use it most often also use yaml (66.7%), chalk (58.3%), tsx (58.3%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "5 projects, 0.2%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 66.7% of its projects",
       "v": "yaml",
       "path": "tools/yaml/"
      },
      {
       "l": "In 58.3% of its projects",
       "v": "chalk",
       "path": "tools/chalk/"
      },
      {
       "l": "In 58.3% of its projects",
       "v": "tsx",
       "path": "tools/tsx/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "Model Context Protocol SDK (JavaScript)",
       "path": "tools/modelcontextprotocol/"
      },
      {
       "l": "In 41.7% of its projects",
       "v": "Clack Prompts",
       "path": "tools/clack-prompts/"
      },
      {
       "l": "In 41.7% of its projects",
       "v": "Commander",
       "path": "tools/commander/"
      },
      {
       "l": "In 41.7% of its projects",
       "v": "oxfmt",
       "path": "tools/oxfmt/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about tinyglobby",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/SuperchupuDev",
        "3 GitHub sponsors"
       ]
      },
      {
       "title": "More in Build tools and bundlers",
       "path": "tools/build-tools/",
       "items": [
        {
         "text": "Vite",
         "path": "tools/vite/"
        },
        {
         "text": "Turborepo",
         "path": "tools/turbo/"
        },
        {
         "text": "esbuild",
         "path": "tools/esbuild/"
        },
        {
         "text": "Babel (JavaScript)",
         "path": "tools/babel-npm/"
        },
        {
         "text": "Laravel Vite Plugin",
         "path": "tools/laravel-vite-plugin/"
        },
        {
         "text": "React Compiler Babel Plugin",
         "path": "tools/babel-plugin-react-compiler/"
        },
        {
         "text": "Nx",
         "path": "tools/nx/"
        },
        {
         "text": "vite-tsconfig-paths",
         "path": "tools/vite-tsconfig-paths/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "tinyglobby",
       "me": true,
       "facts": [
        "MIT",
        "Gid 51",
        "317M/wk"
       ]
      },
      {
       "name": "globby",
       "why": "Pick globby when you want .gitignore rules applied for you through its gitignore option, which tinyglobby leaves out.",
       "path": "tools/globby/",
       "facts": []
      },
      {
       "name": "fast-glob",
       "why": "Pick fast-glob when existing code depends on its exact deep option, which tinyglobby counts in a different way.",
       "path": "tools/fast-glob/",
       "facts": []
      },
      {
       "name": "glob",
       "why": "Pick glob when you want the long-standing, widely used glob package and size matters less.",
       "path": "tools/glob/",
       "facts": []
      }
     ],
     "more": "Compare tinyglobby with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Use tinyglobby (pin tinyglobby@0.2.17, Node.js 12+) to list the project's files with glob(patterns, { cwd, ignore: ['node_modules/**'] }); set expandDirectories: false, sort the result, and add dot: true only if hidden files should count."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Add tinyglobby to your project; it runs on Node.js 12 or newer and pulls in only two small helper packages.",
       "code": null,
       "src": "https://registry.npmjs.org/tinyglobby/0.2.17"
      },
      {
       "text": "Call glob (returns a promise) or globSync with one pattern or a list; patterns starting with ! leave files out.",
       "code": "import { glob, globSync } from 'tinyglobby';\n\nawait glob(['files/*.ts', '!**/*.d.ts'], { cwd: 'src' });\nglobSync('src/**/*.ts', { ignore: '**/*.d.ts' });\n",
       "src": "https://github.com/SuperchupuDev/tinyglobby/blob/main/README.md"
      },
      {
       "text": "Search inside a folder by setting cwd; results come back relative to it unless you turn on absolute.",
       "code": "import { glob } from 'tinyglobby';\nconst files = await glob('src/**', { cwd: './projects/best-cats' });\n",
       "src": "https://superchupu.dev/tinyglobby/documentation"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Switching from fast-glob and keeping the same calls, like glob('src')",
       "fix": "Pass expandDirectories: false (it is on by default only to copy globby)",
       "why": "With the default, a folder name expands to every file inside it; our demo got 5 files for glob('src') and [] with expandDirectories: false."
      },
      {
       "dont": "glob({ patterns: ['src/**'] }) (patterns inside the options, the old form)",
       "fix": "glob(['src/**'], { ...options }) with the patterns as the first argument",
       "why": "Version 0.2.15 deprecated patterns in the options object; in our run passing both threw \"Cannot pass patterns as both an argument and an option\"."
      },
      {
       "dont": "await glob(`${dir}/*.ts`, { absolute: true }) with no cwd",
       "fix": "await glob('*.ts', { absolute: true, cwd: dir })",
       "why": "Patterns that reach outside cwd are slower, and the paths you get back are still worked out from cwd, not from the pattern."
      },
      {
       "dont": "Expecting a pattern with a trailing slash, like src/index.ts/, to match only folders",
       "fix": "Use onlyDirectories: true when you want folders only",
       "why": "tinyglobby ignores the trailing slash; in our run 'src/index.ts/' still returned the file src/index.ts."
      },
      {
       "dont": "Treating the result of a glob with signal as complete",
       "fix": "Check whether the signal fired (signal.aborted) before trusting the list",
       "why": "When the signal aborts, the search stops and returns what it has without an error; in our run an aborted signal returned []."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Can I just replace fast-glob with it?",
       "a": "Mostly yes, but set expandDirectories: false, because tinyglobby turns it on by default to match globby.",
       "evidence": {
        "url": "https://superchupu.dev/tinyglobby/migration",
        "quote": "In 99% of cases, you want this off, unless you want to recreate how globby works."
       }
      },
      {
       "q": "Does it skip files listed in .gitignore?",
       "a": "No. There is no gitignore option; the migration guide shows a workaround with git ls-files.",
       "evidence": {
        "url": "https://superchupu.dev/tinyglobby/migration",
        "quote": "tinyglobby does not implement this option as it's barely used and it would take an increase in dependencies to add."
       }
      },
      {
       "q": "If I pass an absolute path as the pattern, do I get absolute paths back?",
       "a": "No. Results are relative to cwd whatever the pattern looks like; turn on absolute: true to get full paths.",
       "evidence": {
        "url": "https://superchupu.dev/tinyglobby/comparison",
        "quote": "This means that providing an absolute pattern will not result in an absolute path being returned."
       }
      },
      {
       "q": "Can I search a fake or in-memory folder, for example in tests?",
       "a": "Yes. The fs option takes your own readdir, realpath and stat functions instead of Node's.",
       "evidence": {
        "url": "https://superchupu.dev/tinyglobby/documentation",
        "quote": "An object that overrides node:fs functions."
       }
      },
      {
       "q": "Can I use it in a paid product?",
       "a": "Yes, it is MIT licensed; keep its license notice in copies you ship.",
       "evidence": {
        "url": "https://github.com/SuperchupuDev/tinyglobby/blob/main/LICENSE",
        "quote": "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm tinyglobby"
  ],
  [
   "Category",
   "Build tools and bundlers"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "50.9"
  ],
  [
   "Rank in category",
   "#105 of 185"
  ],
  [
   "GitHub",
   "SuperchupuDev/tinyglobby"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [
  "It does not read .gitignore files. The guide shows a workaround that asks git for the ignored files and passes them as ignore patterns.",
  "The order of the files in the result can change between runs, so sort the list if order matters.",
  "Files and folders whose names start with a dot, like .env, are skipped unless you turn on the dot option."
 ],
 "checked_line": "Read by AgentGid from 10 official pages, card checked Nov 11, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/superchupudev.png"
}