The Problem
You're debugging a React application. A button's theme color is wrong. You need to find where type is coming from.
You search your codebase. 47 results. π«
You start tracing manually:
-
NotificationBannerreceives it fromWelcomeCard -
WelcomeCardreceives it fromMainContent -
MainContentreceives it fromDashboard
And so on...
20 minutes later, you find the issue.
There has to be a better way.
Introducing PropFlow
PropFlow is a VS Code extension that traces React props instantly.
Hover over any prop β see its complete journey from source to usage.
Features
π Instant Prop Tracing
Place your cursor on any prop and run "PropFlow: Show PropFlow Lineage" (or use the CodeLens button).
PropFlow analyzes your component tree and shows you:
- π’ SOURCE: Where the prop originates
- π΅ USAGE: Components passing it through
- π£ DEFINITION: Where you're currently viewing it
πΊοΈ Visual Flowcharts
Hover over any prop to see an inline ASCII flowchart:
π’ App (SOURCE)
ββ prop: "notificationVariant"
β
π΅ Dashboard (USAGE)
ββ prop: "alertType"
...
β
π£ NotificationBanner (DEFINITION)
ββ prop: "type"
π Click-to-Navigate
Every component in the chain is clickable. Jump directly to the file and line where it's defined.
β‘ Real-Time Updates
As you edit your code, PropFlow updates instantly. No need to save files.
π PropFlow Lineage Panel
View the complete prop chain in a dedicated sidebar panel. Click any component to navigate.
Installation
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "PropFlow"
- Click Install
Or install from the [VS Code Marketplace] - https://marketplace.visualstudio.com/items?itemName=rutpshah.propflow
Usage
Method 1: Command Palette
- Place cursor on a prop name
- Press
Ctrl+Shift+P(Cmd+Shift+P on Mac) - Type "PropFlow: Show Prop Lineage"
- View results in PropFlow Lineage panel
Method 2: CodeLens
- Look for "β¬ Trace Props" above component definitions
- Click it
- Select prop from dropdown
- View trace
Method 3: Hover
- Hover over any prop in your component
- See inline flowchart
- Click components to navigate
How It Works
PropFlow uses TypeScript's Compiler API (ts-morph) to:
- Parse React components into Abstract Syntax Trees
- Extract prop definitions from function parameters
- Search workspace for JSX usages
- Build complete prop lineage chains
All processing happens locally. Your code never leaves your machine.
Use Cases
π Debugging
Quickly find where a prop value is set or why it's the wrong value.
π Understanding Codebases
New to a project? Trace props to understand component relationships.
β»οΈ Refactoring
See all components affected by a prop before making changes.
π Learning
Understand how data flows through React applications.
Supported Features
β
Function components
β
Arrow function components
β
TypeScript & JavaScript
β
JSX & TSX files
β
Props destructuring
β
Interface/Type definitions
β
Spread operators (marked as ambiguous)
Roadmap
- [ ] Server Component awareness
- [ ] Multi-prop tracing
- [ ] Context API support
- [ ] Redux/Zustand state tracing
- [ ] Export flow diagrams
- [ ] Graph visualization mode
- [ ] Full-stack data flow visualization
Try It Out
PropFlow is completely free and open source.
- VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=rutpshah.propflow
- GitHub: https://github.com/rutpshah/propflow
- License: MIT
If you find it useful, a β on GitHub helps!
Feedback
What would make PropFlow more useful for you?
Leave a comment below or open an issue on GitHub.
Happy prop tracing! π

Top comments (0)