{
  "id": "task_libraries:fuzzy-search/javascript",
  "path": "/exapedia/javascript-fuzzy-search-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript fuzzy search libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript fuzzy search libraries match a query against a list of strings or objects even when the spelling differs. Each library scores how closely the query's characters appear in an item and returns the items ranked by that score. These libraries run the command palettes, autocomplete boxes, and quick filters in web apps and code editors."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript fuzzy search libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#fuzzysort",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F132"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fuse-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F31"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tanstack-match-sorter-utils",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fuzzy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#match-sorter",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fzf-for-javascript",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F57"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fast-fuzzy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F82"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#nozbe-microfuzz",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#fuzzysort",
          "label": [
            {
              "t": "fact",
              "fact": "F132"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F133"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Reusable collection preprocessing",
            "Multiple fields per item"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#fuzzysort",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F132"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fuse-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tanstack-match-sorter-utils",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fuzzy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#match-sorter",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fzf-for-javascript",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fast-fuzzy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#nozbe-microfuzz",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "fuzzysort",
          "name": [
            {
              "t": "fact",
              "fact": "F132"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/farzher/fuzzysort"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/fuzzysort"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/farzher/fuzzysort/contents/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F11"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/farzher/fuzzysort/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F132"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/anomalyco/opencode",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function search(index: ReturnType<typeof emptyIndex>, input: FileSystem.FindInput) {\n  const items =\n    input.type === \"file\"\n      ? Array.from(index.files.values())\n      : input.type === \"directory\"\n        ? Array.from(index.directories.values())\n        : [...index.files.values(), ...index.directories.values()]\n  const result = fuzzysort.go(input.query, items, { limit: input.limit ?? 50 })\n  // Targets are owned by the current location index. The only global fuzzysort\n  // state left is its query cache, which must not retain every query forever.\n  fuzzysort.cleanup()\n  return result.map((item) => {\n    const relative = item.target\n    const type = relative.endsWith(path.sep) ? (\"directory\" as const) : (\"file\" as const)\n    return FileSystem.Entry.make({\n      path: RelativePath.make(relative),\n      type,\n    })\n  })\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/anomalyco/opencode/blob/f6e0c2d0833ffe772035f221fed923e1cd5fb408/packages/core/src/filesystem/search.ts#L31-L50",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F143"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Projects%20using%20fuzzysort%20for%20fuzzy%20matching%20command%20palettes%20file%20pickers%20or%20object%20lists&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F132"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import fuzzysort from 'fuzzysort'\n\nconst results = fuzzysort.go('mr', ['Mercury', 'Mars'])\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/farzher/fuzzysort/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F137"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fuse-js",
          "name": [
            {
              "t": "fact",
              "fact": "F146"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/krisk/Fuse"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/fuse.js"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/krisk/Fuse/contents/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F37"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F31"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/krisk/Fuse/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mantinedev/mantine",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "const fuzzySearchFilter: SpotlightFilterFunction = (query, actions) => {\n  if (!query.trim()) {\n    return actions;\n  }\n\n  const flatActions = actions.reduce<any[]>((acc, item) => {\n    if ('actions' in item) {\n      return [...acc, ...item.actions.map((action) => ({ ...action, group: item.group }))];\n    }\n    return [...acc, item];\n  }, []);\n\n  const fuse = new Fuse(flatActions, {\n    keys: ['label', 'description', 'keywords'],\n    threshold: 0.3,\n    minMatchCharLength: 1,\n  });\n\n  const results = fuse.search(query).map((result) => result.item);\n\n  const groups: Record<string, any> = {};\n  const result: any[] = [];\n\n  results.forEach((action) => {\n    if (action.group) {\n      if (!groups[action.group]) {\n        groups[action.group] = { pushed: false, data: { group: action.group, actions: [] } };\n      }\n      groups[action.group].data.actions.push(action);\n      if (!groups[action.group].pushed) {\n        groups[action.group].pushed = true;\n        result.push(groups[action.group].data);\n      }\n    } else {\n      result.push(action);\n    }\n  });\n\n  return result;\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mantinedev/mantine/blob/3646de9f0fe83eaf2946154e6385bd82eb15c243/apps/mantine.dev/src/components/Search/Search.tsx#L9-L48",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Projects%20using%20fuse.js%20for%20fuzzy%20matching%20command%20palettes%20file%20pickers%20or%20object%20lists&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import Fuse from 'fuse.js'\n\nconst fuse = new Fuse([{ title: 'Mercury' }], { keys: ['title'] })\nconst results = fuse.search('mercury')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/fuse.js@7.5.0/dist/fuse.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "fuse.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tanstack-match-sorter-utils",
          "name": [
            {
              "t": "fact",
              "fact": "F160"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/TanStack/table"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@tanstack/match-sorter-utils"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/TanStack/table/contents/packages/match-sorter-utils/src/index.ts"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/TanStack/table/contents/packages/match-sorter-utils/src/index.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/KevinVandy/material-react-table",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "const fuzzy = <TData extends MRT_RowData>(\n  row: Row<TData>,\n  columnId: string,\n  filterValue: number | string,\n  addMeta: (item: RankingInfo) => void,\n): boolean => {\n  const itemRank = rankItem(\n    row.getValue<string | number | null>(columnId),\n    filterValue as string,\n    {\n      threshold: rankings.MATCHES,\n    },\n  );\n  addMeta(itemRank);\n  return itemRank.passed;\n};",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/KevinVandy/material-react-table/blob/60080592eaefd57f53abec383f449fa7d59168a0/packages/material-react-table/src/fns/filterFns.ts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F173"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40tanstack/match-sorter-utils%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { rankItem } from '@tanstack/match-sorter-utils'\n\nconst match = rankItem('Mercury', 'mer')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/TanStack/table/contents/packages/match-sorter-utils/src/index.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fuzzy",
          "name": [
            {
              "t": "fact",
              "fact": "F176"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mattyork/fuzzy"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/fuzzy"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/mattyork/fuzzy/contents/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F183"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/mattyork/fuzzy/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F176"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/embarklabs/embark",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function fuzzySearch(text, list, filter) {\n  const fuzzy = require('fuzzy');\n  return fuzzy.filter(text, list, {\n    extract: filter\n  });\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/embarklabs/embark/blob/c7a5c4c36880dd254917e9a1060788ed7763f943/packages/core/utils/src/index.ts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=fuzzy%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F176"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const fuzzy = require('fuzzy')\n\nconst results = fuzzy.filter('mr', ['Mercury', 'Mars'])\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/mattyork/fuzzy/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F181"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "match-sorter",
          "name": [
            {
              "t": "fact",
              "fact": "F192"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/kentcdodds/match-sorter"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/match-sorter"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/kentcdodds/match-sorter/contents/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F199"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/kentcdodds/match-sorter/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/vllm-project/recipes",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function searchRecipes(recipes, query) {\n  const q = query.trim();\n  if (!q) return [];\n  return q.split(/\\s+/).reduceRight(\n    (items, word) =>\n      matchSorter(items, strip(word), {\n        keys: RECIPE_KEYS,\n        threshold: matchSorter.rankings.CONTAINS,\n      }),\n    recipes,\n  );\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/vllm-project/recipes/blob/cec536c5d69d23d2810a7a26fb05e112d12e3a50/src/lib/search.js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F205"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=match-sorter%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { matchSorter } from 'match-sorter'\n\nconst results = matchSorter(['Mercury', 'Mars'], 'mr')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/kentcdodds/match-sorter/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F197"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fzf-for-javascript",
          "name": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ajitid/fzf-for-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/fzf"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/ajitid/fzf-for-js/contents/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F62"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F57"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/ajitid/fzf-for-js/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/RooCodeInc/Roo-Code",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export async function searchWorkspaceFiles(\n\tquery: string,\n\tworkspacePath: string,\n\tlimit: number = 20,\n): Promise<{ path: string; type: \"file\" | \"folder\"; label?: string }[]> {\n\ttry {\n\t\t// Get all files and directories (uses configured limit)\n\t\tconst allItems = await executeRipgrepForFiles(workspacePath)\n\n\t\t// If no query, just return the top items\n\t\tif (!query.trim()) {\n\t\t\treturn allItems.slice(0, limit)\n\t\t}\n\n\t\t// Create search items for all files AND directories\n\t\tconst searchItems = allItems.map((item) => ({\n\t\t\toriginal: item,\n\t\t\tsearchStr: `${item.path} ${item.label || \"\"}`,\n\t\t}))\n\n\t\t// Run fzf search on all items\n\t\tconst fzf = new Fzf(searchItems, {\n\t\t\tselector: (item) => item.searchStr,\n\t\t\ttiebreakers: [byLengthAsc],\n\t\t\tlimit: limit,\n\t\t})\n\n\t\t// Get all matching results from fzf\n\t\tconst fzfResults = fzf.find(query).map((result) => result.item.original)\n\n\t\t// Verify types of the shortest results\n\t\tconst verifiedResults = await Promise.all(\n\t\t\tfzfResults.map(async (result) => {\n\t\t\t\tconst fullPath = path.join(workspacePath, result.path)\n\t\t\t\t// Verify if the path exists and is actually a directory\n\t\t\t\tif (fs.existsSync(fullPath)) {\n\t\t\t\t\tconst isDirectory = fs.lstatSync(fullPath).isDirectory()\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\tpath: result.path.toPosix(),\n\t\t\t\t\t\ttype: isDirectory ? (\"folder\" as const) : (\"file\" as const),\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If path doesn't exist, keep original type\n\t\t\t\treturn result\n\t\t\t}),\n\t\t)\n\n\t\treturn verifiedResults\n\t} catch (error) {\n\t\tconsole.error(\"Error in searchWorkspaceFiles:\", error)\n\t\treturn []\n\t}\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/RooCodeInc/Roo-Code/blob/b867ec9145750d0ae1ff7f02d35406e9bf2a0b16/src/services/search/file-search.ts#L141-L194",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Projects%20using%20fzf%20for%20fuzzy%20matching%20command%20palettes%20file%20pickers%20or%20object%20lists&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { Fzf } from 'fzf'\n\nconst fzf = new Fzf(['Mercury', 'Mars'])\nconst results = fzf.find('mr')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/fzf@0.5.2/dist/types/main.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "main.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fast-fuzzy",
          "name": [
            {
              "t": "fact",
              "fact": "F222"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/EthanRutherford/fast-fuzzy"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/fast-fuzzy"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/EthanRutherford/fast-fuzzy/contents/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F87"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F82"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/EthanRutherford/fast-fuzzy/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F222"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/bhj/KaraokeEternal",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F234"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "(songs, artists) => new Searcher(songs.result as unknown as object[], {\n    keySelector: ((songId: number) => {\n      const song = songs.entities[songId]\n      const artist = artists.entities[song.artistId]\n      return fold(`${artist?.name ?? ''} ${song.title}`)\n    }) as unknown as (s: object) => string,\n    threshold: THRESHOLD,\n  })",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/bhj/KaraokeEternal/blob/5d46aca8cdea867d6a3c6933e63e480adba525b5/src/routes/Library/selectors/getSearchResults.ts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F233"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Projects%20using%20fast-fuzzy%20for%20fuzzy%20matching%20command%20palettes%20file%20pickers%20or%20object%20lists&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F222"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const { search } = require('fast-fuzzy')\n\nconst results = search('mercury', ['Mercury', 'Mars'])\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/EthanRutherford/fast-fuzzy/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F227"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "nozbe-microfuzz",
          "name": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Nozbe/microfuzz"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@nozbe/microfuzz"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/Nozbe/microfuzz/contents/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F258"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/Nozbe/microfuzz/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F236"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import createFuzzySearch from '@nozbe/microfuzz'\n\nconst search = createFuzzySearch(['Mercury', 'Mars'])\nconst results = search('mr')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@nozbe/microfuzz@1.0.0/dist/index.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.d.ts"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40nozbe/microfuzz%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F236"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F241"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript fuzzy search library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#fuse-js",
          "label": [
            {
              "t": "text",
              "text": "Fuse.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " fits searching objects with weighted fields. "
        },
        {
          "t": "link",
          "href": "#fuzzysort",
          "label": [
            {
              "t": "text",
              "text": "fuzzysort"
            }
          ]
        },
        {
          "t": "text",
          "text": " fits ranking short strings such as file names, and "
        },
        {
          "t": "link",
          "href": "#match-sorter",
          "label": [
            {
              "t": "text",
              "text": "match-sorter"
            }
          ]
        },
        {
          "t": "text",
          "text": " fits a filter box that needs a predictable ranking order."
        }
      ]
    },
    {
      "q": "What is fuzzy search?",
      "a": [
        {
          "t": "text",
          "text": "Fuzzy search finds items that match a query approximately rather than exactly. A fuzzy matcher still finds an item when the query skips letters or contains a typo."
        }
      ]
    },
    {
      "q": "What is Fuse.js?",
      "a": [
        {
          "t": "link",
          "href": "#fuse-js",
          "label": [
            {
              "t": "text",
              "text": "Fuse.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a fuzzy-search library with no dependencies that searches strings and object fields in the browser or on a server. Weighted keys let title matches rank above description matches."
        }
      ]
    },
    {
      "q": "How is fuzzysort different from Fuse.js?",
      "a": [
        {
          "t": "link",
          "href": "#fuzzysort",
          "label": [
            {
              "t": "text",
              "text": "fuzzysort"
            }
          ]
        },
        {
          "t": "text",
          "text": " matches the query's characters in order and ranks short strings such as file names. "
        },
        {
          "t": "link",
          "href": "#fuse-js",
          "label": [
            {
              "t": "text",
              "text": "Fuse.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " scores approximate matches across weighted object fields."
        }
      ]
    },
    {
      "q": "Why can Fuse.js miss text far into a field?",
      "a": [
        {
          "t": "text",
          "text": "Fuse.js scores a match lower the farther it starts from the expected location. Setting ignoreLocation to true removes that penalty."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, fuzzysort",
      "display": "fuzzysort",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, fuzzysort",
      "display": "75.8M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, fuzzysort",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, fuzzysort",
      "display": "4.0.2",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, fuzzysort",
      "display": "v4.0.2",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, fuzzysort",
      "display": "4.4K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Object fields, fuzzysort",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Match positions, fuzzysort",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Score threshold, fuzzysort",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Install, fuzzysort",
      "display": "npm install fuzzysort",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "What it does, fuzzysort",
      "display": "Ranks fuzzy matches across strings or selected object fields.",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths lead, fuzzysort",
      "display": "Combines nested fields and scoring",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths, fuzzysort",
      "display": "Search nested fields and adjust ranking with scoreFn.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, fuzzysort",
      "display": "Normalizes accents and lookalike characters",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, fuzzysort",
      "display": "Searches strip diacritics and remap common character variants.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations lead, fuzzysort",
      "display": "Cloned results lose getter behavior",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations, fuzzysort",
      "display": "Use fuzzysort.score and fuzzysort.highlight for results passed through structured cloning.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, fuzzysort",
      "display": "Current release uses ES modules",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, fuzzysort",
      "display": "Use ES module imports when adopting the current major release.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart, fuzzysort",
      "display": "import fuzzysort from 'fuzzysort'\n\nconst objects = [{\n  title: 'Petaya Berry',\n  meta: {desc: 'Raises Special Attack when HP is low.'},\n  tags: ['berries', 'items'],\n}, {\n  title: 'Liechi Berry',\n  meta: {desc: 'Raises Attack when HP is low.'},\n  favorite: true,\n}]\n\nconst targets = fuzzysort.snapshot(objects, {\n  keys: ['title', 'meta.desc', obj => obj.tags?.join()],\n})\n\nconst results = fuzzysort.go('attack berry', targets, {\n  scoreFn: r => r.score * (r.obj.favorite ? 2 : 1),\n})\n\nconst result = results[0]\nresult[0].highlight() // 'Liechi <b>Berry</b>'\nresult[1].highlight() // 'Raises <b>Attack</b> when HP is low.'\nresult.obj.title      // 'Liechi Berry'\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function, fuzzysort",
      "display": "function search(index: ReturnType<typeof emptyIndex>, input: FileSystem.FindInput) {\n  const items =\n    input.type === \"file\"\n      ? Array.from(index.files.values())\n      : input.type === \"directory\"\n        ? Array.from(index.directories.values())\n        : [...index.files.values(), ...index.directories.values()]\n  const result = fuzzysort.go(input.query, items, { limit: input.limit ?? 50 })\n  // Targets are owned by the current location index. The only global fuzzysort\n  // state left is its query cache, which must not retain every query forever.\n  fuzzysort.cleanup()\n  return result.map((item) => {\n    const relative = item.target\n    const type = relative.endsWith(path.sep) ? (\"directory\" as const) : (\"file\" as const)\n    return FileSystem.Entry.make({\n      path: RelativePath.make(relative),\n      type,\n    })\n  })\n}\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function reference, fuzzysort",
      "display": "search.ts · search()",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project repository, fuzzysort",
      "display": "anomalyco/opencode",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project stars, anomalyco/opencode",
      "display": "203.6K",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project push date, anomalyco/opencode",
      "display": "Sep 2026",
      "asOf": "2026-09-03"
    },
    "F26": {
      "label": "Library name, fuse.js",
      "display": "Fuse.js",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Monthly downloads, fuse.js",
      "display": "73.8M",
      "asOf": "2026-11-15"
    },
    "F28": {
      "label": "License, fuse.js",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Package release, fuse.js",
      "display": "7.5.0",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Undated package release, fuse.js",
      "display": "v7.5.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Repository stars, fuse.js",
      "display": "20.5K",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Object fields, fuse.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Match positions, fuse.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Score threshold, fuse.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Async matching, fuse.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, fuse.js",
      "display": "npm install fuse.js",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, fuse.js",
      "display": "Searches text and object fields using approximate string matching.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, fuse.js",
      "display": "Weights different text fields",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, fuse.js",
      "display": "Give title matches more weight than description matches.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, fuse.js",
      "display": "Moves matching into browser workers",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, fuse.js",
      "display": "Use FuseWorker for searches that return promises.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, fuse.js",
      "display": "Penalizes matches far into text",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, fuse.js",
      "display": "Set ignoreLocation to match text regardless of its starting position.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, fuse.js",
      "display": "Worker mode excludes token search",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, fuse.js",
      "display": "Use the standard Fuse class when enabling useTokenSearch.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Quickstart, fuse.js",
      "display": "import Fuse from 'fuse.js'\n\nconst books = [\n  { title: \"Old Man's War\", author: 'John Scalzi' },\n  { title: 'The Lock Artist', author: 'Steve Hamilton' },\n  { title: 'HTML5', author: 'Remy Sharp' },\n  { title: 'JavaScript: The Good Parts', author: 'Douglas Crockford' }\n]\n\nconst fuse = new Fuse(books, {\n  keys: ['title', 'author']\n})\n\nfuse.search('javscript')\n// → [{ item: { title: 'JavaScript: The Good Parts', ... }, ... }]\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function, fuse.js",
      "display": "const fuzzySearchFilter: SpotlightFilterFunction = (query, actions) => {\n  if (!query.trim()) {\n    return actions;\n  }\n\n  const flatActions = actions.reduce<any[]>((acc, item) => {\n    if ('actions' in item) {\n      return [...acc, ...item.actions.map((action) => ({ ...action, group: item.group }))];\n    }\n    return [...acc, item];\n  }, []);\n\n  const fuse = new Fuse(flatActions, {\n    keys: ['label', 'description', 'keywords'],\n    threshold: 0.3,\n    minMatchCharLength: 1,\n  });\n\n  const results = fuse.search(query).map((result) => result.item);\n\n  const groups: Record<string, any> = {};\n  const result: any[] = [];\n\n  results.forEach((action) => {\n    if (action.group) {\n      if (!groups[action.group]) {\n        groups[action.group] = { pushed: false, data: { group: action.group, actions: [] } };\n      }\n      groups[action.group].data.actions.push(action);\n      if (!groups[action.group].pushed) {\n        groups[action.group].pushed = true;\n        result.push(groups[action.group].data);\n      }\n    } else {\n      result.push(action);\n    }\n  });\n\n  return result;\n};\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function reference, fuse.js",
      "display": "Search.tsx · fuzzySearchFilter()",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project repository, fuse.js",
      "display": "mantinedev/mantine",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project stars, mantinedev/mantine",
      "display": "31.9K",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project push date, mantinedev/mantine",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F52": {
      "label": "Library name, fzf",
      "display": "FZF for JavaScript",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Monthly downloads, fzf",
      "display": "18.0M",
      "asOf": "2026-11-15"
    },
    "F54": {
      "label": "License, fzf",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Package release, fzf",
      "display": "0.5.2",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Undated package release, fzf",
      "display": "v0.5.2",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Repository stars, fzf",
      "display": "956",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Object fields, fzf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Match positions, fzf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Async matching, fzf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Install, fzf",
      "display": "npm install fzf",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "What it does, fzf",
      "display": "Finds ranked subsequence matches with configurable selection and tie-breaking.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths lead, fzf",
      "display": "Controls ranking when scores tie",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths, fzf",
      "display": "Use tiebreakers to prefer shorter or earlier matches.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, fzf",
      "display": "Returns matched character positions",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, fzf",
      "display": "Read positions to highlight the characters that matched.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations lead, fzf",
      "display": "Async queries cancel earlier searches",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations, fzf",
      "display": "Handle cancellation rejections when issuing overlapping AsyncFzf queries.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, fzf",
      "display": "Tie-breaking requires sorted output",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, fzf",
      "display": "Keep sort enabled when configuring tiebreakers.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Quickstart, fzf",
      "display": "import { Fzf } from 'fzf'\n\nconst list = ['go', 'javascript', 'python', 'rust', \n              'swift', 'kotlin', 'elixir', 'java', \n              'lisp', 'v', 'zig', 'nim', 'rescript', \n              'd', 'haskell']\n\nconst fzf = new Fzf(list)\nconst entries = fzf.find('li')\nconsole.log('ranking is:')\nentries.forEach(entry => console.log(entry.item)) // lisp kotlin elixir\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function, fzf",
      "display": "export async function searchWorkspaceFiles(\n\tquery: string,\n\tworkspacePath: string,\n\tlimit: number = 20,\n): Promise<{ path: string; type: \"file\" | \"folder\"; label?: string }[]> {\n\ttry {\n\t\t// Get all files and directories (uses configured limit)\n\t\tconst allItems = await executeRipgrepForFiles(workspacePath)\n\n\t\t// If no query, just return the top items\n\t\tif (!query.trim()) {\n\t\t\treturn allItems.slice(0, limit)\n\t\t}\n\n\t\t// Create search items for all files AND directories\n\t\tconst searchItems = allItems.map((item) => ({\n\t\t\toriginal: item,\n\t\t\tsearchStr: `${item.path} ${item.label || \"\"}`,\n\t\t}))\n\n\t\t// Run fzf search on all items\n\t\tconst fzf = new Fzf(searchItems, {\n\t\t\tselector: (item) => item.searchStr,\n\t\t\ttiebreakers: [byLengthAsc],\n\t\t\tlimit: limit,\n\t\t})\n\n\t\t// Get all matching results from fzf\n\t\tconst fzfResults = fzf.find(query).map((result) => result.item.original)\n\n\t\t// Verify types of the shortest results\n\t\tconst verifiedResults = await Promise.all(\n\t\t\tfzfResults.map(async (result) => {\n\t\t\t\tconst fullPath = path.join(workspacePath, result.path)\n\t\t\t\t// Verify if the path exists and is actually a directory\n\t\t\t\tif (fs.existsSync(fullPath)) {\n\t\t\t\t\tconst isDirectory = fs.lstatSync(fullPath).isDirectory()\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\tpath: result.path.toPosix(),\n\t\t\t\t\t\ttype: isDirectory ? (\"folder\" as const) : (\"file\" as const),\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If path doesn't exist, keep original type\n\t\t\t\treturn result\n\t\t\t}),\n\t\t)\n\n\t\treturn verifiedResults\n\t} catch (error) {\n\t\tconsole.error(\"Error in searchWorkspaceFiles:\", error)\n\t\treturn []\n\t}\n}\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function reference, fzf",
      "display": "file-search.ts · searchWorkspaceFiles()",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project repository, fzf",
      "display": "RooCodeInc/Roo-Code",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project stars, RooCodeInc/Roo-Code",
      "display": "24.2K",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project push date, RooCodeInc/Roo-Code",
      "display": "May 2026",
      "asOf": "2026-05-15"
    },
    "F77": {
      "label": "Library name, fast-fuzzy",
      "display": "fast-fuzzy",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Monthly downloads, fast-fuzzy",
      "display": "8.0M",
      "asOf": "2026-11-15"
    },
    "F79": {
      "label": "License, fast-fuzzy",
      "display": "ISC",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Package release, fast-fuzzy",
      "display": "1.12.0",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Undated package release, fast-fuzzy",
      "display": "v1.12.0",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Repository stars, fast-fuzzy",
      "display": "388",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Object fields, fast-fuzzy",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Match positions, fast-fuzzy",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Score threshold, fast-fuzzy",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Install, fast-fuzzy",
      "display": "npm install fast-fuzzy",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "What it does, fast-fuzzy",
      "display": "Scores approximate text matches and reuses candidate lists through Searcher.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths lead, fast-fuzzy",
      "display": "Reuses candidates across searches",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths, fast-fuzzy",
      "display": "Create a Searcher to retain its candidate search structure.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths lead, fast-fuzzy",
      "display": "Retains original-string match offsets",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths, fast-fuzzy",
      "display": "Use returnMatchData to locate matches in the original text.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations lead, fast-fuzzy",
      "display": "One-off search rebuilds candidates",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations, fast-fuzzy",
      "display": "Use Searcher for repeated queries instead of calling search each time.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations lead, fast-fuzzy",
      "display": "Offsets depend on substring mode",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations, fast-fuzzy",
      "display": "Keep useSellers enabled when the result needs match offsets.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Quickstart, fast-fuzzy",
      "display": "const {Searcher} = require(\"fast-fuzzy\");\n\nconst searcher = new Searcher([\"def\", \"bcd\", \"cde\", \"abc\"]);\nsearcher.search(\"abc\"); //returns [\"abc\", \"bcd\"]\n\n//options are passed in on construction\nconst anotherSearcher = new Searcher(\n    [{name: \"thing1\"}, {name: \"thing2\"}],\n    {keySelector: (obj) => obj.name},\n);\n\n//some options can be overridden per call\nsearcher.search(\"abc\", {returnMatchData: true});\n/* returns [{\n    item: 'abc', original: 'abc', key: 'abc', score: 1,\n    match: {index: 0, length: 3},\n}, { \n    item: 'bcd', original: 'bcd', key: 'bcd', score: 0.6666666666666667,\n    match: {index: 0, length: 2},\n}] */\n",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Developer need",
      "display": "Ranking object fields by importance",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Why choose fuse.js",
      "display": "weighted searchable keys",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need in introduction",
      "display": "ranking object fields by importance",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "When to consider fuzzysort",
      "display": "a custom scoring callback should adjust object ranking",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need",
      "display": "Matching nested fields with custom ranking",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose fuzzysort",
      "display": "nested selectors and scoreFn",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "matching nested fields with custom ranking",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "Repeating queries over fixed candidates",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose fast-fuzzy",
      "display": "the reusable Searcher",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "repeating queries over fixed candidates",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "When to consider fzf",
      "display": "explicit tie-breaking controls are needed",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need",
      "display": "Resolving ties between fuzzy matches",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Why choose fzf",
      "display": "custom tiebreakers",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need in introduction",
      "display": "resolving ties between fuzzy matches",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "When to consider fuse.js",
      "display": "multiple fields need distinct weights",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Page introduction",
      "display": "JavaScript fuzzy search libraries let application developers match text despite spelling differences.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: How does this comparison differ from full-text search libraries?",
      "display": "Fuse.js performs approximate matching over text and selected object fields.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: How does this comparison differ from full-text search libraries?",
      "display": "fast-fuzzy scores candidates and can retain them in a reusable Searcher.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Which library can weight different fields?",
      "display": "Fuse.js accepts weighted keys so title matches can outrank description matches.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which library can weight different fields?",
      "display": "fuzzysort supports nested selectors and a custom scoreFn callback.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Are fuzzy scores comparable across these libraries?",
      "display": "Fuse.js treats a lower fuzziness score as a closer match.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Are fuzzy scores comparable across these libraries?",
      "display": "fast-fuzzy uses higher scores for closer matches.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Are fuzzy scores comparable across these libraries?",
      "display": "FZF ranks larger scores as closer matches.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Why can Fuse.js miss text far into a field?",
      "display": "The default location and distance settings penalize matches far from the expected position; ignoreLocation disables that penalty.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Can Fuse.js search multi-word queries independently?",
      "display": "Token search splits the query into words and fuzzy-matches each term independently.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Can Fuse.js search multi-word queries independently?",
      "display": "FuseWorker excludes token search; use the main-thread Fuse class for that mode.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Which asynchronous matching APIs are available?",
      "display": "FuseWorker.search returns a promise and delegates matching to browser Web Workers.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Which asynchronous matching APIs are available?",
      "display": "FZF offers AsyncFzf, which cancels the prior search when a new one starts.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Can FuseWorker run on a Node server?",
      "display": "FuseWorker uses the browser Web Worker API rather than Node worker_threads; use the standard Fuse class on the server.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: How can repeated fast-fuzzy queries avoid rebuilding candidates?",
      "display": "Use Searcher for repeated queries; the one-off search function constructs a new candidate trie each time.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: When does fast-fuzzy omit match offsets?",
      "display": "The match field is undefined when useSellers is false; returned index and length otherwise refer to the original string.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: How should cloned fuzzysort results be read?",
      "display": "Structured cloning can remove result getters; use the native score and highlight helpers on cloned results.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Do FZF tiebreakers change every search score?",
      "display": "A tiebreaker only applies when results have equal scores and requires sorted output.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: How do these project examples handle empty queries?",
      "display": "The Mantine filter returns its supplied actions when the trimmed query is empty.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: How do these project examples handle empty queries?",
      "display": "Roo Code returns a bounded slice of workspace entries before running the matcher.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "Library name, fuzzysort",
      "display": "fuzzysort",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Monthly downloads, fuzzysort",
      "display": "77.8M",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "License, fuzzysort",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Package release, fuzzysort",
      "display": "4.0.2",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Package release date, fuzzysort",
      "display": "Aug 2026",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Install, fuzzysort",
      "display": "npm install fuzzysort",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Quickstart, fuzzysort",
      "display": "import fuzzysort from 'fuzzysort'\n\nconst results = fuzzysort.go('mr', ['Mercury', 'Mars'])\n",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Reusable collection preprocessing, fuzzysort",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Multiple fields per item, fuzzysort",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Native API and output model, fuzzysort",
      "display": "Current own source retains go(query, targets, {limit}) and cleanup(); results expose target. The original index/scanning/type conversion are host operations. Current4 empty-query default returns targets, so no unchanged3.x empty-query-policy claim. Two real native call sites; no runtime execution.",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Project function, fuzzysort",
      "display": "function search(index: ReturnType<typeof emptyIndex>, input: FileSystem.FindInput) {\n  const items =\n    input.type === \"file\"\n      ? Array.from(index.files.values())\n      : input.type === \"directory\"\n        ? Array.from(index.directories.values())\n        : [...index.files.values(), ...index.directories.values()]\n  const result = fuzzysort.go(input.query, items, { limit: input.limit ?? 50 })\n  // Targets are owned by the current location index. The only global fuzzysort\n  // state left is its query cache, which must not retain every query forever.\n  fuzzysort.cleanup()\n  return result.map((item) => {\n    const relative = item.target\n    const type = relative.endsWith(path.sep) ? (\"directory\" as const) : (\"file\" as const)\n    return FileSystem.Entry.make({\n      path: RelativePath.make(relative),\n      type,\n    })\n  })\n}\n",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project source file, fuzzysort",
      "display": "packages/core/src/filesystem/search.ts",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project full_name, fuzzysort",
      "display": "anomalyco/opencode",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project stargazers_count, fuzzysort",
      "display": "203.6K",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Library name, fuse.js",
      "display": "fuse.js",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Monthly downloads, fuse.js",
      "display": "76.1M",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "License, fuse.js",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Package release, fuse.js",
      "display": "7.5.0",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release date, fuse.js",
      "display": "Jul 2026",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Install, fuse.js",
      "display": "npm install fuse.js",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Quickstart, fuse.js",
      "display": "import Fuse from 'fuse.js'\n\nconst fuse = new Fuse([{ title: 'Mercury' }], { keys: ['title'] })\nconst results = fuse.search('mercury')\n",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Reusable collection preprocessing, fuse.js",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Multiple fields per item, fuse.js",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Native API and output model, fuse.js",
      "display": "Published7.5.0 constructor/search, keys array, threshold0.3, minMatchCharLength1, and result.item are verified. Original grouped-action flattening/regrouping is host logic; no native group-manager or benchmark claim.",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Project function, fuse.js",
      "display": "const fuzzySearchFilter: SpotlightFilterFunction = (query, actions) => {\n  if (!query.trim()) {\n    return actions;\n  }\n\n  const flatActions = actions.reduce<any[]>((acc, item) => {\n    if ('actions' in item) {\n      return [...acc, ...item.actions.map((action) => ({ ...action, group: item.group }))];\n    }\n    return [...acc, item];\n  }, []);\n\n  const fuse = new Fuse(flatActions, {\n    keys: ['label', 'description', 'keywords'],\n    threshold: 0.3,\n    minMatchCharLength: 1,\n  });\n\n  const results = fuse.search(query).map((result) => result.item);\n\n  const groups: Record<string, any> = {};\n  const result: any[] = [];\n\n  results.forEach((action) => {\n    if (action.group) {\n      if (!groups[action.group]) {\n        groups[action.group] = { pushed: false, data: { group: action.group, actions: [] } };\n      }\n      groups[action.group].data.actions.push(action);\n      if (!groups[action.group].pushed) {\n        groups[action.group].pushed = true;\n        result.push(groups[action.group].data);\n      }\n    } else {\n      result.push(action);\n    }\n  });\n\n  return result;\n};\n",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Project source file, fuse.js",
      "display": "apps/mantine.dev/src/components/Search/Search.tsx",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project full_name, fuse.js",
      "display": "mantinedev/mantine",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project stargazers_count, fuse.js",
      "display": "31.9K",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Library name, @tanstack/match-sorter-utils",
      "display": "@tanstack/match-sorter-utils",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Monthly downloads, @tanstack/match-sorter-utils",
      "display": "33.0M",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "License, @tanstack/match-sorter-utils",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Package release, @tanstack/match-sorter-utils",
      "display": "9.2.6",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Package release date, @tanstack/match-sorter-utils",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Install, @tanstack/match-sorter-utils",
      "display": "npm install @tanstack/match-sorter-utils",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Quickstart, @tanstack/match-sorter-utils",
      "display": "import { rankItem } from '@tanstack/match-sorter-utils'\n\nconst match = rankItem('Mercury', 'mer')\n",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Official description, @tanstack/match-sorter-utils",
      "display": "Splits match-sorter's ranking into separate filtering and sorting phases.",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Quickstart source file, @tanstack/match-sorter-utils",
      "display": "packages/match-sorter-utils/src/index.ts",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Reusable collection preprocessing, @tanstack/match-sorter-utils",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Multiple fields per item, @tanstack/match-sorter-utils",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Native API and output model, @tanstack/match-sorter-utils",
      "display": "Original16-line row filter uses public rankItem(value, query, {threshold:rankings.MATCHES}), forwards native RankingInfo to host metadata, and returns passed. getValue/addMeta are table/host calls, not SDK counts. Own source normalizes comparison inputs; the documented query contract is string and the original TypeScript cast is preserved.",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Project function, @tanstack/match-sorter-utils",
      "display": "const fuzzy = <TData extends MRT_RowData>(\n  row: Row<TData>,\n  columnId: string,\n  filterValue: number | string,\n  addMeta: (item: RankingInfo) => void,\n): boolean => {\n  const itemRank = rankItem(\n    row.getValue<string | number | null>(columnId),\n    filterValue as string,\n    {\n      threshold: rankings.MATCHES,\n    },\n  );\n  addMeta(itemRank);\n  return itemRank.passed;\n};",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Project source file, @tanstack/match-sorter-utils",
      "display": "packages/material-react-table/src/fns/filterFns.ts",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Project full_name, @tanstack/match-sorter-utils",
      "display": "KevinVandy/material-react-table",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Project stargazers_count, @tanstack/match-sorter-utils",
      "display": "1.8K",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Library name, fuzzy",
      "display": "fuzzy",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Monthly downloads, fuzzy",
      "display": "31.6M",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "License, fuzzy",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Package release, fuzzy",
      "display": "0.1.3",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Package release date, fuzzy",
      "display": "Oct 2016",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Install, fuzzy",
      "display": "npm install fuzzy",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Quickstart, fuzzy",
      "display": "const fuzzy = require('fuzzy')\n\nconst results = fuzzy.filter('mr', ['Mercury', 'Mars'])\n",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Official description, fuzzy",
      "display": "Filters a list of strings with a small, standalone fuzzy matcher in the browser or Node.js.",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Quickstart source file, fuzzy",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Reusable collection preprocessing, fuzzy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Multiple fields per item, fuzzy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Native API and output model, fuzzy",
      "display": "Original6-line Embark utility imports fuzzy and returns filter(text,list,{extract:filter}). Current0.1.3 documents extract callback and original/index/score/string outputs. require and host extractor are not extra SDK calls. Bounded whole-task single-call exception; no runtime execution.",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project function, fuzzy",
      "display": "export function fuzzySearch(text, list, filter) {\n  const fuzzy = require('fuzzy');\n  return fuzzy.filter(text, list, {\n    extract: filter\n  });\n}",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Project source file, fuzzy",
      "display": "packages/core/utils/src/index.ts",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Project full_name, fuzzy",
      "display": "embarklabs/embark",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project stargazers_count, fuzzy",
      "display": "3.8K",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Library name, match-sorter",
      "display": "match-sorter",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Monthly downloads, match-sorter",
      "display": "18.5M",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "License, match-sorter",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Package release, match-sorter",
      "display": "8.3.1",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Package release date, match-sorter",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Install, match-sorter",
      "display": "npm install match-sorter",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Quickstart, match-sorter",
      "display": "import { matchSorter } from 'match-sorter'\n\nconst results = matchSorter(['Mercury', 'Mars'], 'mr')\n",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Official description, match-sorter",
      "display": "Sorts an array by best match with deterministic rules.",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Quickstart source file, match-sorter",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Reusable collection preprocessing, match-sorter",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Multiple fields per item, match-sorter",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Native API and output model, match-sorter",
      "display": "Original12-line recipe search calls current matchSorter on each query word with callback-key objects and static rankings.CONTAINS; source/type definitions verify getter keys, threshold, ranked-array return. CONTAINS deliberately chooses substring-or-better matches; not misdescribed as the default fuzzy policy. strip/RECIPE_KEYS/reduceRight are original host context. One syntactic native call under bounded exception; repeated iterations are not inflated counts.",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Project function, match-sorter",
      "display": "export function searchRecipes(recipes, query) {\n  const q = query.trim();\n  if (!q) return [];\n  return q.split(/\\s+/).reduceRight(\n    (items, word) =>\n      matchSorter(items, strip(word), {\n        keys: RECIPE_KEYS,\n        threshold: matchSorter.rankings.CONTAINS,\n      }),\n    recipes,\n  );\n}",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Project source file, match-sorter",
      "display": "src/lib/search.js",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Project full_name, match-sorter",
      "display": "vllm-project/recipes",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project stargazers_count, match-sorter",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Library name, fzf",
      "display": "fzf",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Monthly downloads, fzf",
      "display": "18.3M",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "License, fzf",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Package release, fzf",
      "display": "0.5.2",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Package release date, fzf",
      "display": "Apr 2023",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Install, fzf",
      "display": "npm install fzf",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Quickstart, fzf",
      "display": "import { Fzf } from 'fzf'\n\nconst fzf = new Fzf(['Mercury', 'Mars'])\nconst results = fzf.find('mr')\n",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Reusable collection preprocessing, fzf",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Multiple fields per item, fzf",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Native API and output model, fzf",
      "display": "Published0.5.2 declarations verify Fzf(list,{selector,tiebreakers:[byLengthAsc],limit}), find(string), and result.item. The original app wrapper owns item.original/searchStr; root path scanning and filesystem verification are host logic. Selector must return one string. No filesystem/browser/SDK executed.",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Project function, fzf",
      "display": "export async function searchWorkspaceFiles(\n\tquery: string,\n\tworkspacePath: string,\n\tlimit: number = 20,\n): Promise<{ path: string; type: \"file\" | \"folder\"; label?: string }[]> {\n\ttry {\n\t\t// Get all files and directories (uses configured limit)\n\t\tconst allItems = await executeRipgrepForFiles(workspacePath)\n\n\t\t// If no query, just return the top items\n\t\tif (!query.trim()) {\n\t\t\treturn allItems.slice(0, limit)\n\t\t}\n\n\t\t// Create search items for all files AND directories\n\t\tconst searchItems = allItems.map((item) => ({\n\t\t\toriginal: item,\n\t\t\tsearchStr: `${item.path} ${item.label || \"\"}`,\n\t\t}))\n\n\t\t// Run fzf search on all items\n\t\tconst fzf = new Fzf(searchItems, {\n\t\t\tselector: (item) => item.searchStr,\n\t\t\ttiebreakers: [byLengthAsc],\n\t\t\tlimit: limit,\n\t\t})\n\n\t\t// Get all matching results from fzf\n\t\tconst fzfResults = fzf.find(query).map((result) => result.item.original)\n\n\t\t// Verify types of the shortest results\n\t\tconst verifiedResults = await Promise.all(\n\t\t\tfzfResults.map(async (result) => {\n\t\t\t\tconst fullPath = path.join(workspacePath, result.path)\n\t\t\t\t// Verify if the path exists and is actually a directory\n\t\t\t\tif (fs.existsSync(fullPath)) {\n\t\t\t\t\tconst isDirectory = fs.lstatSync(fullPath).isDirectory()\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\tpath: result.path.toPosix(),\n\t\t\t\t\t\ttype: isDirectory ? (\"folder\" as const) : (\"file\" as const),\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If path doesn't exist, keep original type\n\t\t\t\treturn result\n\t\t\t}),\n\t\t)\n\n\t\treturn verifiedResults\n\t} catch (error) {\n\t\tconsole.error(\"Error in searchWorkspaceFiles:\", error)\n\t\treturn []\n\t}\n}\n",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Project source file, fzf",
      "display": "src/services/search/file-search.ts",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Project full_name, fzf",
      "display": "RooCodeInc/Roo-Code",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Project stargazers_count, fzf",
      "display": "24.2K",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Library name, fast-fuzzy",
      "display": "fast-fuzzy",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Monthly downloads, fast-fuzzy",
      "display": "8.4M",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "License, fast-fuzzy",
      "display": "ISC",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Package release, fast-fuzzy",
      "display": "1.12.0",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Package release date, fast-fuzzy",
      "display": "Nov 2022",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Install, fast-fuzzy",
      "display": "npm install fast-fuzzy",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Quickstart, fast-fuzzy",
      "display": "const { search } = require('fast-fuzzy')\n\nconst results = search('mercury', ['Mercury', 'Mars'])\n",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Reusable collection preprocessing, fast-fuzzy",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Multiple fields per item, fast-fuzzy",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Native API and output model, fast-fuzzy",
      "display": "Original8-line createSelector result callback returns new Searcher with threshold0.7 and original keySelector. Numbers in the song-id array are intentional host identifiers despite the TypeScript object cast; the selector maps them to strings. Current1.12 constructor accepts arbitrary candidates plus selector. fold and memoization are host behavior; callback remains anonymous and is not rewritten/named. One bounded native constructor operation.",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Project function, fast-fuzzy",
      "display": "(songs, artists) => new Searcher(songs.result as unknown as object[], {\n    keySelector: ((songId: number) => {\n      const song = songs.entities[songId]\n      const artist = artists.entities[song.artistId]\n      return fold(`${artist?.name ?? ''} ${song.title}`)\n    }) as unknown as (s: object) => string,\n    threshold: THRESHOLD,\n  })",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Project source file, fast-fuzzy",
      "display": "src/routes/Library/selectors/getSearchResults.ts",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Project full_name, fast-fuzzy",
      "display": "bhj/KaraokeEternal",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Project stargazers_count, fast-fuzzy",
      "display": "930",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Library name, @nozbe/microfuzz",
      "display": "microfuzz",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Monthly downloads, @nozbe/microfuzz",
      "display": "3.6M",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "License, @nozbe/microfuzz",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Package release, @nozbe/microfuzz",
      "display": "1.0.0",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Package release date, @nozbe/microfuzz",
      "display": "Jul 2023",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Install, @nozbe/microfuzz",
      "display": "npm install @nozbe/microfuzz",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Quickstart, @nozbe/microfuzz",
      "display": "import createFuzzySearch from '@nozbe/microfuzz'\n\nconst search = createFuzzySearch(['Mercury', 'Mars'])\nconst results = search('mr')\n",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Official description, @nozbe/microfuzz",
      "display": "A tiny, simple, fast fuzzy search library",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Quickstart source file, @nozbe/microfuzz",
      "display": "dist/index.d.ts",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Reusable collection preprocessing, @nozbe/microfuzz",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Multiple fields per item, @nozbe/microfuzz",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Native API and output model, @nozbe/microfuzz",
      "display": "Published1.0.0 explicitly exports fuzzyMatch(text,query)->FuzzyResult|null with numeric score. Original10-line name matcher normalizes application tokens then returns score/null with catch handling. Lower native score is better; tokenization/console are host logic, not SDK calls. Full root grant scopes this non-enterprise source path to MIT. Immutable Contents responses/blob hashes retained; complete ancestor Merkle proof is not claimed.",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Ranks items one at a time",
      "display": "Ranks items one at a time",
      "asOf": "2026-11-17"
    },
    "F249": {
      "label": "Call rankItem, then filter on its passed flag and sort on its rank.",
      "display": "Call rankItem, then filter on its passed flag and sort on its rank.",
      "asOf": "2026-11-17"
    },
    "F250": {
      "label": "Lower level than match-sorter",
      "display": "Lower level than match-sorter",
      "asOf": "2026-11-17"
    },
    "F251": {
      "label": "Combine the filter and sort steps in application code.",
      "display": "Combine the filter and sort steps in application code.",
      "asOf": "2026-11-17"
    },
    "F252": {
      "label": "Marks matched characters",
      "display": "Marks matched characters",
      "asOf": "2026-11-17"
    },
    "F253": {
      "label": "Pass pre and post strings to wrap each matched character.",
      "display": "Pass pre and post strings to wrap each matched character.",
      "asOf": "2026-11-17"
    },
    "F254": {
      "label": "Ranks exact matches first",
      "display": "Ranks exact matches first",
      "asOf": "2026-11-17"
    },
    "F255": {
      "label": "Exact matches rank above prefix matches and looser matches.",
      "display": "Exact matches rank above prefix matches and looser matches.",
      "asOf": "2026-11-17"
    },
    "F256": {
      "label": "Limits ranking per key",
      "display": "Limits ranking per key",
      "asOf": "2026-11-17"
    },
    "F257": {
      "label": "Give each key its own threshold or maximum ranking.",
      "display": "Give each key its own threshold or maximum ranking.",
      "asOf": "2026-11-17"
    },
    "F258": {
      "label": "Filters items in memory and returns the matched character ranges for highlighting.",
      "display": "Filters items in memory and returns the matched character ranges for highlighting.",
      "asOf": "2026-11-17"
    },
    "F259": {
      "label": "Matches words in any order",
      "display": "Matches words in any order",
      "asOf": "2026-11-17"
    },
    "F260": {
      "label": "A query's words can match in any order in the text.",
      "display": "A query's words can match in any order in the text.",
      "asOf": "2026-11-17"
    },
    "F261": {
      "label": "Ignores case and accents",
      "display": "Ignores case and accents",
      "asOf": "2026-11-17"
    },
    "F262": {
      "label": "A query matches text regardless of letter case and diacritics.",
      "display": "A query matches text regardless of letter case and diacritics.",
      "asOf": "2026-11-17"
    },
    "F263": {
      "label": "No typo tolerance",
      "display": "No typo tolerance",
      "asOf": "2026-11-17"
    },
    "F264": {
      "label": "Transposed or missing characters stop a match.",
      "display": "Transposed or missing characters stop a match.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript fuzzy search libraries Fuse.js fuzzysort fast-fuzzy fzf code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
