Skip to content
PluginStats

@formatjs/unplugin weekly downloads statistics

By formatjs (2 listings) · npm · Vite plugins

Universal build plugin for FormatJS — supports Vite, Webpack, Rollup, esbuild, Rspack, and Rsbuild

View on npm Fresh · Dec 6, 2026

@formatjs/unplugin has 111,679 recorded weekly downloads on npm, an increase of 4.6% over the past 30 days, ranking #627 of 3,247 tracked listings.

Weekly downloads
111,679
Official API · Dec 5, 2026
7-day growth
+30.8%
+26.3K weekly downloads
30-day growth
+4.6%
+4.9K weekly downloads
90-day growth
+308%
+84.3K weekly downloads
Rank
#627
▲ 19 in 7 days

About @formatjs/unplugin

@formatjs/unplugin

Universal build plugin for FormatJS AST transformations. Supports Vite, Webpack, Rollup, esbuild, Rspack, and Rsbuild with one codebase.

Replicates the functionality of babel-plugin-formatjs and @formatjs/ts-transformer using oxc-parser + magic-string for fast, compiler-agnostic builds.

Installation

npm install @formatjs/unplugin --save-dev

Usage

Vite
// vite.config.ts
import {defineConfig} from 'vite'
import formatjs from '@formatjs/unplugin/vite'

export default defineConfig({
  plugins: [
    formatjs({
      idInterpolationPattern: '[sha512:contenthash:base64:6]',
      ast: true,
    }),
  ],
})
Webpack
// webpack.config.js
const formatjs = require('@formatjs/unplugin/webpack').default

module.exports = {
  plugins: [
    formatjs({
      idInterpolationPattern: '[sha512:contenthash:base64:6]',
      ast: true,
    }),
  ],
}
Rollup
// rollup.config.js
import formatjs from '@formatjs/unplugin/rollup'

export default {
  plugins: [
    formatjs({
      idInterpolationPattern: '[sha512:contenthash:base64:6]',
      ast: true,
    }),
  ],
}
esbuild
import esbuild from 'esbuild'
import formatjs from '@formatjs/unplugin/esbuild'

esbuild.build({
  plugins: [
    formatjs({
      idInterpolationPattern: '[sha512:contenthash:base64:6]',
      ast: true,
    }),
  ],
})
Rspack
// rspack.config.js
const formatjs = require('@formatjs/unplugin/rspack').default

module.exports = {
  plugins: [
    formatjs({
      idInterpolationPattern: '[sha512:contenthash:base64:6]',
      ast: true,
    }),
  ],
}
Rsbuild
// rsbuild.config.ts
import {defineConfig} from '@rsbuild/core'
import formatjs from '@formatjs/unplugin/rsbuild'

export default defineConfig({
  plugins: [
    formatjs({
      idInterpolationPattern: '[sha512:contenthash:base64:6]',
      ast: true,
    }),
  ],
})

Static message values

On FreeBSD x64, static evaluation uses the optional @formatjs/cli-native-freebsd-x64 package.

Message fields can reference local const strings, including aliases, templates, string concatenations, and constant conditionals. OXC performs native scope analysis and static evaluation through @formatjs/cli-lib. Constants must be initialized before the reference. Lexical scope and shadowing are respected for JSX and message descriptors.

function Greeting() {
  const greeting = 'Hello'
  return <FormattedMessage defaultMessage={greeting} />
}

Imported values, mutable bindings, destructured bindings, and runtime expressions remain unresolved. Keep those message fields inline when they need generated IDs or precompiled ASTs.

Native expression evaluation supports macOS arm64, Linux x64/arm64 (glibc and musl), and Windows x64.

Options

OptionTypeDefaultDescription
idInterpolationPatternstring[sha512:contenthash:base64:6]Pattern for generating message IDs
overrideIdFnfunction—Custom function to generate message IDs
removeDefaultMessagebooleanfalseRemove defaultMessage from output
additionalComponentNamesstring[][]Extra JSX component names to process
additionalFunctionNamesstring[][]Extra function names to process
astbooleanfalsePre-parse defaultMessage into AST
preserveWhitespacebooleanfalseKeep original whitespace in messages
filterHookFilterJS/TS outside node_modulesFilter modules before transformation
Transform Hook Filters

filter is forwarded to unplugin's transform.filter hook. Passing a custom filter replaces the default module policy, which matches JavaScript and TypeScript module IDs outside node_modules.

import formatjs from '@formatjs/unplugin/vite'

formatjs({
  filter: {
    id: /^(?!.*\/node_modules\/).*\.tsx?$|\/node_modules\/@my-org\/learning-block\/.*\.tsx?$/,
    code: /FormattedMessage|defineMessages?|formatMessage|defaultMessage/,
  },
})

Description from the npm listing.

  • esbuild-plugin
  • formatjs
  • i18n
  • internationalization
  • react-intl
  • rollup-plugin
  • rsbuild-plugin
  • rspack-plugin
  • unplugin
  • vite-plugin
  • webpack-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@formatjs/unplugin weekly downloads on npm, last 90 days: 111,679 weekly downloads as of Dec 5, 2026, +308% over 90 days.@formatjs/unpluginWeekly downloads on npm · Last 90 days111,679downloads / week+308% over 90 days020K40K60K80K100K120KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@formatjs/unplugin weekly downloads on npm, last 90 days: 111,679 weekly downloads as of Dec 5, 2026, +308% over 90 days.

7/30/90-day growth

@formatjs/unplugin weekly downloads growth on npm: +30.8% over 7 days, +4.6% over 30 days, +308% over 90 days.@formatjs/unpluginWeekly downloads growth on npm111,679downloads / week now7-day growth+26,313 weekly downloads+30.8%30-day growth+4,861 weekly downloads+4.6%90-day growth+84,278 weekly downloads+308%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@formatjs/unplugin weekly downloads growth on npm: +30.8% over 7 days, +4.6% over 30 days, +308% over 90 days.

Ranking history

@formatjs/unplugin npm ranking history: currently #627 (by weekly downloads).@formatjs/unpluginnpm ranking · by weekly downloads · Last 90 days#627current rank#600#620#640#660#680#700#720Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@formatjs/unplugin npm ranking history: currently #627 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 32, #7 (overall #627)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 5, #20 (overall #100)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for @formatjs/unplugin
Date (UTC)Weekly downloadsChange vs. previous
111,679+3.6K
108,089+2.1K
106,000+4.2K
101,835+2.5K
99,338+9.3K
90,063+2.5K
87,539+2.2K
85,366+1.6K
83,773+1.9K
81,860+1.7K
80,128+603
79,525+3.2K
76,343+79
76,264—

Similar npm Vite plugins plugins

All 20 @formatjs/unplugin alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@formatjs/unplugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.