
Company News
Meet the Socket Team at RSAC and BSidesSF 2026
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.
@formatjs/icu-messageformat-parser
Advanced tools
Hand-written ICU MessageFormat parser with compatible output as [`intl-messageformat-parser`](https://www.npmjs.com/package/intl-messageformat-parser) but 6 - 10 times as fast.
Hand-written ICU MessageFormat parser with compatible output as
intl-messageformat-parser
but 6 - 10 times as fast.
$ bazel run //packages/icu-messageformat-parser/benchmark:benchmark
complex_msg AST length 2599
normal_msg AST length 400
simple_msg AST length 79
string_msg AST length 36
complex_msg: 23.85 µs (41,931 ops/sec)
normal_msg: 3.27 µs (306,177 ops/sec)
simple_msg: 0.60 µs (1,675,766 ops/sec)
string_msg: 0.32 µs (3,113,287 ops/sec)
The Rust parser (optimized build) is 2.6-3.7x faster than the JavaScript parser:
$ bazel run -c opt //crates/icu_messageformat_parser:comparison_bench
complex_msg: 9.22 µs (2.59x faster than JS)
normal_msg: 1.14 µs (2.87x faster than JS)
simple_msg: 163 ns (3.68x faster than JS)
string_msg: 118 ns (2.71x faster than JS)
The Rust parser is also 10-11% faster than the SWC ICU MessageFormat parser.
This package is a predecessor of @formatjs/icu-messageformat-parser and offers similar functionality for parsing ICU MessageFormat strings. However, @formatjs/icu-messageformat-parser is more up-to-date and maintained by the FormatJS team.
Messageformat is a more comprehensive library that not only parses ICU MessageFormat strings but also compiles them into functions that can be used for formatting messages. It provides a higher-level API compared to @formatjs/icu-messageformat-parser.
Intl-messageformat is another library from the FormatJS suite that builds on top of the parsing capabilities to provide a full message formatting solution. It uses the parser internally but exposes a higher-level API for formatting operations.
FAQs
Hand-written ICU MessageFormat parser with compatible output as [`intl-messageformat-parser`](https://www.npmjs.com/package/intl-messageformat-parser) but 6 - 10 times as fast.
The npm package @formatjs/icu-messageformat-parser receives a total of 7,237,897 weekly downloads. As such, @formatjs/icu-messageformat-parser popularity was classified as popular.
We found that @formatjs/icu-messageformat-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.

Research
/Security News
Malicious Packagist packages disguised as Laravel utilities install an encrypted PHP RAT via Composer dependencies, enabling remote access and C2 callbacks.

Research
/Security News
OpenVSX releases of Aqua Trivy 1.8.12 and 1.8.13 contained injected natural-language prompts that abuse local AI coding agents for system inspection and potential data exfiltration.