Skip to main content

📦 KJ-DepViz: The Interactive Dependency Visualizer & AI Conflict Solver

Stop staring at pip freeze. Start visualizing your project.

kj-depviz is a next-generation tool that turns your requirements.txt, pyproject.toml, or uv.lock files into an interactive, explorable graph. But it doesn't just show you dependencies—it helps you fix them.

Powered by uv and your choice of LLM (Google Gemini, OpenAI, or OpenRouter), kj-depviz lets you simulate dependency changes, detect conflicts before they break your environment, and interactively resolve errors.


✨ Key Features

  • 🎨 Interactive Graph Visualization: See exactly how your packages connect. Differentiate between Root projects, Direct dependencies, and Transitive (deep) dependencies instantly.
  • 🚀 Powered by uv: Uses the ultra-fast uv resolver to parse lock files and convert standard requirements near-instantly.
  • 🤖 Multi-LLM Conflict Analyst: Connect your API Key for Gemini, OpenAI, or OpenRouter. The AI acts as an elite DevOps engineer in your browser, analyzing dependency errors and explaining exactly how to fix them.
  • 🧪 3-Way Analysis Modes:
    • Static AI Analysis: Fast, theoretical conflict detection.
    • UV Playground (AI): Safely simulate adding/modifying packages in a temporary sandbox. If it breaks, the AI explains the CLI output.
    • Dry Run: Run raw UV simulations and see the exact terminal logs without AI intervention.
  • 🧠 Smart CLI Resolver: If your dependencies are completely broken, the new terminal-based Interactive Surgeon steps in. Use AI Deep Diagnosis, pinpoint culprit packages, or relax strict versions right from your terminal via a beautiful TUI.
  • 🔦 Deep Inspection: Click any node to see who uses it, what version is installed, and its dependency path.

🛠️ Installation

Install kj-depviz from PyPI using pip or uv:

pip install kj-depviz

Note: kj-depviz requires the uv tool to be installed on your system to perform resolutions and simulations.

pip install uv

🚀 How to Use

1. Navigate to your Project

Open your terminal and go to any Python project folder that contains a requirements.txt, pyproject.toml, or uv.lock.

cd my-awesome-python-project

2. Run the Visualizer

Execute the analysis command:

kj-depviz analysis

If your dependencies are severely broken, the CLI will automatically launch the Smart Resolver TUI to help you fix them before starting the server!

3. Explore

The tool will start a local server. Open the link in your browser (usually http://127.0.0.1:8000).


🎮 The Dashboard Features

🕸️ The Graph View

  • 🟡 Yellow Nodes: Your Root Project.
  • 🟠 Orange Nodes: Direct Dependencies (things you installed explicitly).
  • 🔵 Blue Nodes: Transitive Dependencies (things your packages rely on).
  • Interactions: Drag nodes, zoom in/out, hover for versions, and double-click a node to copy its ID.

🤖 AI Conflict Analyst (The "Magic" Button)

Click the ✨ AI Analyst button in the bottom menu to open the AI Drawer.

  1. Connect Your LLM: Choose Gemini, OpenAI, or OpenRouter and paste your API Key (safely stored locally in your browser).
  2. Select an Action:
  • Modify: See what happens if you upgrade/downgrade a package.
  • Add: Test if adding a new package will cause math conflicts.
  • Python Version: Check if your project survives a Python version bump.
  1. Choose your Mode: Static Analysis, Playground Simulation, or Dry Run.
  2. Analyze: kj-depviz will run the math or spin up a sandbox, attempt the change, and give you a beautiful markdown report of the results.

⚙️ Settings & Customization

  • Toggle Theme: Switch between Dark 🌙 and Light ☀️ modes.
  • Layouts: Rotate the graph (Top-Down or Left-Right).
  • Search & Refresh: Instantly find packages, or hit refresh to live-reload the graph if you edit your uv.lock in another window.

📦 Supported Formats

kj-depviz automatically detects:

  1. uv.lock & pyproject.toml (Native Mode - Best Experience)
  2. requirements.txt (Automatically converted to a secure, temporary uv sandbox for visualization)

👨‍💻 Author

Karan Jain (KJ) A passionate developer and AI-ML Engineer bridging the gap between complex dependency trees and developer experience.


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for kj-depviz 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kj-depviz 0.2.0
File Size Uploaded Provenance Actions
kj_depviz-0.2.0.tar.gz 75.7 kB Without provenance Details for kj_depviz-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kj-depviz 0.2.0
File Interpreter ABI Platform Actions
kj_depviz-0.2.0-py3-none-any.whl Python 3 none any Details for kj_depviz-0.2.0-py3-none-any.whl

Total release size: 148.4 kB

Release files / kj_depviz-0.2.0.tar.gz

Download URL kj_depviz-0.2.0.tar.gz
Size 75.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bfc44dcf9ca521f452dc9cebbf70d7dd6d0d49ff8872221ce9412c357f5785e7
BLAKE2b-256 checksum
How to use checksums
e77b180f5945f00d61e190e41b6613ab37f5879b4f10ffbb2f74dc8a1d8404db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.8

Release files / kj_depviz-0.2.0-py3-none-any.whl

Download URL kj_depviz-0.2.0-py3-none-any.whl
Size 72.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa6ddb8129ba6ad7a7726057db8fa107ed6bee428963183465e530ca8a75771b
BLAKE2b-256 checksum
How to use checksums
eb9131655e2b7a611dac905bd7243067c625188d61c941d1743826854c42aaeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.8

Security for kj-depviz 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page