# requirejs/r.js

Runs RequireJS in Node and Rhino, and used to run the RequireJS optimizer

Repository: https://github.com/requirejs/r.js
Canonical: https://ross.abutalabs.com/products/rjs
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2025-11-30T23:48:52+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": 5593, "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 2579, forks 654 (observed 2026-08-28T04:07:02.331246+00:00)

## What it is
r.js is a command line tool from the RequireJS project that runs JavaScript scripts using the AMD module API in Node, Rhino, Nashorn, and xpcshell. It also bundles the RequireJS Optimizer, which combines and minifies scripts for optimal browser delivery.

## Use cases
- run AMD-based JavaScript projects in Node
- optimize and combine scripts for browser delivery
- bundle RequireJS modules with the optimizer
- run AMD modules on the JVM via Rhino or Nashorn
- build a single-file distribution from modular JavaScript

## When to choose
- you maintain a legacy AMD/RequireJS codebase
- you need to run or optimize AMD modules outside the browser
- you want the classic RequireJS optimizer build pipeline

## When to avoid
- you are starting a new project (use native ES modules or a modern bundler)
- your project uses CommonJS or ESM exclusively
- you need active community development and modern tooling

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: cli, build-tool, interpreter
- domain: developer-tools, frontend, web-development
- platform: cli, cross-platform
- tags: amd, requirejs, module-loader, javascript-optimizer, rhino, nashorn, command-line, nodejs

## Member repositories
- requirejs/r.js (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:02.331246+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-30T02:22:40.069940+00:00, confidence not recorded.
  - readme: https://github.com/requirejs/r.js (fetched 2026-08-28T04:07:02.331246+00:00, sha f2f77370142f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
