About
@nanoforge-dev/music is NanoForge’s built-in music library. It manages a collection of named HTMLAudioElement tracks exposed on Context.music and ensures only one track plays at a time — starting a new track pauses whichever one was playing.
Installation
Node.js 26 or newer is required.Example usage
RegisterMusicLibrary on your client app:
Context.music:
ctx.music.mute() to toggle the muted state of every loaded track. 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.
