depsight v0.6.0: Web platform + 3D dependency visualization + AI analysis Initial commit: full client-side dependency health analyzer Vanilla JS frontend (4 views: analyze/graph/trends/ecosystem) Three.js force-directed 3D dependency graph MoonBit wasm-gc analyzer API (moonbit/api.mbt) LLM-powered AI insights panel
depsight v0.6.0: Web platform + 3D dependency visualization + AI analysis
Initial commit: full client-side dependency health analyzer
基于 MoonBit WASM 的依赖健康检测 Web 应用。
moonbit/ # MoonBit WASM API 源码(编译产物放到 moonbit/depsight.wasm) js/ # 前端 JS(ES Module) css/ # 样式 test-data/ # 内置示例数据 index.html # 入口 Makefile # 构建 WASM serve.py # 本地静态服务器(可选)
WASM 文件不存在时,前端会自动回退到 JS 分析器(行为一致)。
# 用 Python 起静态服务器(避免 file:// 跨域问题) python serve.py # 或 python -m http.server 8080
打开 http://localhost:8080,点击「示例数据」→「开始分析」。
http://localhost:8080
# 安装 MoonBit curl -fsSL https://cli.moonbitlang.com/install.sh | bash # 安装 wasm-gc 后端 moon toolchain install wasm-gc # 编译 WASM make wasm # 或手动: moon build --target wasm-gc --release # 产物:_build/wasm-gc/release/build/main/main.wasm # 拷贝到 moonbit/depsight.wasm
输入框选「输入包名」,填 moonbitlang/core,点「从 mooncakes.io 拉取」。 前端会从 https://mooncakes.io/api/v1/packages/... 拉 moon.mod.json, 自动递归 2-3 层依赖。
moonbitlang/core
https://mooncakes.io/api/v1/packages/...
{ "root": "<moon.mod.json 或 moon.mod TOML 原文>", "modules": { "<name@version>": "<moon.mod.json 原文>", ... }, "metadata": { "<name@version>": { "latest_version", "last_commit_days_ago", ... } }, "options": { "max_depth": 10 } }
{ "overall_score": 87, "node_count": 12, "diagnostics": [{ "code", "severity", "node_id", "message" }], "health_scores": [{ "node_id", "total", "freshness", "compliance", ... }], "summary": { "critical", "warning", "info" }, "graph": { "root_id", "nodes", "edges" }, "size_offenders_top5": [...], "node_metas": {...}, "ecosystem_stats": {...} }
完整契约见 moonbit/api.mbt 头注释。
moonbit/api.mbt
depsight v0.6.0 — MoonBit dependency health web platform: 3D force-directed graph, AI insights, ecosystem dashboard
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
depsight Web 平台
基于 MoonBit WASM 的依赖健康检测 Web 应用。
项目结构
快速开始
1. 仅运行前端(无需 MoonBit)
WASM 文件不存在时,前端会自动回退到 JS 分析器(行为一致)。
打开
http://localhost:8080,点击「示例数据」→「开始分析」。2. 编译 WASM(需要 MoonBit 工具链)
3. 拉取真实依赖数据
输入框选「输入包名」,填
moonbitlang/core,点「从 mooncakes.io 拉取」。 前端会从https://mooncakes.io/api/v1/packages/...拉 moon.mod.json, 自动递归 2-3 层依赖。技术要点
API 契约
输入(context JSON)
输出
完整契约见
moonbit/api.mbt头注释。