Skip to content
OkeyAmyPublic

About

git push, but louder — a trending sound on every successful push. Fast, tiny, one binary.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

faaa — git push, but louder

git push, but louder.

release npm downloads license


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.

Install

curl -fsSL https://raw.githubusercontent.com/OkeyAmy/faaa/main/install.sh | sh

Windows (PowerShell):

irm https://raw.githubusercontent.com/OkeyAmy/faaa/main/install.ps1 | iex

Or 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.

Use

the faaa picker: waveform preview with a moving playhead, then pasting a TikTok link

faaa

The 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.

Bring your own sound

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.mp3

TikTok 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.

It doesn't just take the first 15 seconds

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

Commands

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.

Team anthem

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.

Configure

~/.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.

How it works

Git has no post-push hook, so faaa builds one out of what git does provide.

  1. A global pre-push hook 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.
  2. That process waits for git push to exit, then checks whether refs/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.

FAQ

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.

Support

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 push demo beats any badge.

Contributing

go test ./...
sh scripts/e1e.sh ./faaa   # real push / fetch / reject in a sandboxed $HOME
go run ./scraper           # rebuild the trending list

Submitting 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/faaa

Order 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.

Downloads

Installer runs over time

Thanks for supporting faaa.

License

MIT. Sounds belong to their creators. The repository stores links, not audio, apart from the built-in classics.

About

git push, but louder — a trending sound on every successful push. Fast, tiny, one binary.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages