floorplan-antigravity

中文文档
1.0.0发布于 2026/11/04MITES Module零依赖

Interactive, offline architecture maps for codebases in Antigravity

原始使用文档
文档目录5 节
  1. Features
  2. Quick Start (CLI)
  3. Installation as an Antigravity Skill
  4. Credits & Attribution
  5. License

Floorplan for Antigravity

Interactive, offline architecture maps for codebases in Antigravity. Generates floorplan/index.html at the project root with zero runtime dependencies.

Features

  • Automated AST Scan: Scans files, imports, and API routes in JS, TS, Python, Go, Rust, Java, and Kotlin with zero external packages (Node 18+ stdlib).
  • Interactive Visual Map: Zoomable subsystem and module nodes, data flows, and screen maps powered by embedded ELK layout engine.
  • Health Checks: Detects exposed credentials, unauthenticated endpoints, and permissive database rules with one-click fix prompts.
  • Recent Work: Visual highlights for cards touched in recent commits or currently in flight.

Quick Start (CLI)

Run directly via npx from any codebase:

# 1. Scan the codebase
npx floorplan-antigravity scan .

# 2. Build the map (after defining or generating architecture.json)
npx floorplan-antigravity build .

# 3. Open in browser
npx floorplan-antigravity open .

Or install globally:

npm install -g floorplan-antigravity
floorplan open .

Installation as an Antigravity Skill

Place this repository or the skills/floorplan-antigravity directory in either:

  • Global: ~/.gemini/config/skills/floorplan-antigravity/
  • Workspace: skills/floorplan-antigravity/ or .agent/skills/floorplan-antigravity/

Then simply ask Antigravity in chat:

"Make me a floorplan of this codebase"
"Update the floorplan with recent changes"

Full agent instructions live in skills/floorplan-antigravity/SKILL.md.

Credits & Attribution

This project is adapted from the original Floorplan by Hayden Schmidt, tailored specifically for Google Antigravity and the Antigravity IDE.

License

MIT © Hayden Schmidt & Floorplan Contributors

版本与发布记录

floorplan-antigravity 共发布 2 个版本,首次发布于 2026/11/04;过去 12 个月发布了 2 个版本。

版本发布日期距今
1.0.0latest2026/11/04今天
0.0.0-stage2026/11/04今天

关于 floorplan-antigravity 的常见问题

floorplan-antigravity 是什么?

交互式,离线架构映射的代码库在反重力

如何安装 floorplan-antigravity?

在项目目录运行 npm install floorplan-antigravity,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 floorplan、floorplan-antigravity,可以用 npx floorplan 直接运行。

floorplan-antigravity 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/floorplan-antigravity 是否存在。

floorplan-antigravity 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

floorplan-antigravity 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

floorplan-antigravity 可以商用吗?

floorplan-antigravity 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

floorplan-antigravity 还在维护吗?

最新版本 1.0.0 发布于 2026/11/04(今天);至今共发布 2 个版本,其中过去 12 个月发布了 2 个;首次发布于 2026/11/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。