alexgrozav

Build import dependency trees for TypeScript and JavaScript files. Fast, zero-dependency static analysis for dependency detection and cache invalidation.

13
0
100% credibility
Found Mar 08, 2026 at 12 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
HTML
AI Summary

A zero-dependency tool that builds dependency trees for JavaScript and TypeScript files to detect affected code on changes.

How It Works

1
🔍 Discover importree

You hear about a handy tool that maps out how your project's files connect and depend on each other, making builds faster and changes smarter.

2
📦 Add it to your project

With one easy step, you bring the tool into your workspace so it's ready to explore your files.

3
🚀 Point it to your main file

You tell the tool to start from your project's entry point, and it quickly scans everything it touches.

4
🌳 See the full connection map

In moments, you get a clear picture of all files, their links, outside helpers, and who depends on whom—super fast and complete.

5
🔄 Spot what changes ripple through

When you tweak a file, ask the tool which others need updating, getting a neat list instantly.

âś… Build smarter, work faster

Your projects now rebuild only what's needed, saving time in tests, updates, and daily work—everything flows smoothly.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 12 to 13 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is importree?

importree builds import dependency trees for TypeScript and JavaScript files using fast, zero-dependency static analysis. It detects all static/dynamic imports, requires, and re-exports from an entry point, outputting a full graph for dependency analysis and cache invalidation. Pass a file path and get sorted local files, external packages, forward/reverse graphs—perfect for figuring out what rebuilds when a module changes.

Why is it gaining traction?

It crushes alternatives like madge or dependency-tree on speed (12ms for 500 files vs. 40ms+), with no AST overhead or extras—just regex scanning and concurrent traversal. Path aliases, extension probing, and reverse graphs make cache invalidation instant, ideal for CI optimization without TypeScript compiler bloat. Benchmarks prove it scales to 1k files in 26ms.

Who should use this?

Monorepo maintainers scripting selective builds in GitHub Actions, task runners picking tests to run, or devs building GitHub apps/Copilot agents needing quick dep graphs. Frontend teams invalidating bundler caches on changes, or backend folks analyzing import builds in PoE/path-of-building importers.

Verdict

Grab it for lightweight dep analysis in build pipelines—solid API, 99% test coverage, and reproducible benches make it production-ready despite 10 stars and 1.0% credibility. Still early; watch for wider adoption before core infra dependency.

(187 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.