# micromodal/Micromodal

⭕   Tiny javascript library for creating accessible modal dialogs

Repository: https://github.com/micromodal/Micromodal
Canonical: https://ross.abutalabs.com/products/micromodal
Homepage: https://micromodal.now.sh/
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, modal, modal-dialogs, accessibility, vanilla-javascript
Last push: 2026-08-08T04:57:37+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 87, longevity 100
- inputs: {"age_days": 3310, "days_push": 25, "days_rel": 91, "gap_med": 3.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3658, forks 235 (observed 2026-08-28T04:08:13.253699+00:00)

## What it is
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
- artifact type: library
- maturity: active
- function: ui-components, accessibility, frontend-framework
- domain: web-development, frontend, accessibility
- platform: browser, cross-platform
- tags: modal-dialogs, vanilla-javascript, wai-aria, focus-trap, dependency-free, tiny-footprint, javascript

## Member repositories
- micromodal/Micromodal (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:13.253699+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:31:36.774812+00:00, confidence not recorded.
  - readme: https://github.com/micromodal/Micromodal (fetched 2026-08-28T04:08:13.253699+00:00, sha 3efc02386313)
  - homepage: https://micromodal.now.sh/ (fetched 2026-08-29T09:25:59.147033+00:00, sha 74a27705f451)
- Data as of 2026-08-30T08:39:29.467469+00:00.
