Skip to content

foxworth-uni/danny

Repository files navigation

Danny

Smart bundler analyzer for modern web applications.

Installation

Homebrew (macOS)

brew install foxworth-uni/danny

From Source

cargo install --path crates/danny-cli

Usage

danny --help

Configuration

Danny works with zero configuration for most projects. For customization, create a .danny.toml:

[javascript]
load = ["react", "nextjs"]  # Load built-in frameworks

See the Configuration Guide for all options.

Custom Rules

Danny supports custom rules via TOML files in the .danny/ directory. Rules are automatically discovered and allow you to mark exports as used, skip files, or customize analysis behavior.

Quick start:

# Initialize with examples
danny rules init

# List all loaded rules
danny rules list

# Validate rule syntax
danny rules check

# Test rules against a file
danny rules test src/myfile.ts

Example rule:

# .danny/internal-apis.toml
[[rules]]
name = "internal-apis"
[rules.match]
path_starts_with = ["src/internal/"]
[rules.action]
mark_used = true
reason = "Internal API"

See the Custom Rules Guide for complete documentation.

Development

Building

cargo build --release

Testing

cargo test

Running Locally

cargo run -p danny-cli -- [ARGS]

License

MIT

Contributing

See CONTRIBUTING.md for development guidelines.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published