Orange Jam is our submission for Problem Statement 5: Visualising Architecture with Knit. We built it as an IntelliJ plugin to seamlessly integrate with projects that use TikTok’s Knit, offering developers instant insight into their dependency structure — all without leaving the IDE.
- Clone this repository and open it in IntelliJ IDEA.
- Run the plugin using the JetBrains Runtime (jbr) to launch a sandboxed IntelliJ instance with the plugin pre-installed.
- Open a Kotlin project that uses Knit and:
- Use the sidebar to select a Knit module and click Generate to view the dependency graph.
- Right-click a Gradle module to access a context menu and generate the module-level graph.
- Use the editor gutter icons to:
- Jump directly to a provider from a consumer.
- Visualize a focused subgraph showing only relevant dependencies.
Knit is a compile-time dependency injection framework, but understanding how modules and classes are wired together can be difficult from code alone.
Orange Jam solves this by:
- Visualizing the full DI graph inside the editor.
- Highlighting how classes depend on each other.
- Allowing developers to navigate directly from the graph to the relevant code.
When a Knit project is opened, Orange Jam:
- Scans the project for modules that include the
tiktok.knitdependency. - Reads compiled
.classfiles using ASM and extracts dependency information via Knit’sInjectionBinder. - Constructs a dependency graph and exports it to
.dotformat. - Renders the graph as an SVG or PNG using Graphviz, displayed inside IntelliJ using JCEF.
With this graph, we enable:
- Clickable nodes to jump directly to classes or methods.
- Focused subgraphs for specific classes.
- Seamless integration into the IDE via gutters and context menus.
- Module graph generation from the sidebar or context menu.
- Click on nodes in tool window graph to navigate to the corresponding method
- Focused subgraphs for a given provider/consumer class.
- Gutter icons for jumping to providers or visualizing relevant dependencies.
- No source code modifications required — all analysis is done via compiled bytecode.
- Graphviz - graph rendering
- ASM - bytecode analysis
- IntelliJ Platform SDK - plugin development
- 🐢 The plugin requires the project to be built before it can generate graphs. For large codebases, slow builds may hinder seamless usage.
- 🔀 Cross-class method navigation is not yet supported. Clicking on a method in the graph currently works only within the same class.