npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@accessibility-devkit/media

v1.1.1

Published

Utilities for auditory and media accessibility: caption and transcript checks, audio-only detection, and autoplay-audio control.

Readme

@accessibility-devkit/media

Utilities for auditory and media accessibility: caption and audio-description checks, autoplay-audio detection, transcript association, and an injected pause control. These support people who are Deaf or hard of hearing, and anyone disrupted by unexpected sound.

npm install @accessibility-devkit/media

Static checks cannot judge caption accuracy, audio-description quality, transcript completeness, or player usability. Review the final media manually in the browser and with supported assistive technology.

Track Checks (WCAG 1.2.2 / 1.2.5)

hasCaptions / hasAudioDescription

import { hasCaptions, hasAudioDescription } from '@accessibility-devkit/media';

hasCaptions(video); // true if a captions/subtitles track with a src exists
hasAudioDescription(video); // true if a descriptions track with a src exists

Autoplay Audio (WCAG 1.4.2)

isAutoplayingAudio / findAutoplayingAudio

import { findAutoplayingAudio } from '@accessibility-devkit/media';

findAutoplayingAudio(document.body); // media that autoplays audible sound

Media Audit

auditMedia

Reports the most common media problems: videos without captions (1.2.2), media that autoplays audible sound (1.4.2), and media with neither controls nor autoplay.

import { auditMedia } from '@accessibility-devkit/media';

for (const finding of auditMedia()) {
  console.warn(`[${finding.wcag}] ${finding.issue}`, finding.detail, finding.element);
}

Static markup only — it cannot judge caption quality or find a transcript elsewhere on the page.

Remediation Helpers

ensureAudioControl

Adds a labelled pause/play button after any autoplaying, audible media element that lacks native controls.

import { findAutoplayingAudio, ensureAudioControl } from '@accessibility-devkit/media';

findAutoplayingAudio().forEach(ensureAudioControl);

linkTranscript

Associates a transcript element with a player through aria-describedby.

import { linkTranscript } from '@accessibility-devkit/media';

linkTranscript(video, document.querySelector('#episode-transcript')!);

License

MIT. Author: Luke Steuber.