Skip to content
Agents tracked: 492 Releases (7d): 545 Agent status: 1 with issuesSince last limit reset: Claude 9d · Codex 7d For AI agents: Markdown Updated Nov 20, 2026

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

GitHub repo
Six sound effects built by ZzFX in the browser and drawn as waveforms with their length; four are the sample sounds from the README, coin and jump are our own number lists.
Made by AgentGid with zzfx 1.4.0 (npm tarball, sha1 9d9c64c2c57497f5cfa2bff5fb83a4cb35874ef6). MIT license; the waveforms are drawn by our page from samples ZzFX generated, no sound files from the project are shown.

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/ZzFX

License 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

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

27 / 100
Gid Score, same scale as developer tools
816
GitHub stars
11.8K
npm downloads, last 7 days
+72.1% in 4 weeks
ZzFX: downloads per weeknpm, zzfx 13,142
ZzFX: GitHub starsKilledByAPixel/ZzFX 816

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

Importing zzfx at the top of a server-rendered file (Next.js page, Nuxt server code, Node script)
Import it only in browser code, for example inside useEffect, onMounted or a dynamic import

ZzFX.js creates an AudioContext when the module loads, and there is no AudioContext on the server.

zzfx([,,925,.04,.3]) with the array passed as one argument
zzfx(...[,,925,.04,.3]) with the spread operator, so each number is its own argument

zzfx takes the numbers as separate parameters; the README always spreads the list.

Calling zzfx(...) again on every frame for a sound used very often
Build it once with new ZZFXSound([...]) and call .play() when needed

The sound object stores the generated samples, so later plays start at once.

Writing sound parameters by guesswork
Shape the sound in the ZzFX Sound Designer and paste the code it shows

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.

Commercial use
Yes

“Open Source: MIT licensed, use it anywhere!” github.com/KilledByAPixel/ZzFX

Credit
Not needed
Inside your app or game
Can ship inside your app
Pass the files on to your users
Allowed

“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

Monetized YouTube
Allowed
AI training
Not stated
Bots and bulk downloads
Not stated

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.

License rules
- 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/)
Can an agent use it by itself?
Yes.

Agent installs a package or loads it from a CDN.

Install
npm install zzfx
How an agent gets files
npm install zzfx, then import {zzfx} from 'zzfx' and call zzfx(...params); or copy ZzFX.js from the repository.
API, key or account
Not needed. Everything runs on your side.
MCP server
None found
Credit line, if you want one
Sound effects: ZzFX (MIT)
This card for machines

Alternatives

ZzFX This page

Free Commercial OK npm

jsfxr (sfxr.me)

Pick jsfxr for classic 8-bit style sounds from the older sfxr generator, with its own web app and WAV export.

Free tier Commercial OK npm

UI SFX

Pick UISFX when you want ready recorded interface sounds as MP3 and Ogg files instead of making your own.

Free Commercial OK npm

Freesound

Pick Freesound for real recorded sounds such as doors, rain or voices, checking each sound's own license.

Free With conditions API

Cuelume

Fourteen interaction sound cues for web interfaces, synthesized live with Web Audio and bound to elements through data attributes.

Free Commercial OK npm

Tiks

Open-source JavaScript library that synthesizes UI sound effects at runtime with the Web Audio API, with no audio files.

Free Commercial OK npm

All sound effects

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.