micromodal/Micromodal
⭕ Tiny javascript library for creating accessible modal dialogs observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 96
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 3.0
- age_days: 3310
- days_rel: 91
- days_push: 25
- n_releases_24m: 5
Adoption not part of the score
3658 stars · 235 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Micromodal.js is a tiny (~1.8kb), dependency-free JavaScript library for creating accessible modal dialogs that comply with WAI-ARIA guidelines. It handles aria attribute toggling, focus trapping, escape/overlay closing, and focus restoration with minimal configuration.
Use cases
- add accessible modal dialogs to a website
- trap keyboard focus inside a modal
- make modals screen-reader friendly with aria attributes
- close dialogs on escape key or overlay click
- support nested modals in vanilla javascript
- add modals without a heavy framework or dependencies
When to choose
- you need WAI-ARIA compliant modals in a plain JavaScript or framework-free project
- bundle size matters and you want a sub-2kb solution
- you want focus trapping and focus restoration handled for you out of the box
- you need nested modal support with minimal configuration
When to avoid
- your framework already provides a built-in accessible dialog component (e.g. Radix, Headless UI)
- you need highly complex modal workflows like multi-step wizards with state management
- you require IE11 support without adding the suggested polyfill
- you need a full component library rather than a single-purpose modal utility
Facets
library · maturity active
ui-components accessibility frontend-framework web-development frontend accessibility browser cross-platform modal-dialogs vanilla-javascript wai-aria focus-trap dependency-free tiny-footprint javascript
2 sources
- readme: https://github.com/micromodal/Micromodal · fetched 2026-08-28 · 3efc02386313
- homepage: https://micromodal.now.sh/ · fetched 2026-08-29 · 74a27705f451
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| micromodal/Micromodal | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="micromodal/Micromodal")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem