# mooz/js2-mode

Improved JavaScript editing mode for GNU Emacs

Repository: https://github.com/mooz/js2-mode
Canonical: https://ross.abutalabs.com/products/js2-mode
Language: Emacs Lisp
License: GPL-3.0
License Family: copyleft
Last push: 2026-06-27T13:42:30+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 89, release rhythm 35, longevity 100
- inputs: {"age_days": 6015, "days_push": 67, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1337, forks 180 (observed 2026-08-28T04:04:25.625170+00:00)

## What it is
js2-mode is an improved JavaScript major mode for GNU Emacs featuring a full JavaScript parser (AST) for accurate syntax highlighting and editing. It integrates with Emacs' built-in js-mode for indentation and supports JSX via companion modes.

## Use cases
- edit JavaScript files in Emacs with better syntax highlighting
- get a JavaScript AST in Emacs for refactoring tools
- indent and highlight JSX/React code in Emacs
- replace the default js-mode with a parser-based JavaScript mode

## When to choose
- you use GNU Emacs 24.1+ and want robust JavaScript editing
- you need an AST-based JS mode to power tools like js2-refactor or skewer-mode

## When to avoid
- you are on Emacs 27+ and only need highlighting/indentation, since built-in js-mode covers that
- you need full IDE features like LSP-driven completion and diagnostics

## Facets
- artifact type: plugin
- maturity: stable
- function: editor, parser
- domain: developer-tools, text-editors, web-development
- platform: editor-plugin
- tags: emacs-lisp, javascript, syntax-highlighting, major-mode, jsx, emacs

## Member repositories
- mooz/js2-mode (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:25.625170+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-30T04:44:03.862197+00:00, confidence not recorded.
  - readme: https://github.com/mooz/js2-mode (fetched 2026-08-28T04:04:25.625170+00:00, sha 949e24707a08)
- Data as of 2026-08-30T08:39:29.467469+00:00.
