# HubSpot/vex

A modern dialog library which is highly configurable and easy to style. #hubspot-open-source

Repository: https://github.com/HubSpot/vex
Canonical: https://ross.abutalabs.com/products/vex
Homepage: http://github.hubspot.com/vex/docs/welcome
Language: CSS
License: MIT
License Family: permissive
Last push: 2023-02-26T00:28:34+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4745, "days_push": 1285, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6872, forks 479 (observed 2026-08-28T04:09:51.038692+00:00)

## What it is
vex is a lightweight (~5.6kb) vanilla JavaScript dialog library for creating highly configurable, easily stylable modal dialogs. It serves as a drop-in replacement for native alert, confirm, and prompt with smooth animations, theming, and mobile support.

## Use cases
- replace native alert confirm and prompt with styled modals
- show customizable modal dialogs in a web app
- create login or prompt dialogs with custom themes
- open multiple stacked dialogs and close them independently
- add animated modal popups that work on mobile devices

## When to choose
- you need a tiny dependency-free dialog library in vanilla JavaScript
- you want full control over dialog styling, themes, and animations
- you need broad legacy browser support including IE9
- you want a drop-in replacement for alert, confirm, and prompt

## When to avoid
- you are using a modern framework with its own dialog ecosystem (e.g., React or Vue component libraries)
- you need accessibility-audited dialogs with active maintenance
- you require advanced features like focus trapping guarantees or complex nested workflows

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, animation, form-handling
- domain: web-development, frontend
- platform: browser, cross-platform
- tags: modal-dialogs, vanilla-javascript, alert-confirm-prompt, lightweight, themable

## Member repositories
- HubSpot/vex (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:51.038692+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-29T17:41:41.543016+00:00, confidence not recorded.
  - readme: https://github.com/HubSpot/vex (fetched 2026-08-28T04:09:51.038692+00:00, sha 4f76c175230e)
  - homepage: http://github.hubspot.com/vex/docs/welcome (fetched 2026-08-29T08:37:32.315291+00:00, sha cae992175d52)
  - site_page: http://github.hubspot.com/vex (fetched 2026-08-29T08:37:32.324224+00:00, sha f73491dba618)
- Data as of 2026-08-30T08:39:29.467469+00:00.
