{"id":13495714,"url":"https://github.com/ajitid/fzf-for-js","last_synced_at":"2025-03-28T16:33:10.512Z","repository":{"id":39651438,"uuid":"380781378","full_name":"ajitid/fzf-for-js","owner":"ajitid","description":"Do fuzzy matching using FZF algorithm in JavaScript","archived":false,"fork":false,"pushed_at":"2024-08-11T13:25:42.000Z","size":1515,"stargazers_count":913,"open_issues_count":5,"forks_count":22,"subscribers_count":4,"default_branch":"dev","last_synced_at":"2025-03-24T04:35:46.203Z","etag":null,"topics":["find","fuzzy","fuzzy-match","fuzzy-search","fzf","javascript","js","search"],"latest_commit_sha":null,"homepage":"https://fzf.netlify.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajitid.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"license.txt","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":"2021-06-27T15:59:22.000Z","updated_at":"2025-03-22T12:38:37.000Z","dependencies_parsed_at":"2024-10-25T01:08:21.039Z","dependency_job_id":"9048ffa2-883d-49f2-ad83-80495aec9245","html_url":"https://github.com/ajitid/fzf-for-js","commit_stats":{"total_commits":236,"total_committers":7,"mean_commits":"33.714285714285715","dds":0.326271186440678,"last_synced_commit":"bd9d4596b8180862c5c5f6b6303df8c8adf09f35"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajitid%2Ffzf-for-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajitid%2Ffzf-for-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajitid%2Ffzf-for-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajitid%2Ffzf-for-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajitid","download_url":"https://codeload.github.com/ajitid/fzf-for-js/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246063182,"owners_count":20717761,"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","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":["find","fuzzy","fuzzy-match","fuzzy-search","fzf","javascript","js","search"],"created_at":"2024-07-31T19:01:37.446Z","updated_at":"2025-03-28T16:33:09.953Z","avatar_url":"https://github.com/ajitid.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","js"],"sub_categories":[],"readme":"# FZF for JavaScript\n\n[![Tests](https://github.com/ajitid/fzf-for-js/actions/workflows/main.yml/badge.svg?branch=dev)](https://github.com/ajitid/fzf-for-js/actions/workflows/main.yml)\n[![Docs deployment status](https://img.shields.io/netlify/e4324b0d-d5b2-4139-a688-e58f32a5af6b?label=Docs\u0026logo=netlify)](https://app.netlify.com/sites/fzf/deploys)\n\n[//]: # \"Image, text and counter/assist image needs to follow this order to be correctly aligned\"\n\n\u003cimg src=\"assets/landing.gif\" align=\"right\" /\u003e\n\n[Docs](https://fzf.netlify.app) · [Demo](https://fzf.netlify.app/docs/latest/basic) · [GitHub](https://github.com/ajitid/fzf-for-js) · [NPM](https://www.npmjs.com/package/fzf)\n\nOriginally available as [a fuzzy finder for CLIs](https://github.com/junegunn/fzf), FZF for JavaScript is a port of FZF's main algorithm so it can be used in browser context.\n\n\u003cimg src=\"assets/landing-assist.png\" width=\"100%\" height=\"0.001px\" /\u003e\n\n## Quick look\n\nInstall FZF for JavaScript using:\n\n```sh\nnpm i fzf\n```\n\nThen you can use it like:\n\n\u003c!-- prettier-ignore --\u003e\n```js\nimport { 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 =\u003e console.log(entry.item)) // lisp kotlin elixir\n```\n\nFor more ways to use this library, [visit documentation](https://fzf.netlify.app/).\n\n## Motivation\n\nCommand palette is becoming ubiquitous – you can find it in code editors ([Sublime Text](https://www.sublimetext.com/blog/articles/sublime-text-2-beta), VS Code), design tools ([Figma](https://forum.figma.com/t/new-quick-actions-menu/1788)), project management apps ([Height](https://twitter.com/michaelvillar/status/1347276324772192256), [Linear](https://linear.app/)), source control tools ([Fork](https://fork.dev/blog/posts/quick-launch/), Sublime Merge). Web apps are becoming more prevalent as well. FZF has a great fuzzy finding mechanism which could be used outside of CLI and into these palettes.\n\nThere is [a very good read](https://web.archive.org/web/20211130170018/https://capiche.com/e/consumer-dev-tools-command-palette) about command palettes if you want to learn more.\n\n## Thanks\n\n- Junegunn Choi (author of FZF, [website](https://junegunn.kr/)) – for making his work available and accessible to us. You can [sponsor his project](https://github.com/junegunn/fzf).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajitid%2Ffzf-for-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajitid%2Ffzf-for-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajitid%2Ffzf-for-js/lists"}