About
@nanoforge-dev/sound is NanoForge’s built-in sound-effect library. It manages a collection of named HTMLAudioElement instances exposed on Context.sound. Unlike @nanoforge-dev/music, multiple sounds may overlap — there’s no single-track exclusivity.
Installation
Node.js 26 or newer is required.Example usage
RegisterSoundLibrary on your client app:
Context.sound:
ctx.sound.mute() to toggle the muted state of every loaded sound effect. play throws NfNotFound when the given key was never loaded.
Links
Contributing
Before creating an issue, please ensure that it hasn’t already been reported/suggested, and double-check the documentation.See the contribution guide if you’d like to submit a PR.
