MCPcopy Index your code
hub / github.com/ajitid/fzf-for-js

github.com/ajitid/fzf-for-js @v0.5.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5.2 ↗ · + Follow
103 symbols 233 edges 44 files 0 documented · 0% updated 15mo agov0.5.2 · 2023-04-25★ 9544 open issues

Browse by type

Functions 80 Types & classes 23
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

FZF for JavaScript

Tests Docs deployment status

Docs · Demo · GitHub · NPM

Originally available as a fuzzy finder for CLIs, FZF for JavaScript is a port of FZF's main algorithm so it can be used in browser context.

Quick look

Install FZF for JavaScript using:

npm i fzf

Then you can use it like:

import { Fzf } from 'fzf'

const list = ['go', 'javascript', 'python', 'rust', 
              'swift', 'kotlin', 'elixir', 'java', 
              'lisp', 'v', 'zig', 'nim', 'rescript', 
              'd', 'haskell']

const fzf = new Fzf(list)
const entries = fzf.find('li')
console.log('ranking is:')
entries.forEach(entry => console.log(entry.item)) // lisp kotlin elixir

For more ways to use this library, visit documentation.

Motivation

Command palette is becoming ubiquitous – you can find it in code editors (Sublime Text, VS Code), design tools (Figma), project management apps (Height, Linear), source control tools (Fork, 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.

There is a very good read about command palettes if you want to learn more.

Thanks

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 74
Interface 12
Class 9
Method 6
Enum 2

Languages

TypeScript100%

Modules by API surface

src/lib/algo.ts22 symbols
src/lib/finders.ts12 symbols
src/lib/matchers.ts9 symbols
src/lib/main.ts6 symbols
src/lib/pattern.ts5 symbols
src/docs/utils/mdx-setup.tsx4 symbols
src/lib/types.ts3 symbols
src/lib/numerics.ts3 symbols
src/lib/extended.ts3 symbols
src/lib/char.ts3 symbols
src/lib/__tests__/algo.ts3 symbols
src/docs/views/custom.tsx3 symbols

For agents

$ claude mcp add fzf-for-js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page