reactjs/react-docgen

A CLI and library to extract information from React component files for documentation generation purposes.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 24 minutes ago
Added to GitGenius on September 18th, 2026
Created on February 27th, 2015
Open Issues & Pull Requests: 105 (+0)
GitHub issues: Enabled
Number of forks: 316
Total Stargazers: 3,820 (+0)
Total Subscribers: 44 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 6.0 days
Mean response time: 104.2 days
90th percentile: 185.1 days
Tracked items: 35

Most active contributors

Sign in to see contributor activity.

How this project is maintained

97% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 82% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 29
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,206 days
Stale 30+ days: 27
Stale 90+ days: 25

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • typescript (13)
  • new feature (8)
  • flow (4)
  • bug (3)
  • breaking (2)
  • lib (2)
  • improvement (1)
  • needs-discussion (1)

Most active issues this week

Detailed Description

react-docgen is a CLI and library that extracts structured information from React component files for documentation generation.

The tool solves the problem of automatically documenting React components by parsing component source code and extracting metadata such as props, types, and descriptions in a machine-readable format. This extracted information can then be fed into documentation generators to produce component documentation without manual duplication of information. The approach works as both a standalone library that can be integrated into custom tooling and as a command-line interface for direct use in build pipelines.

Developers should choose react-docgen when building documentation systems for React component libraries or design systems where keeping documentation synchronized with component code is important. It suits projects that want to avoid manually maintaining prop documentation and instead derive it automatically from source. The tool is highly customizable, allowing teams to adapt the extraction and output format to their specific documentation needs.

The project maintains active development with regular updates to support evolving React patterns and tooling. The codebase is organized as a monorepo with separate packages for the core library and CLI wrapper, allowing independent versioning and use cases. Documentation is versioned alongside releases, with major versions maintaining their own documentation branches. The project acknowledges ongoing work around TypeScript support, indicating awareness of gaps in handling modern component patterns.