You push code. Nothing happens. The commit goes out and the only
acknowledgement you get is a wall of Enumerating objects. That's not a
workflow, that's a funeral.
faaa plays a sound every time a push actually lands. The sound can be the
current trending meme, a classic, or that one clip you found at 2am. Failed pushes
stay silent, because you don't deserve a sound for those.
curl -fsSL https://raw.githubusercontent.com/OkeyAmy/faaa/main/install.sh | shWindows (PowerShell):
irm https://raw.githubusercontent.com/OkeyAmy/faaa/main/install.ps1 | iexOr npm i -g @okeyamy/faaa, or go install github.com/okeyamy/faaa/cmd/faaa@latest.
Building from source needs Go 1.26.8 or newer: the go directive in go.mod
makes the Go toolchain download itself, which fails behind a restricted network.
That's one binary: no runtime, no daemon. The installer puts it on your
PATH and arms git.
Pin a release with FAAA_VERSION=0.0.6. Both installers check checksums.txt
and run the new binary once before replacing anything.
faaaThe first run wires itself into git for every repo on the machine. There's no step two.
| key | action |
|---|---|
space |
preview |
enter |
arm it: this plays on your next push |
/ |
search anything, or paste a link |
tab |
trending / classics / mine |
[ ] |
clip length, 5–60s |
j k g G |
move, top, bottom |
t |
cycle theme |
x |
mute |
Search isn't limited to the list. Type a name and faaa looks it up online while you type.
On a call? FAAA_MUTE=1 git push silences one push; faaa off silences
everything until faaa on.
Saw a sound on TikTok, Reels or Shorts? Copy the link and paste it into the search box, or:
faaa add https://www.tiktok.com/@someone/video/7106594312292453675
faaa add ./my-sound.mp3 "the name"
faaa add https://example.com/clip.mp3TikTok video links need nothing else installed. Sound pages
(tiktok.com/music/...) are locked behind TikTok's signed API, so open any
video using the sound, hit Share, then Copy link, and paste that. Instagram, YouTube and friends go
through yt-dlp, which faaa fetches once (3MB) if you have Python, and those
links also need ffmpeg.
Long sounds get cut to your clip length, but the cut isn't taken from the start. Intros are boring. faaa scans the whole track and scores every window on:
- loudness, since the part everyone remembers is rarely the quiet part;
- onset density, measured with spectral flux, so the window actually has something happening in it;
- repetition, by matching chroma against the rest of the track, because the section that comes back is the hook;
- dead air, which is penalized.
Then it snaps the start to the nearest hit so the clip lands on a beat instead of mid-syllable, fades the edges and normalizes loudness. A 4-minute track takes about half a second.
faaa length 25 # or [ ] in the picker| command | what it does |
|---|---|
faaa |
picker; first run arms git |
faaa add <file|link> |
your own sound |
faaa search <words> |
find one online |
faaa length [1-60] |
clip length, best part picked |
faaa volume [1-100] |
faaa's own gain, not the device's |
faaa off / faaa on |
mute / unmute |
faaa fail <id|off> |
sound for rejected pushes |
faaa upgrade |
is there a newer release |
faaa doctor |
something's quiet, find out why |
faaa uninstall |
disarm and restore git config exactly |
faaa --help lists the rest: set, list, theme, share, update.
Drop a .faaa file in a repo:
vine-boom
sad-violin
Line one is what plays when anyone on the team pushes there. Line two, if present, plays when a push gets rejected. Commit it. Your coworkers will thank you. Probably.
~/.config/faaa/config.json
{
"theme": "terminal",
"colors": { "accent": "#F05033" },
"max_seconds": 15,
"volume": 0.6,
"fail_sound": "sad-violin",
"player": ["mpv", "--really-quiet"]
}Setting "volume": 0 in config.json means full volume (legacy); use faaa off to mute.
The default theme is terminal. It uses your terminal's 16 ANSI colors, so
faaa matches whatever you've already set up: Omarchy, rose-pine, a scheme you
wrote by hand. ink is monochrome with git orange. The color slots are fg,
dim, accent, accent2, hot, ok and border, and any of them can be
overridden with hex or an ANSI number. player defaults to whatever the OS already
has: pw-play / paplay / aplay on Linux, afplay on macOS, PowerShell on
Windows.
Git has no post-push hook, so faaa builds one out of what git does provide.
- A global
pre-pushhook records which commits are about to go out and the current remote-tracking refs, then hands off to a detached process and exits in about 2ms. Your push never waits on it. - That process waits for
git pushto exit, then checks whetherrefs/remotes/<remote>/<branch>moved to the commit you pushed. If it did, the push landed and the sound plays. If the push was rejected, nothing plays.
On git versions with config-based hooks, it's registered as
hook.faaa-push and runs alongside .git/hooks, husky and whatever else you
have. Older git falls back to a core.hooksPath shim that chains to each
repo's own hooks. faaa doctor tells you which mode you're in.
The trending list is rebuilt every few hours by a GitHub Action and fetched in the background with an ETag. Nothing runs on commit, checkout, status or fetch.
I pushed and heard nothing.
faaa doctor first. It tells you which player it found, whether the hooks are
in, and whether that player can do volume at all. Then check faaa off and
FAAA_MUTE in that shell. Failed pushes are silent on purpose, and a .faaa
naming a sound you don't have gets a note on the push, not a crash.
How do I make it quieter without touching my system volume?
faaa volume 40. That's faaa's own level, 1-100, not your device's — music,
calls and everything else stay where you left them. faaa off mutes faaa
outright, faaa on brings it back, and FAAA_MUTE=1 git push silences exactly
one push. In config.json the same setting is a fraction of one (0.6 is 60%).
Bare aplay — ALSA without PipeWire or PulseAudio — and the Windows PowerShell
player can't do gain at all; faaa doctor says so instead of pretending.
Does it fire on every push in every repo?
Yes. It installs a global hook. Drop a .faaa in one repo when that team wants
their own anthem.
Does it slow git push down?
No. The hook writes down the refs and leaves in about 2ms. The waiting and the
noise happen in a detached process.
How do I update or remove it?
faaa upgrade checks the latest release and prints the install command for how
you got faaa; it never swaps the binary itself. To get rid of it, faaa uninstall
pulls the hooks and restores your git config exactly, then delete the binary. On
Windows, uninstall.ps1 drops the folder and the PATH entry too.
What does it collect? Nothing. No telemetry, no account, no server.
faaa is free, has no telemetry and no account. If it made you laugh:
- Star the repo — that is what puts it in front of other people.
- Share a sound —
faaa share <id>adds it to the community list. - Tell one person — one good
git pushdemo beats any badge.
go test ./...
sh scripts/e1e.sh ./faaa # real push / fetch / reject in a sandboxed $HOME
go run ./scraper # rebuild the trending listSubmitting a sound: faaa share <id>, or open a PR adding it to
community/. Only submit sounds you made or have the
right to share.
The built-in classics ship inside the binary so faaa works offline on first run.
They live in internal/audio/builtin/:
cp ~/Downloads/emotional-damage.mp3 internal/audio/builtin/
# add to internal/audio/builtin/builtin.json:
# {"id": "emotional-damage", "title": "Emotional Damage"}
go build -o faaa ./cmd/faaaOrder in builtin.json is menu order, and the first entry is the default. For
something only you want, use faaa add, which needs no rebuild.
The picker is built with Bubble Tea, Bubbles and Lip Gloss.
Thanks for supporting faaa.
MIT. Sounds belong to their creators. The repository stores links, not audio, apart from the built-in classics.
