{"library":"babel-plugin-react-docgen","type":"library","category":null,"description":"The `babel-plugin-react-docgen` package is a Babel plugin designed to embed documentation metadata, generated by `react-docgen`, directly into React component definitions during the build process. Instead of requiring a separate build step or runtime parsing, this plugin augments your React components with a `__docgenInfo` static property, making propType descriptions, component descriptions, and other metadata programmatically accessible at runtime. This capability is highly beneficial for tools such as Storybook, style guides, or developer tools that consume component metadata. The current stable version is 4.2.1. The project appears to have an infrequent release cadence, with major versions released every few years, often in response to updates in `react-docgen` or the Babel ecosystem itself. Its key differentiator is the seamless integration of docgen output directly into the component's generated code, simplifying access to documentation metadata.","language":"javascript","status":"maintenance","version":"4.2.1","tags":["javascript","react","docs","docgen","babel-plugin"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-react-docgen","imports":["import babelPluginReactDocgen from 'babel-plugin-react-docgen';","plugins: ['react-docgen']","plugins: [['react-docgen', { resolver: 'findAllExportedComponentDefinition' }]]"]},{"cmd":"yarn add babel-plugin-react-docgen","imports":[]},{"cmd":"pnpm add babel-plugin-react-docgen","imports":[]}],"homepage":null,"github":"https://github.com/storybooks/babel-plugin-react-docgen","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-react-docgen","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-react-docgen/compatibility"}}