{"id":18174576,"url":"https://github.com/triggerdotdev/fuzzy-json-search","last_synced_at":"2025-09-14T15:35:42.137Z","repository":{"id":57675763,"uuid":"478519865","full_name":"triggerdotdev/fuzzy-json-search","owner":"triggerdotdev","description":"Search a JSON document by path, content, and inferred content","archived":false,"fork":false,"pushed_at":"2023-10-14T17:05:38.000Z","size":547,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-09-06T10:42:23.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/triggerdotdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-06T10:56:55.000Z","updated_at":"2025-07-08T18:49:18.000Z","dependencies_parsed_at":"2024-10-22T19:21:45.818Z","dependency_job_id":null,"html_url":"https://github.com/triggerdotdev/fuzzy-json-search","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.1428571428571429,"last_synced_commit":"507971d425742cc0ecda8bc69912873db2e66d4f"},"previous_names":["jsonhero-io/fuzzy-json-search"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/triggerdotdev/fuzzy-json-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triggerdotdev%2Ffuzzy-json-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triggerdotdev%2Ffuzzy-json-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triggerdotdev%2Ffuzzy-json-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triggerdotdev%2Ffuzzy-json-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/triggerdotdev","download_url":"https://codeload.github.com/triggerdotdev/fuzzy-json-search/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triggerdotdev%2Ffuzzy-json-search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275124940,"owners_count":25409799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-02T16:03:35.629Z","updated_at":"2025-09-14T15:35:42.113Z","avatar_url":"https://github.com/triggerdotdev.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Fuzzy JSON Search\n\n\u003e VSCode style fuzzy search for JSON documents\n\n\u003c!-- ![Tests](https://github.com/jsonhero-io/fuzzy-json-search/actions/workflows/test.yml/badge.svg?branch=main) --\u003e\n\u003c!-- [![Downloads](https://img.shields.io/npm/dm/%40jsonhero%2Ffuzzy-json-search.svg)](https://npmjs.com/@jsonhero/fuzzy-json-search) --\u003e\n\u003c!-- [![Install size](https://packagephobia.com/badge?p=%40jsonhero%2Ffuzzy-json-search)](https://packagephobia.com/result?p=@jsonhero/fuzzy-json-search) --\u003e\n\n## 🚀 Features\n\n- Use VSCode style fuzzy search on a JSON document\n- Searches through key names, path, raw values and formatted values\n\n## 💻 Usage\n\nInstall Fuzzy JSON Search\n\n```bash\n$ npm install --save @jsonhero/fuzzy-json-search\n```\n\nThe simplest way to search is to create an instance of `JSONHeroSearch` and pass it a JSON object:\n\n```typescript\nconst response = await fetch(\"https://jsonplaceholder.typicode.com/todos\");\nconst json = await response.json();\n\nconst searcher = new JSONHeroSearch(json);\n\nconst results = searcher.search(\"user\");\n```\n\n## API\n\n### `JSONHeroSearch.search(query: string)`\n\nPerforms a fuzzy search against the entire document, ordering by score. Will only return results that score more than 0.\n\n#### Returns `Array\u003cSearchResult\u003cstring\u003e\u003e\u003e`\n\n`SearchResult\u003cstring\u003e` has the following properties:\n\n##### `item` is a `string` representing the path to the key\n\n##### `score` is an `ItemScore`\n\n##### `ItemScore` has the following properties\n\n##### `score` is a number, the higher the score the better a match\n\n##### `labelMatch` is an array of `Match` objects\n\n##### `descriptionMatch` is an array of `Match` objects\n\n##### `rawValueMatch` is an array of `Match` objects\n\n##### `formattedValueMatch` is an array of `Match` objects\n\n##### `Match` is type `{ start: number; end: number }`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftriggerdotdev%2Ffuzzy-json-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftriggerdotdev%2Ffuzzy-json-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftriggerdotdev%2Ffuzzy-json-search/lists"}