# jsfxr (sfxr.me) — card for AI agents

Retro game sound effects generator (a JavaScript port of sfxr) with a web app and an npm library to generate, play and export 8-bit style sounds as WAV.

Category: Sound effects · maker Chris McCormick (chr15m) · checked 2026-11-07

## Price
- Price: Free tier
- Free tier: Generator, library and WAV export are free; a Pro option adds mp3, ogg, sfxr and zip sound pack export.
- Pricing page: https://sfxr.me

## License
Unlicense (public domain) — https://github.com/chr15m/jsfxr/blob/master/UNLICENSE

- commercial: **yes** (Commercial use OK)
  > Unrestricted commercial use.
  (https://sfxr.me)
- attribution: **no** (No credit needed)
- in app: **yes** (Can ship inside your app)
- redistribute: **yes** (Can pass the files on to your own users)
  > Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial
  (https://github.com/chr15m/jsfxr/blob/master/UNLICENSE)
- youtube: **yes** (OK in monetized YouTube videos)

## Can an AI agent use it by itself?
**Yes** · package: Agent installs a package or loads it from a CDN

## How an agent gets files
- npm i jsfxr, then import {sfxr} from 'jsfxr'; sfxr.generate('pickupCoin') and sfxr.toWave(sound).dataURI, or export WAV from sfxr.me. (sign-in: none)

## How to connect
- Package (npm/PyPI)
- npm: `npm install jsfxr`
- Repository: https://github.com/chr15m/jsfxr
- Website: https://sfxr.me

## Notes
Library: npm i jsfxr; sfxr.generate(preset), sfxr.play(sound), sfxr.toWave(sound) gives a WAV data URI. npm jsfxr 1.4.1; repo pushed 2026-05-05.

## Numbers (AgentGid data)
- Gid Score: 12
- GitHub stars: 467
- Downloads last week: 4,148

## Lines to paste into your prompt or AGENTS.md

```
- jsfxr (sfxr.me) (Sound effects). Retro game sound effects generator (a JavaScript port of sfxr) with a web app and an npm library to generate, play and export 8-bit style sounds as WAV. Price: free tier; commercial use OK; no credit needed.
  Connect: npm jsfxr.
  Get files: npm i jsfxr, then import {sfxr} from 'jsfxr'; sfxr.generate('pickupCoin') and sfxr.toWave(sound).dataURI, or export WAV from sfxr.me.
  License: https://github.com/chr15m/jsfxr/blob/master/UNLICENSE (checked 2026-11-07; details: https://agentgid.com/assets/jsfxr/)
```

Not verified: Price of the Pro option is not shown on the page read.

## Links
- AgentGid page: https://agentgid.com/assets/jsfxr/
- Is it free for commercial use? https://agentgid.com/assets/jsfxr/commercial-use/
- Source: https://sfxr.me
- Source: https://github.com/chr15m/jsfxr
- Source: https://github.com/chr15m/jsfxr/blob/master/UNLICENSE
- Source: https://registry.npmjs.org/jsfxr/latest


## jsfxr: retro 8-bit sound effects for games

jsfxr is a free sound maker for old-school 8-bit game sounds, like a coin pickup, a laser or a jump. You click a sound type in the web app at sfxr.me, tweak it and download a WAV file. Your game can also make the same sounds in code, and you may use them in paid games.

### Where to use it
- Sound effects for a small game: Give coins, shots, explosions and jumps a classic arcade sound in a browser game, made by your game's own code.
- The same sound every time: Pick the exact sound you like in the web app, copy its settings and play that one sound in your game, so it never changes.
- WAV files for any engine: Make a sound in the web app and download it as a WAV file for Unity, Godot, a video or any tool that plays audio files.
- Quick placeholder sounds: Click Random or a sound type a few times and keep what fits, so an early game or app version has sound in minutes. (idea, not from the official pages)
- Feedback sounds in a learning app: Play a soft blip for a right answer and a short buzz for a wrong one in a quiz or a children's app. (idea, not from the official pages)

### How to start
- Open sfxr.me, click a sound type such as Pickup/coin or Explosion, adjust it, and download it as a WAV file.
- To make sounds in your game's code, install the package and import it.

```
npm i jsfxr

import { sfxr } from "jsfxr";
```

- Generate a sound from a preset, or play a sound you saved from the web app.

```
const sound = sfxr.generate("pickupCoin");
sfxr.play(sound);
```


### License
Public domain under the Unlicense, so you can use, change and sell it, and the sounds you make with it, with no credit needed. The web app says commercial use is unrestricted.

### Good to know
- Each call to a preset makes a new random variant of that sound type. Save the settings or the short code of a sound you like to get it back exactly.
- The free web app makes unlimited sounds and exports WAV. A paid Pro version adds MP3 and Ogg export, sound packs and cloud save; its price is not shown on the free page.
- The free web app says it collects no personal data and has no ads or trackers.
- Sounds come out at 44,100 samples per second by default, and the web app also offers 8 or 16 bit and lower rates.

Checked 2026-11-19 against: https://sfxr.me/, https://pro.sfxr.me/, https://github.com/chr15m/jsfxr, https://github.com/chr15m/jsfxr/blob/master/README.md, https://github.com/chr15m/jsfxr/blob/master/UNLICENSE, https://registry.npmjs.org/jsfxr/latest, https://registry.npmjs.org/jsfxr/-/jsfxr-1.4.1.tgz

### Mistakes to avoid
- Don't: const sfxr = require("jsfxr") and then sfxr.generate(...) → Do: const sfxr = require("jsfxr").sfxr, or import { sfxr } from "jsfxr" (The package exports an object whose sfxr field holds the API.)
- Don't: Loading sfxr.js with a script tag and then writing const sfxr = ... in your own script → Do: Use the global sfxr namespace the script defines directly (The script already declares sfxr, so a second declaration stops your script with an error (seen in our demo).)
- Don't: Calling sfxr.generate("jump") on every jump and expecting the same sound → Do: Generate once and keep the sound, or paste the serialized settings or short code you picked on sfxr.me (Presets are random each time, so every call sounds a little different.)
- Don't: Rebuilding the sound from its settings on every play in a busy game → Do: Build the sound object once (for example with sfxr.toAudio) and call play() on it many times (Each build renders all samples again; the docs suggest caching the internal sound for efficiency.)

### Questions
- Can I use the sounds in a game I sell? Yes. The web app lists unrestricted commercial use, and the code is released into the public domain.
- Do I have to credit jsfxr? No. The Unlicense dedicates the code to the public domain and asks for nothing in return.
- Which sound types are there? Coin pickup, laser, explosion, power-up, hit, jump, blip, synth, tone, click and random.
- Can I get MP3 or Ogg files? Only in the paid Pro version; the free app exports WAV.
- Can I convert a sound to a file on my own computer? Yes. The package includes a small sfxr-to-wav script for Node.js that turns a sound's short code into a WAV file.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
