目录

MoonBit Depsight

A dependency health diagnostic tool for the MoonBit ecosystem.

Overview

MoonBit Depsight analyzes your moon.mod.json and recursively inspects the entire transitive dependency tree to surface risks before they become problems.

Features

  • Dependency Tree Visualization: Recursive resolution of transitive dependencies with ASCII tree rendering
  • Cycle Detection: DFS-based circular dependency detection with structured diagnostics (CYCLE-001)
  • Structured Diagnostics: Diagnostic { level, code, message, path, suggestions } with JSON/terminal output
  • Registry Abstraction: GitHub raw content fallback (main -> master) for fetching moon.mod.json

Roadmap

  • Size Attribution: Identify which packages bloat your final build artifact
  • Deprecated API Detection: Cross-package tracking of @deprecated usage across dependency layers
  • License Compliance: Automatic SPDX license identification and copyleft conflict warnings
  • Health Scoring: Quantified 0-100 health score per package based on version freshness, license compatibility, deprecated API density, and maintenance activity

Installation

moon add LittleFish/depsight

Usage

# Show dependency tree
depsight tree

# Run full audit
depsight audit

# Generate HTML report
depsight report --html -o report.html

Development

# Build for JS target
moon build --target js

# Run tests
moon test --target js

License

Apache-2.0

关于

MoonBit Depsight — 依赖健康诊断器。分析 MoonBit 项目依赖树,检测废弃 API、许可证风险、体积膨胀,并生成健康评分报告。

5.7 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号