
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
ember-use-sound
Advanced tools
Add rich sound effects to your interactions in Ember!
This addon takes large inspiration from the React hook package use-sound
by Josh Comeau. Be sure to check out this great article he wrote which summarizes the huge benefits you get by enriching the user experience with a 2nd sensory input.
Utilizes the library ember-resources
under the hood to provide a Resource for loading and playing sounds via the wonderful Howler.js library.
This is a V2-format Addon with V1 compatibility
npm install ember-use-sound
# or
yarn add ember-use-sound
# or
ember install ember-use-sound
Any audio file you plan on referencing should be added within the /public/assets
directory of your ember application. They can then be referenced via relative paths in your code.
import { Component } from '@glimmer/component';
import { useSound } from 'ember-use-sound';
class Button extends Component {
popIn = useSound(this, () => ['/assets/pop-in.mp3']);
popOut = useSound(this, () => ['/assets/pop-out.mp3']);
}
<button
type='button'
{{on 'mousedown' this.popIn.play}}
{{on 'mouseup' this.popOut.play}}
>
Click me!
</button>
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Sound Effects for Ember Apps
The npm package ember-use-sound receives a total of 0 weekly downloads. As such, ember-use-sound popularity was classified as not popular.
We found that ember-use-sound demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.