Metrics of your react app in a fun graph visualization!
Project video: https://youtu.be/D5ysKTC6l_4
-
uses lexical and syntactic analysis on the source repo to inject calls to our react-o-graph API and uses semantic analysis to pass component data into the calls
-
dynamic analysis is performed when the app runs, updating the graph visualization as components change
-
dynamic metadata of the components (such as props and state) can be viewed by clicking on a node in the graph, opening a sidebar with render details and history
-
user testing results: https://docs.google.com/document/d/1TxRLsgy18O2QLpvc1954-wz7bHikloIgAVE8uGC35Dg/edit?usp=sharing
- in the root directory run
npm install - from the root directory run
npm link, this allows other projects to import react-o-graph - from the root directory of your react app, run
react-o-graph- note the first run will take a while
- user installs react-o-graph npm module
- module exposes CLI which allows user to type
react-o-graphin project directory - uses chokidar to watch client component repo
- on
code changecode watcher calls below code- tree builder scans files and builds JSON
- code injector copies files in component directory over to new react app
code watcheruses bash commands to launch two browser windows open- graph UI
- copied over react app (contains injected calls to analysis API)
- on interaction with app, analysis API is called
- anaysis API updates graph UI