# requirejs/requirejs

A file and module loader for JavaScript

Repository: https://github.com/requirejs/requirejs
Canonical: https://ross.abutalabs.com/products/requirejs
Homepage: https://requirejs.org/
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2025-11-30T23:49:15+00:00

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

## Adoption (not part of the score)
Stars 12914, forks 2325 (observed 2026-08-28T04:11:00.141084+00:00)

## What it is
RequireJS is a JavaScript file and module loader implementing the AMD (Asynchronous Module Definition) API, optimized for in-browser use but also runnable in Node, Rhino, and Nashorn. It includes an r.js optimization tool that combines and minifies scripts and CSS for deployment.

## Use cases
- load javascript modules asynchronously in the browser
- manage script dependencies without global variables
- bundle and minify javascript files for production
- load text files and templates as module dependencies
- run amd modules in node or rhino
- load multiple versions of a module on one page
- load i18n string bundles in the browser

## When to choose
- maintaining a legacy codebase already built on AMD modules
- supporting very old browsers like IE6+ where native modules are unavailable
- you need a battle-tested loader with an optimizer for AMD-style code

## When to avoid
- starting a new project - use native ES modules or a modern bundler like webpack, Vite, or esbuild
- your project already uses CommonJS or ESM exclusively
- you need tree-shaking or modern build tooling

## Facets
- artifact type: library
- maturity: maintenance
- function: build-tool, plugin-system, developer-tools
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: amd, module-loader, script-loader, optimizer, minification, legacy-browsers, nodejs, javascript

## Member repositories
- requirejs/requirejs (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:00.141084+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:13:41.413449+00:00, confidence not recorded.
  - readme: https://github.com/requirejs/requirejs (fetched 2026-08-28T04:11:00.141084+00:00, sha 84068e70decd)
  - homepage: https://requirejs.org/ (fetched 2026-08-29T08:10:01.409727+00:00, sha 2cf372a60b42)
  - site_page: https://requirejs.org/docs/start.html (fetched 2026-08-29T08:10:01.417217+00:00, sha d899f6a5fa12)
  - site_page: https://requirejs.org/docs/download.html (fetched 2026-08-29T08:10:01.419354+00:00, sha a2a8bf0645bb)
  - site_page: https://requirejs.org/docs/api.html (fetched 2026-08-29T08:10:01.421591+00:00, sha 814e1c732b48)
  - site_page: https://requirejs.org/docs/optimization.html (fetched 2026-08-29T08:10:01.425117+00:00, sha 518bf20e290e)
  - site_page: https://requirejs.org/docs/jquery.html (fetched 2026-08-29T08:10:01.427275+00:00, sha 92438a64c27c)
  - site_page: https://requirejs.org/docs/node.html (fetched 2026-08-29T08:10:01.430455+00:00, sha fc3fc7c9c6ef)
  - site_page: https://requirejs.org/docs/dojo.html (fetched 2026-08-29T08:10:01.433455+00:00, sha f638394ae483)
  - site_page: https://requirejs.org/docs/commonjs.html (fetched 2026-08-29T08:10:01.435779+00:00, sha 59603ae9c70f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
