# umdjs/umd

UMD (Universal Module Definition) patterns for JavaScript modules that work everywhere.

Repository: https://github.com/umdjs/umd
Canonical: https://ross.abutalabs.com/products/umd
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-11-26T23:55:09+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": 5430, "days_push": 645, "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 7434, forks 423 (observed 2026-08-28T04:09:59.849405+00:00)

## What it is
A collection of UMD (Universal Module Definition) patterns and templates for writing JavaScript modules that work across AMD, CommonJS, and browser global environments. It formalizes the UMD API so library authors can ship a single file compatible with multiple module systems.

## Use cases
- write a javascript library that works in node and the browser
- make my module compatible with requirejs amd and commonjs
- umd wrapper template for publishing a library
- ship a single js file supporting multiple module loaders
- export a browser global alongside amd module definition

## When to choose
- maintaining a legacy library that must support AMD, CommonJS, and globals in one file
- targeting environments without a package manager or bundler

## When to avoid
- starting a new project that can rely on ES modules and modern bundlers
- you only need to support Node.js or only browsers with native ESM

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, developer-tools, boilerplate
- domain: web-development, frontend, developer-tools, programming-languages
- platform: browser, cross-platform
- tags: umd, module-definition, amd, commonjs, javascript-modules, module-patterns, templates, nodejs

## Member repositories
- umdjs/umd (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:59.849405+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:37:43.667523+00:00, confidence not recorded.
  - readme: https://github.com/umdjs/umd (fetched 2026-08-28T04:09:59.849405+00:00, sha 86fa3d3620f8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
