npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@arach/fab

v0.2.20

Published

fab's command line: routes, jobs, Hush and the shared clipboard. The fab Mac app installs it and keeps it at its own version.

Readme

Fab CLI and Mac app

The app build requires an Apple silicon Mac with macOS 26 or later. Fab ships dictation, Grab, markup, history and Hush. The Line and routing UI are in Labs, which is off by default. Jobs entered explicitly at the CLI still route with Labs off.

Start with fab doctor, fab settings open, or fab hush --help. The CLI and the app share ~/.fab; set FAB_HOME for an isolated development state directory.

How the CLI and the app talk (IPC) and how a release is built and published: ARCHITECTURE.md at the repo root.

Routes

| Route | How | Receipt | |---|---|---| | app:<chatgpt/claude/slack/notion/chrome> | talkie dictate --text … --app <bundleId> [--submit] pastes into that app's own input | "Sent · open in ChatGPT" | | agent:claude / agent:codex | scout ask --project <dir> --harness claude/codex --notify; Codex runs the model set for code jobs (models.code) or the rest (models.other), else its own default | "Working · Codex · ref:…" | | local | native/fab-local: Apple's on-device model (Foundation Models, macOS 26+) for quick rewrites | "Done · on your Mac", with the answer inline | | model | scout ask … --harness codex [--model <models.smart>] --effort low|high: a smarter model via Codex; which one comes from fab models, never from code | "Working · " |

Routing is rules-only by default (routes.json, first match wins).

Jev routing (off by default: fab settings set jev true, or FAB_JEV=1). fab asks Jev, TypeSafe's System 1 model, a few typed questions in one call, and rules in src/jev.ts turn the answers into a route. The design is in design/briefs/routing.md §3.

  • --to, a named app, and the keywords "privately", "Claude Code" and "Codex" decide first, and Jev isn't called.
  • A private job (Jev's sensitive, or secrets found in the screen text on the Mac) stays on the Mac.
  • The model route gets --effort low|high from Jev's complexity answer: Sol thinks light, or hard on open-ended jobs.
  • When Jev is split, the job looks risky, or two apps are close, fab doesn't send. It says "Not sure: Slack or Notion?" and waits for --to or ⌘1–4.
  • Jev sees the job text, a line about you (fab settings set profile "…", else a guess from your jobs) and your last 5 jobs. It never sees the screen text, only the app's name.
  • The key comes from TYPESAFE_API_KEY in the environment, else fab's login-keychain item (service dev.fab.typesafe, account TYPESAFE_API_KEY; fab jev key stores it from stdin), else secret get TYPESAFE_API_KEY. Answers are cached for 10 minutes in ~/.fab/jev-cache.json, so the Line's preview and the send make one call. With no key, or when a call fails, the rules decide. Pins are in ~/.fab/pins.json: override the same kind of job twice to the same route and it's pinned. Every job is logged to ~/.fab/jobs.jsonl. Set FAB_HOME to use another folder.

Use

bun install                       # just @types/bun
bun run build:ocr                 # native/fab-ocr (Vision OCR + context window id)
bun run build:local               # native/fab-local (on-device route)
bun run build:find                # native/fab-find (finds a control inside an app for plan steps; Accessibility)
bun run build:panel               # ../app/fab.app (macOS 26+, Apple silicon; SwiftPM, links Vox for dictation)

bun src/fab.ts "ask chatgpt to compare these three laptops" --attach-screen --dry-run
bun src/fab.ts "fix the broken signup link" --in ~/dev/site
bun src/fab.ts ls                 # add --json for the panel; agent/model states come live from scout
bun test                          # router tests

open ../app/fab.app               # open Fab; the Line requires Labs
bun src/fab.ts settings open       # open Settings
bun src/fab.ts doctor              # check the Mac helpers

--dry-run shows the receipt without sending anything. The panel's Preview button does the same.

Saying it

Dictation is Vox, embedded: FabApp records the mic itself and Parakeet transcribes on this Mac. Ordinary dictation keeps the audio here. The experimental live-voice option sends a processed copy directly to selected paired Macs when explicitly enabled. Hold fn while the Line is open, or click the mic. The words land in the Line and the route shows as usual.

Experimental live voice

Install this build on both paired Macs. In Settings › Devices, enable Receive live voice here on the Mac playing music. On the speaking Mac, enable Send my voice and select that destination. Hold the talk key: Hush lowers the music and plays a live, C-major pitch-corrected copy of your voice through the destination’s current output. Release to stop. The recording used for transcription stays unprocessed.

Both controls default to off. Playback requires successful per-app Hush ducking; it stays off when Hush can only lower the whole output volume. Older builds do not receive audio. Release, disconnect, lease expiry, delayed capture, missing audio, or an output change stops the stream. A recording-buffer overflow discards the take and reports an error. There is no local voice monitor.

This is a prototype. The granular effect can color the voice, and connected speakers can feed back into a nearby microphone. There is no cross-device echo cancellation or synchronization between speakers. Two-Mac latency and real speech quality still need a listening test before release.

  • Uses the mic picked in Settings, else the one Vox is set to (~/.vox/preferences.json, shared with Vox and Minivox). FAB_MIC=<device uid> overrides both.
  • Needs a Vox checkout at ~/dev/vox (or VOX=/path/to/vox, the repo root). The first build takes about 40 s.
  • The build signs with your Apple Development identity so the mic permission survives rebuilds (FAB_SIGN picks another; - is ad hoc).
  • Drive it without the pointer: post the distributed notification dev.fab.dictate with object start, stop or nothing to toggle.
  • ../app/fab.app/Contents/MacOS/fab --transcribe clip.wav transcribes a file.
  • ~/.fab/dictation.log says what was heard (lengths only).

Settings

With Labs off, the pages are General, Keys, Voice, Hush, Devices, Places, Permissions and About. Labs adds Routes, Apps and Agents. Open them with ⌘, while fab is active, from the menu-bar mark's right-click menu, or with fab settings open [page].

  • Everything you change goes in ~/.fab/settings.json, laid over routes.json. It holds only what you changed; fab settings reset <key> restores the default. fab settings set <key> null stores a JSON null; it does not remove the key. The CLI and the app read the same file: fab settings set routes.code agent:codex shows up in the window the next time it or the Line opens.
  • The pages are a web app (../app/web/: Vite, React, Tailwind). The sidebar is HudsonKit's HudSideNav, resizable with its HudRailResizeHandle from 132 to 300 px (drag the edge anywhere down the window, double-click to reset; drag past the minimum and it folds to a rail of icons, with the traffic lights and the brand on a title bar above and the page set in with a curved corner) (hudsonkit, linked from the hudson checkout), dressed in a fab Hudson template in ../app/web/src/index.css. The build copies ../app/web/dist into fab.app/Contents/Resources/settings, and the app serves it on fab://settings/ in a WKWebView. The page talks to the app through one message handler, fab: call('routes.get'), call('settings.set', {key, value}) and so on (../app/web/src/bridge.ts). The app pushes window.fabEvent({type}) back.
  • Working on the pages: cd ../app/web && bun dev runs them in a browser against a mock of this Mac. FAB_SETTINGS_URL=http://localhost:5173 points the app's window at the dev server, and FAB_INSPECT=1 makes it inspectable in Safari.
  • Look. fab's look is a set of named tokens in the theme block of settings (with ~/.fab/theme.json over it). fab theme lists each token, its value and where it comes from; fab theme set overlays light, fab theme set thread '#3b82f6', fab theme set radius 8; fab theme reset [token]. A running fab restyles open panels at once (the CLI posts dev.fab.set), with no relaunch; the grab.* tokens show on the next grab. Settings → General → Look has the one control, Overlays (Dark, Light, Match system). The app side is FabTheme.swift; web overlays read --fab-ground/raised/words/line/thread/radius.
  • fab doctor checks the Mac helpers with Labs off. Labs also enables agent and app checks.

Dev environment variables

| Variable | Read by | Effect | |---|---|---| | FAB_HOME | CLI and app | State folder instead of ~/.fab (settings, jobs, the Mesh link's trust and socket, logs). The CLI and the app must agree. | | FAB_SETTINGS_URL | app | Loads the Settings window from this URL (e.g. http://localhost:5173) instead of the bundled pages. | | FAB_INSPECT | app | Set to anything: the app's web views (Settings, History, Setup, Tuck) are inspectable in Safari. | | FAB_UPDATE_URL | app | The JSON update feed, over update.feed in settings (default https://dl.fab.run/latest.json). | | FAB_APPCAST_URL | app | The Sparkle appcast, over update.appcast in settings. | | FAB_CLI_ROOT | app | The CLI checkout the app runs fab from, over the FabCLIRoot that build.sh records; also stops a release app from using the installed @arach/fab. |

Pairing and places (Mesh)

Pairing, paired devices and places belong to Mesh, the link between Fab on your Macs and phone; the Settings page is Devices. The CLI verb keeps its older name, fab hush, so existing scripts keep working.

Run fab hush pair to list nearby Macs. Run fab hush pair <mac> to request pairing with one of them. Compare the four words on both Macs, then run fab hush confirm <mac> on each. Use fab hush deny <mac> to reject a request.

fab hush forget <mac> forgets the pairing here. Add --all to forget it on every paired Mac. fab hush forget --undo can undo the last forget within 10 seconds. fab hush rename [<mac>] <name> names this Mac or labels another Mac locally.

With Fab running, fab hush places --json lists known places. fab hush send "to api, hello" sends words to a place named api. fab hush name <place> <nickname> adds a nickname; add --remove to remove it.

Bare fab hush and fab hush --all are list shortcuts. Other arguments pass unchanged to the native helper, which reports unsupported commands with exit status 2. The wrapper preserves the helper's exit status.

Shared clipboard

The running Fab app owns the shared text store and paired host connections. Use fab clip hosts --json to discover hosts and fab clip host HOST_ID --json to select the storage host. Selection is saved; choose that same host when retrieving from another Mac.

fab clip status --json
fab clip hosts --json
fab clip host HOST_ID --json
fab clip share --file snippet.txt --json
printf '%s' 'text for another host' | fab clip share --json
fab clip list --json
fab clip get SHARE_UUID > received.txt
fab clip rm SHARE_UUID --json

share --text "text" takes a literal string. share --clipboard explicitly captures this Mac's clipboard. Bare share reads piped stdin. get writes the complete text without trimming or adding a newline; list previews are not complete items. Text must be valid UTF-8 and no larger than 256 KiB. The storage host keeps 50 recent items for seven days.

A share receipt identifies the item and says stored or pending. Stored means the host acknowledged its durable write; pending means it remains queued locally. fab clip refresh --json retries pending shares and updates the list. If a call times out, inspect the list before retrying; share --id SHARE_UUID reuses the same identity. Error JSON includes itemID when the share outcome is unknown. No command pastes into another app.

Exit status is 0 for completion, 1 for failure or an unknown result, and 2 for pending/removing or invalid arguments. JSON ok, state, and receipt distinguish these cases. --timeout SECONDS sets the reply deadline (default 30, maximum 60). Clip commands do not refresh model catalogs, including with Labs enabled.

The installable agent guide is skills/fab-clipboard/SKILL.md. FAB_HOME selects the IPC home and must match the running app's home.

Release

../app/scripts/release.sh builds the app for other Macs, signs it with Developer ID, gets it notarized and wraps it in a DMG at ../app/dist/fab-<version>.dmg.

  • FAB_RELEASE=1 ../app/scripts/build.sh doesn't point the app at this checkout, and doesn't carry the CLI: only routes.json goes into Resources. The CLI ships on npm as @arach/fab, and the app installs the one at its own version with bun add -g (installing Bun first if needed). FAB_CLI_PACKAGE_SPEC overrides what it installs (a tarball path, say).
  • ../app/scripts/publish-cli.sh publishes @arach/fab: it checks that package.json has the app's version (app/VERSION; src/package.test.ts checks it too), builds dist/fab.js (bun run build:bundle) and the helpers (fab-ocr, fab-local, fab-find, fab-hush), and runs bun publish with NPM_TOKEN from the keychain (secret run). FAB_CLI_DRY_RUN=1 does a dry run. Publish it with each app release.
  • Signing goes inside out with the hardened runtime. The app gets ../app/entitlements/app.plist (microphone).
  • The app is notarized and stapled first, then the DMG. FAB_VERSION sets the version, FAB_IDENTITY the signing identity, FAB_NOTARY the notarytool keychain profile (default notarytool), and FAB_SKIP_NOTARIZE=1 skips notarizing.
  • The icon is an Icon Composer document (../app/icon/fab.icon): the Stepped mark in glass on paper, and on night in dark mode. actool compiles it into Assets.car and fab.icns.
  • Apple silicon only. The app requires macOS 26 or later.

Labs

The Line, jobs and routing UI remain behind labs: true in settings. Use fab settings set labs true to enable them for development. fab settings reset labs restores the default. The CLI job commands remain available regardless of this UI setting.