chizuts
v0.1.5
Published
A TypeScript codebase analyzer that visualizes dependencies between modules, functions, variables, and components as a graph
Maintainers
Readme
chizuts
A TypeScript codebase analyzer that visualizes dependencies between modules, functions, variables, and components as a graph.
Features
- Analyze TypeScript project dependencies
- Detect relationships between modules, functions, variables, and components
- Generate interactive visual dependency graphs
- CLI tool for easy integration
- Web-based visualization with Cytoscape.js
Installation & Usage
# Using npx (no installation required)
npx chizuts
# Or install globally
npm install -g chizuts
chizuts
# Or install as a dev dependency
npm install --save-dev chizuts
npx chizutsCLI Options
chizuts [options] [directory]
Options:
-h, --help Show help message
-v, --version Show version number
-p, --port <port> Server port (default: 3000)
--include <pattern> Include files matching pattern (can be used multiple times)
--exclude <pattern> Exclude files matching pattern (can be used multiple times)
--tsconfig <path> Path to tsconfig.json
Examples:
chizuts # Analyze current directory
chizuts ./src # Analyze specific directory
chizuts -p 8080 # Use custom port
chizuts --exclude "**/*.test.ts" # Exclude test filesRequirements
- Node.js >= 20.0.0
- TypeScript project with
tsconfig.json
How It Works
chizuts uses the TypeScript Compiler API to parse and analyze your codebase, extracting:
- Module dependencies - import/export relationships between files
- Function declarations - exported and internal functions
- Class declarations - classes and their inheritance hierarchies
- Interface and Type definitions - type system structures
- React components - both functional and class-based components
The extracted data is rendered as an interactive graph visualization in your browser.
Development
# Clone the repository
git clone https://github.com/krzmknt/chizuts.git
cd chizuts
# Install dependencies
pnpm install
# Build
pnpm build
# Run tests
pnpm test
# Run locally
pnpm startLicense
Author
krzmknt
