CLI tool
formatjs/formatjs avatar
formatjs/formatjs

FormatJS: react-intl's monorepo, now three languages deep

The monorepo home to all of the FormatJS related libraries, most notably react-intl.

14,755 stars1,391 forksTypeScriptLicense varies

At a glance

What is it?
Fourteen thousand stars on a repository that publishes packages to npm, crates.io and PyPI, writes some of them in Rust, and tests its parsers against test262.
Who is it for?
FormatJS is worth understanding as an infrastructure project rather than a library. The published surface spans npm, crates.io and PyPI packages covering ICU message parsing, number and date formatting, segmenters and the framework bindings, and behind that sits a Rust and Python implementation of the same parsers, a native CLI with per-platform binaries, and conformance tests alongside a test262 setup.
Can I use it commercially?
Not without permission. GitHub finds no licence file in the repository, and without a licence all rights are reserved by default: you may read the code but not reuse it. Check the README, or ask the authors, before using it.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • formatjs/formatjs14,755 ★ · +11
Star history
Repository2026-10-072026-11-22
formatjs/formatjs14.7k14.8k

11 Stars in the last 46 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The README is a package table, which is the point

The FormatJS README contains almost no prose. After three badges, a Slack link and a pointer to CONTRIBUTING.md, it is a set of package tables: one by ecosystem (npm, crates.io, PyPI, and GitHub Releases for Hermes / React Native), one mapping each Intl API to its npm package and Rust crate, and one for the JavaScript libraries and tools. That tells you how the project is organised. There is no single product here. There is a set of small packages that others depend on, and the table is the index.

The packages fall into recognisable groups. The formatting polyfills carry explicit names: `@formatjs/intl-datetimeformat`, `@formatjs/intl-numberformat`, `@formatjs/intl-pluralrules`, `@formatjs/intl-relativetimeformat`, `@formatjs/intl-listformat`, `@formatjs/intl-displaynames`, `@formatjs/intl-segmenter`, `@formatjs/intl-locale`, `@formatjs/intl-localematcher` and `@formatjs/intl-getcanonicallocales`. Below those sit the shared pieces, `@formatjs/intl` and `@formatjs/icu-messageformat-parser`, and the tooling, `@formatjs/cli`, `@formatjs/cli-lib` and `@formatjs/ts-transformer`, plus `babel-plugin-formatjs` outside the scope.

Every one of those packages has its own version line and its own release cadence, which is the practical consequence of a monorepo with independent publishing.

Rust and Python crates inside a TypeScript monorepo

The tree contains `crates/` and `Cargo.toml` and `Cargo.lock` next to `pnpm-lock.yaml`, and the workspace manifest includes, among much else:

toml
[workspace]
resolver = "3"

[workspace.dependencies]
pretty_assertions = "1.4"
pyo3 = { version = "0.29.2", features = ["abi3-py312"] }
pythonize = "0.29.0"

The member list names a Rust crate for each Intl API (pluralrules, numberformat, datetimeformat, segmenter, collator and more), crates for an ICU skeleton parser, an ICU message format parser, ICU message format itself, Python bindings for each of those plus `intl_python`, `formatjs_intl` and `formatjs_intl_macros`, `intl_hermes`, Apple and Java printf parsers, and a CLI crate plus an N-API layer, and it also pulls in an integration test package from inside the JavaScript packages directory. So the message parser exists in at least two implementations, one for JavaScript and one for Rust, and Python bindings on top of the Rust one via PyO3.

The cost is a much heavier development story: the repository builds through Bazel across TypeScript, Rust and Python code rather than one language and one package manager.

Bazel, lefthook and a commit hook that runs everything

Build and test are both Bazel commands, and formatting and linting run through lefthook. The scripts in the root `package.json` are short enough to read in full:

json
"build": "bazel build //...",
"test": "lefthook run pre-commit --all-files && bazel test //..."

The test script is the interesting one, because running the pre-commit hooks across all files before the test suite means lint, formatting and commit message checks are part of what you run to verify a change. `lefthook.yml` holds the hook definitions and `prepare` installs them, which is how a clone gets the same hooks a maintainer's machine has.

Around that there is a wide ring of infrastructure files, and reading them tells you what the project is worried about. There is `BUILD.bazel`, `MODULE.bazel` and `MODULE.bazel.lock` for Bazel module resolution, `buildbuddy.yaml` for remote caching, `renovate.json` for dependency updates, `release-please-config.json` and `.release-please-manifest.json` for versioning, `sgconfig.yml` with an `sg-rules/` directory for ast-grep rules, `codescythe.jsonc`, and `.oxlintrc.json` with `.oxfmtrc.json` for the oxlint and oxfmt tools. There are also `AGENTS.md`, `CLAUDE.md` and a `.agents/` directory at the root.

Correctness as a testing concern

Three directories in the tree exist purely to check that the implementation is right. `conformance-tests/` holds conformance tests. `test262.BUILD` wires the JavaScript test262 suite into Bazel, which is the test suite the language itself uses. `fuzz/` is there for fuzzing the parsers, which makes sense once you consider that the input is arbitrary ICU message syntax coming from translators.

`benchmarks/`, `knowledge-base/` and `docs/` sit alongside them. The website script is `ibazel run //docs:serve`, so docs are Bazel targets and reload on change rather than a separate static site build.

There is also an `examples/` directory with five entries: `hermes-apple-sdk/`, `hermes-intl/`, `rescripts/`, `strict-locale-type/` and `strict-message-types/`. Those names describe what they demonstrate.

Native binaries for the CLI, per platform

The `package.json` devDependencies include a long run of platform packages for the CLI: `@formatjs/cli-native-darwin-arm64`, `cli-native-linux-arm64`, `cli-native-linux-arm64-musl`, `cli-native-linux-x64`, `cli-native-linux-x64-musl` and `cli-native-win32-x64`. Every one of them is pinned as a `workspace:*` dependency, so they are built from this repository rather than downloaded.

That is the CLI shipping as a native binary per platform instead of a JavaScript bundle, and it connects back to the Rust crates named `formatjs_cli` and `formatjs_cli_napi` in the Cargo workspace. The practical effect for a user is that extracting messages or compiling them is a binary invocation rather than a Node startup plus a bundle load.

The rest of the workspace dependencies follow the same pattern, listing nearly every internal package as `workspace:*`. Combined with `pnpm-workspace.yaml`, that is what lets a single version bump propagate across the packages.

How the releases actually look

The three most recent releases are all dated 2026-11-01: `@formatjs/[email protected]`, `@formatjs/[email protected]` and `@formatjs/[email protected]`, published within seconds of each other.

So the release process here is automated and boring in the good way. release-please handles versioning and notes per package, and a single change to a foundational package produces a coordinated set of releases across everything that depends on it. A reader who only looks at the top-level release feed will see many per-package tags landing together.

The repository is not archived, was pushed to on 2026-11-02, and reports 14,755 stars and 1,386 forks against only 2 open issues. That issue count is either very good triage or a low-traffic tracker compared with the star count.

Editorial conclusion

FormatJS is worth understanding as an infrastructure project rather than a library. The published surface spans npm, crates.io and PyPI packages covering ICU message parsing, number and date formatting, segmenters and the framework bindings, and behind that sits a Rust and Python implementation of the same parsers, a native CLI with per-platform binaries, and conformance tests alongside a test262 setup. For most teams the practical entry point stays react-intl, with the ICU message syntax as the thing to learn properly. Read the packages table in the README to see which piece you actually need, then read `crates/` if you are curious why the parser has its own language.

Frequently asked questions

What is FormatJS and what is react-intl's relationship to it?

FormatJS is the monorepo that contains react-intl and the libraries around it. react-intl is the React binding; the monorepo also publishes the ICU message format parser, polyfills for number, date, plural and list formatting, and tooling like a CLI. The repository description calls it the monorepo home to all of the FormatJS related libraries, most notably react-intl.

Which packages does the FormatJS monorepo publish?

Packages for npm, crates.io and PyPI, plus a native SDK on GitHub Releases for Hermes / React Native. The formatting polyfills include `@formatjs/intl-numberformat`, `@formatjs/intl-datetimeformat`, `@formatjs/intl-pluralrules`, `@formatjs/intl-relativetimeformat`, `@formatjs/intl-listformat`, `@formatjs/intl-segmenter` and `@formatjs/intl-displaynames`. Shared pieces include `@formatjs/intl` and `@formatjs/icu-messageformat-parser`, and tooling includes `@formatjs/cli` and `@formatjs/ts-transformer`.

Why does FormatJS contain Rust and Python code?

The ICU message parser and skeleton parser are implemented in Rust under `crates/`, with Python bindings built through PyO3, and the root `Cargo.toml` lists those crates as workspace members. The README notes, for example, that `@formatjs/cli` is Rust-backed and distributed through npm, and that the PyPI packages are Rust-backed message runtime and parser bindings.

How does FormatJS verify that its formatting is correct?

The repository has three directories for this: `conformance-tests/` for conformance testing, `test262.BUILD` for wiring the JavaScript test262 suite into Bazel, and `fuzz/` for fuzzing the parsers with arbitrary message syntax. There is also a `benchmarks/` directory. The root test script runs the lefthook pre-commit hooks across all files before running `bazel test //...`.

How do FormatJS releases work?

Each package is versioned and published independently using release-please, with a manifest and config file at the repository root. A change to a foundational package produces a coordinated set of releases: recent tags include `@formatjs/[email protected]`, `@formatjs/[email protected]` and `@formatjs/[email protected]`, all published on 2026-11-01.

Official sources

  1. formatjs/formatjs on GitHub
  2. Issues
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/formatjs-formatjs.svg)](https://hysenlabs.com/projects/formatjs-formatjs)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/formatjs-formatjs.svg)](https://hysenlabs.com/projects/formatjs-formatjs)

Was this useful?