ZzFX
by Frank Force (KilledByAPixel)
Tiny JavaScript sound effects generator (under 1 KB compressed) for games; one zzfx(...) call plays a sound, with a web designer to make new ones and save them as WAV.
Sound effects Code libraryOpen source

1. Price: github.com/KilledByAPixel/ZzFX
Free and open source (MIT).
github.com/KilledByAPixel/ZzFXNo quote yet: price is read from the official pages.
2. Commercial use: github.com/KilledByAPixel/ZzFX
“Open Source: MIT licensed, use it anywhere!”
MIT allows paid games and apps; keep the notice with the code.
github.com/KilledByAPixel/ZzFX3. Credit the author: LICENSE on GitHub
No credit on screen. Keep the license notice inside the code you ship.
LICENSE on GitHub4. Agent access: github.com/KilledByAPixel/ZzFX
An agent can install it by itself with npm install zzfx. No key or account is needed.
github.com/KilledByAPixel/ZzFXLicense checked Nov 7, 2026 against 2 official pages. Tap a verdict to see its source. How we checked Report an error
ZzFX: game sound effects from one line of code
ZzFX is a very small free code library that makes sound effects, such as a coin, a jump or a hit, while the page runs. Each sound is a short list of numbers instead of an audio file, so your game or site needs no sound files to download. A free web designer lets you shape new sounds and save them as WAV files.
Where you can use it
Sounds for a browser game
Give jumps, coins, hits and game-over moments their own sound in a small web game, without hunting for audio files.
Game jams with a size limit
Keep sound in a game for a contest that caps the whole game at a few kilobytes, such as js13k.
Placeholder sounds while prototyping
Try sound in an early game or app version in minutes, then swap in recorded sounds later if you want.
Clicks and chimes on a website
Add a soft click to a button or a chime when a task is done on an ordinary website, not only in games.
Sound files for other engines
Shape a sound in the free designer, download it as a WAV file and use it in an engine or app that cannot run JavaScript.
Sound that changes with the action Idea
Raise the pitch of a coin sound as the combo grows, or pan an explosion to the side where it happens.
As reported by Frank Force (KilledByAPixel): Less than 1 kilobyte when compressed; 20 controllable parameters.
ZzFX popularity
Downloads from api.npmjs.org, stars from GitHub, checked Nov 19, 2026. How the Gid Score is calculated
How to start
Tell your AI assistant
“Add zzfx 1.4.0 to the game, define coin, jump, hit and game-over sounds as ZzFX number lists in one sfx file, and play them only after the first click or key press.”
Or install it yourself.
npm install zzfx
Show code
Import it and play a sound with one call; the list of numbers describes the sound.
import {ZZFX, zzfx} from './ZzFX.js'
zzfx(...[,,,,.1,,,,9])
Mistakes to avoid
ZzFX.js creates an AudioContext when the module loads, and there is no AudioContext on the server.
zzfx takes the numbers as separate parameters; the README always spreads the list.
The sound object stores the generated samples, so later plays start at once.
The 20 numbers interact; the designer plays and draws each change.
License
MIT license. Free in personal and paid games, apps and sites, no visible credit needed. Keep the short copyright and license notice with copies of the code.
“Open Source: MIT licensed, use it anywhere!” github.com/KilledByAPixel/ZzFX
“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction” LICENSE on GitHub
AllowedWith conditionsNot allowedNot stated or not checked yet
Is ZzFX free for commercial use? The full answer Not legal advice. Check the license page before you ship.
For your agent
License rules tell your agent what it may do with ZzFX. Paste them into your prompt or AGENTS.md.
- ZzFX (Sound effects). Tiny JavaScript sound effects generator (under 1 KB compressed) for games; one zzfx(..) call plays a sound, with a web designer to make new ones and save them as WAV. Price: free; commercial use OK; no credit needed.
Connect: npm zzfx.
Get files: npm install zzfx, then import {zzfx} from 'zzfx' and call zzfx(..params); or copy ZzFX.js from the repository.
Not allowed: Keep the MIT notice with the code
Rule: Keep the MIT copyright and permission notice with the ZzFX code you ship.
License: https://github.com/KilledByAPixel/ZzFX/blob/master/LICENSE (checked 2026-11-07; details: https://agentgid.com/assets/zzfx/)
Agent installs a package or loads it from a CDN.
npm install zzfxSound effects: ZzFX (MIT)Alternatives
ZzFX This page
Pick jsfxr for classic 8-bit style sounds from the older sfxr generator, with its own web app and WAV export.
Pick UISFX when you want ready recorded interface sounds as MP3 and Ogg files instead of making your own.
Pick Freesound for real recorded sounds such as doors, rain or voices, checking each sound's own license.
Fourteen interaction sound cues for web interfaces, synthesized live with Web Audio and bound to elements through data attributes.
Open-source JavaScript library that synthesizes UI sound effects at runtime with the Web Audio API, with no audio files.
Questions
Do I need sound files?
No. Each sound is a list of numbers that ZzFX turns into sound while the page runs.
How do I make a new sound?
Open the free ZzFX Sound Designer, shape or pick a random sound, and copy its zzfx code into your game.
Can I use it in a paid game?
Yes. It is MIT licensed; keep the copyright and license notice with the code.
Can I get a WAV file for another engine?
Yes. The designer can save each sound as a .wav file.
Does it need other libraries?
No. It runs on its own with no other libraries.