Git Product home page Git Product logo

ember-trace's Introduction

ember-trace

npm version

Generate Graphviz dataflow graphs for your Ember app.

What & Why?

Given some templates:

app/templates/
├── application.hbs
└── components
    ├── x-bar.hbs
    └── x-foo.hbs

Running ember trace:

ember trace app/templates/application.hbs | dot -Tpng > docs/images/example.png

Will produce something like this:

Example graph

These graphs can be useful for analysing how data flows through Ember apps. Put another way, they’re a visual tool for answering questions like “where did this value come from?” and “who owns it?”.

Installation

ember install ember-trace

Then download and install GraphViz.

Usage

ember trace app/templates/my-route.hbs

This command emits the graph to stdout in Graphviz DOT format. You’ll probably want to pipe it straight into the dot program to generate the graph.

ember trace app/templates/my-route.hbs | dot -Tpdf > graph.pdf

Some ember-cli addons emit deprecation warnings on stdout, so you’ll want to strip those before handing it over to dot.

ember trace app/templates/my-route.hbs | sed 's/^DEPRECATION.*$//g' | dot -Tpdf > graph.pdf

History

Created as an experiment in early 2018 by the Human Interface Team at Heroku.

ember-trace's People

Contributors

jgwhite avatar ember-tomster avatar svc-scm avatar

Stargazers

 avatar Chad avatar

Watchers

Yehuda Katz avatar Morten Bagai avatar Christopher Stolt avatar Edu Fernández avatar Erik Jones avatar Cyril David avatar DJCP avatar Chris Johnson avatar Nobuyoshi Nakada avatar Jason Harrison avatar Mars Hall avatar Mike Hagedorn avatar Jawaad Mahmood avatar Koes Bong avatar Jeremy West avatar Josh Simmons avatar Clemens M�ller avatar Casey Duncan avatar Scott Clasen avatar Yoshi Oikawa avatar Tim Schmelmer avatar Sean Jezewski avatar  avatar Jens Schutt avatar Brock Spratlen avatar James Cloos avatar Shiva avatar Gabriel Enslein avatar Enrique Carlos Mogollan avatar Emilio Daniel González avatar Aaron Rosen avatar Travis Longoria avatar  avatar Vikram Rana avatar Hillary Sanders avatar Chris Montes avatar JJ avatar Tim Wade avatar caio avatar Alan Scott avatar Sara Cope avatar Jillian Wilmarth avatar Corey Martin avatar Margaret Francis avatar Daebum Lee avatar Naga Sowjanya(Sowju) Sutherland avatar Martin Sommer avatar Patti Sutton avatar Jack Ziesing avatar Bob Wise avatar  avatar Arif Gursel avatar Matt Tannahill avatar Annie Sexton avatar Paul Johnson avatar Danielle Adams avatar Peter Siegel avatar Keith Lockwood avatar Lenora Porter avatar  avatar NikitaKothari avatar  avatar Samast Varma avatar Len Sorstokke avatar Jim Wunderlich avatar Dmytro (Dima) Kabanov avatar Rakhi Borthakur avatar Alexandra Dalton avatar  avatar William "Chip" Vaughn avatar  avatar  avatar  avatar Pamela Nance avatar Christian Samuel avatar  avatar  avatar Ike avatar Jesse Soyland avatar Ian Coldwater avatar jigna bhatt avatar  avatar Dhaval Thakkar avatar Jialee Chau avatar Analia Cartagena avatar Gary Clark avatar Cecilia Quintana avatar Tomohiro Mitani avatar  avatar Jack Hu avatar Siraj Ghaffar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.