Skip to content
PluginStats

babel-plugin-react-docgen weekly downloads statistics

By storybooks · npm · Babel plugins

Babel plugin to add react-docgen info into your code

View on npm Stale · Oct 17, 2026

babel-plugin-react-docgen has 345,227 recorded weekly downloads on npm, a decrease of 42.7% over the past 30 days, ranking #286 of 2,256 tracked listings.

Weekly downloads
345,227
Official API · Oct 17, 2026
7-day growth
-54.1%
-406.7K weekly downloads
30-day growth
-42.7%
-257.7K weekly downloads
90-day growth
-52.1%
-375.8K weekly downloads
Rank
#286
Among tracked npm listings

About babel-plugin-react-docgen

babel-plugin-react-docgen

react-docgen allows you to write propType descriptions, class descriptions and access propType metadata programatically.

This babel plugin allow you to access those information right inside your React class.

For an example, let's say you've a React class like this:

With this babel plugin, you can access all these information right inside your app with:

Click to see the output

This will be pretty useful for documentations and some other React devtools like Storybook.

Usage

Install the plugin:

Use it inside your .babelrc

.babelrc Options

| option | description | default |

| resolver | You may use the 3 built-in react-docgen resolvers by specifying its name as a string, or you may specify a custom resolver by specifying the function explicitly. | | | handlers | All react-docgen handlers are automatically applied. However, custom handlers can be added by specifying them here. Any string value will be loaded by require, and a function will be used directly. | | | removeMethods | Used to remove docgen information about methods. | | | DOC_GEN_COLLECTION_NAME | The name of a global variable where all docgen information can be stored. See below for more information. | | | ...options | Remaining options will be passed directly as react-docgen options. Any options they allowed will be passed through, but the filename will be overwritten by the filename provided by babel. | |

Collect All Docgen Info

Sometimes, it's a pretty good idea to collect all of the docgen info into a collection. Then you could use that to render style guide or similar.

So, we allow you to collect all the docgen info into a global collection. To do that, add following config to when loading this babel plugin:

Then you need to create a global variable(an object) in your app called MY_REACT_DOCS before any code get's executed. Then we'll save them into that object. We do it by adding a code block like this to the transpiled file:

Compile Performance

We parse your code with react-docgen to get this info, but we only do it for files which contain a React component.

There will be some overhead to your project, but you can leverage babel's cache directory to avoid this a huge performance hit.

Output Size

Yes this increase the output size of your transpiled files. The size increase varies depending on various factors like:

• How many react classes you've • Amount of docs you've written • Amount of propTypes you've

Most of the time, you need this plugin when you are developing your app or with another tool like Storybook. So, you may not need to use this on the production version of your app.

Description from the npm listing.

  • react
  • docs
  • docgen
  • babel-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

babel-plugin-react-docgen weekly downloads on npm, last 90 days: 345,227 weekly downloads as of Oct 17, 2026, -52.1% over 90 days.babel-plugin-react-docgenWeekly downloads on npm · Last 90 days345,227downloads / week-52.1% over 90 days0200K400K600K800K1MJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
babel-plugin-react-docgen weekly downloads on npm, last 90 days: 345,227 weekly downloads as of Oct 17, 2026, -52.1% over 90 days.

7/30/90-day growth

babel-plugin-react-docgen weekly downloads growth on npm: -54.1% over 7 days, -42.7% over 30 days, -52.1% over 90 days.babel-plugin-react-docgenWeekly downloads growth on npm345,227downloads / week now7-day growth-406,669 weekly downloads-54.1%30-day growth-257,682 weekly downloads-42.7%90-day growth-375,815 weekly downloads-52.1%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
babel-plugin-react-docgen weekly downloads growth on npm: -54.1% over 7 days, -42.7% over 30 days, -52.1% over 90 days.

Ranking history

babel-plugin-react-docgen npm ranking history: currently #286 (by weekly downloads).babel-plugin-react-docgennpm ranking · by weekly downloads · Last 90 days#286current rank#284#285#286#287#288Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
babel-plugin-react-docgen npm ranking history: currently #286 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 15, #6 (overall #286)
All npm: every listing in weekly downloads order

Listing placement

Babel plugins251 listings · 13 pages · page 8, #15 (overall #155)
Babel 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 (121)
Recent weekly downloads observations for babel-plugin-react-docgen
Date (UTC)Weekly downloadsChange vs. previous
345,227-77.2K
422,457-32.3K
454,803-167K
621,801-160.6K
782,4480
782,448+18K
764,451+12.6K
751,896+27.4K
724,527+38.6K
685,878+33K
652,843+9.4K
643,446-134.1K
777,566-8.1K
785,705—

Similar npm Babel plugins plugins

All 20 babel-plugin-react-docgen 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/babel-plugin-react-docgen. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.