All Projects → team-gryff → React Monocle

team-gryff / React Monocle

Licence: mit
A developer tool to visualize a React application's component hierarchy.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to React Monocle

Solhint
Solhint is an open source project created by https://protofire.io. Its goal is to provide a linting utility for Solidity code.
Stars: ✭ 363 (-85.12%)
Mutual labels:  ast, developer-tools
React Sight
Visualization tool for React, with support for Fiber, Router (v4), and Redux
Stars: ✭ 2,716 (+11.31%)
Mutual labels:  developer-tools, component-hierarchy
Escodegen
ECMAScript code generator
Stars: ✭ 2,328 (-4.59%)
Mutual labels:  ast
Sfpowerkit
A Salesforce DX Plugin with multiple functionalities aimed at improving development and operational workflows
Stars: ✭ 214 (-91.23%)
Mutual labels:  developer-tools
Hexraystoolbox
Hexrays Toolbox - Find code patterns within the Hexrays AST
Stars: ✭ 202 (-91.72%)
Mutual labels:  ast
Fprettify
auto-formatter for modern fortran source code
Stars: ✭ 193 (-92.09%)
Mutual labels:  developer-tools
Bit
A tool for component-driven application development.
Stars: ✭ 14,443 (+491.93%)
Mutual labels:  developer-tools
Boostnote.next
Boost Note is a powerful, lightspeed collaborative workspace for developer teams. Forum (New!): https://github.com/BoostIO/BoostNote-App/discussions
Stars: ✭ 2,682 (+9.92%)
Mutual labels:  developer-tools
Escaya
An blazing fast 100% spec compliant, incremental javascript parser written in Typescript
Stars: ✭ 217 (-91.11%)
Mutual labels:  ast
Cml
♾️ CML - Continuous Machine Learning | CI/CD for ML
Stars: ✭ 2,843 (+16.52%)
Mutual labels:  developer-tools
Splitgraph
Splitgraph command line client and python library
Stars: ✭ 209 (-91.43%)
Mutual labels:  developer-tools
Tatsu
竜 TatSu generates Python parsers from grammars in a variation of EBNF
Stars: ✭ 198 (-91.89%)
Mutual labels:  ast
Bellybutton
Custom Python linting through AST expressions
Stars: ✭ 196 (-91.97%)
Mutual labels:  ast
Kubefwd
Bulk port forwarding Kubernetes services for local development.
Stars: ✭ 2,713 (+11.19%)
Mutual labels:  developer-tools
Windowsdevtools
Windows UI development tools.
Stars: ✭ 194 (-92.05%)
Mutual labels:  developer-tools
Systemjs Hot Reloader
reloads your modules as needed so that you can have satisfyingly fast feedback loop when developing your app
Stars: ✭ 215 (-91.19%)
Mutual labels:  developer-tools
Hrdevhelper
Context-sensitive HexRays decompiler plugin that visualizes the ctree of decompiled functions.
Stars: ✭ 193 (-92.09%)
Mutual labels:  ast
Wiretap
🔍 A desktop app for inspecting mobx and mobx state tree apps
Stars: ✭ 198 (-91.89%)
Mutual labels:  developer-tools
Aiohttp Devtools
dev tools for aiohttp
Stars: ✭ 202 (-91.72%)
Mutual labels:  developer-tools
Vermin
Concurrently detect the minimum Python versions needed to run code
Stars: ✭ 218 (-91.07%)
Mutual labels:  ast

react-monocle

Build Status npm version


**React Monocle** is a developer tool for generating visual representations of your React app's component hierarchy.

How It Works

React Monocle parses through your React source files to generate a visual tree graph representing your React component hierarchy. The tree is then displayed along with a live copy of your application. This is done by using your un-minified bundle file to inject wrapper functions around setState calls in order to have our tree display real-time feedback. The rendered tree is synced up to the state(s) of your component using Redux, and as the state of your live app changes, the monocle tree graph will also provide visual feedback of data flow and state changes through the React components.

Setup

IMPORTANT The way we use your bundle file requires so that the bundle is not mangled (ie not minified).

  1. npm install -g react-monocle
  2. Navigate to the directory which contains your html file.
  3. Type in monocle -h in order to find what options suit your needs the best. The only required option is specifying the bundle.

Options

Option Command Description
Bundle --bundle (-b) Required Path to React bundle file.
HTML --html (-c) HTML page which has your bundle and CSS files. Specify if you want CSS displayed and/or you are relying on external scripts.
Entry --entry (-e) App entry point. Defaults to JSX file where ReactDOM.render is found.
Directory --directory (-d) directory of React files. Defaults to where Monocle was called.

Contributing/Testing

  • Please feel free to fork and submit pull requests!
  • After installing, you can run tests via npm run unit-tests or npm run test to run ESLint simultaneously
  • Tests can be found in src/test and are currently broken out into:
    1. astGeneratorTest.js
    2. d3DataBuilderTest.js
    3. iterTest.js
    4. previewParserTest.js
    5. reactParserTest.js
    6. test.js (to compile and run all tests at once)
  • Please add new tests to relevant files specified above, or create new test files as needed.

Coming Soon

  • Demo
  • Quick description of what goes on under the hood.
  • Improving how we search for components

In the Pipeline

  • Support for React-Router
  • Support for Redux

Our Team

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].