Sno Station
Sno Station is your agents' workstation: open-source software that turns the AI agents you already run into one squad on your own machine. Two heads are better than one, and they get better with every
IntelliJ Plugin | REST API Search | JSON & Mock Generator | Markdown API Docs | Code Statistics
Translation pending
PluginsKotlinGitHub @EachFlySelf-installOwner unconfirmed
Paste into Claude or ChatGPT for installation instructions suited to your environment.
Have you tried it? One tap is enough. No sign-in needed.
Loading the full README. The saved excerpt is shown below.
HttpMate 是一个 IntelliJ IDEA 插件,用于在 Java/Kotlin 项目中提升 REST API 开发效率。 它提供以下高频开发辅助功能: • 快速检索并跳转 REST 接口定义(类似 IDE 内搜索即跳转体验) • 基于类结构一键生成 JSON / Mock JSON • 基于控制器方法自动生成 Markdown 接口文档 • 代码行统计:右键目录递归分析代码行、注释行、空行占比,含可视化图表 • 命名风格切换:选中文本一键在 camelCase / snake_case / PascalCase / SCREAMING_SNAKE / kebab-case 间转换 插件当前通过 PSI + 注解扫描实现对 Spring Web 与 JAX-RS(javax / jakarta) 的接口识别,并在 IDE 内完成交互与导航。Read the full README ↗
HttpMate 是一个 IntelliJ IDEA 插件,用于在 Java/Kotlin 项目中提升 REST API 开发效率。
它提供以下高频开发辅助功能:
插件当前通过 PSI + 注解扫描实现对 Spring Web 与 JAX-RS(javax / jakarta) 的接口识别,并在 IDE 内完成交互与导航。
Ctrl + \ 或 Ctrl + Alt + HEnter 直接跳转到接口定义@GetMapping/@PostMapping/.../@RequestMapping@Path/@GET/@POST/...(javax.ws.rs 与 jakarta.ws.rs)Ctrl + Shift + Alt + UXMLParser → xml, parser)| 类别 | 技术/库 | 版本 |
|---|---|---|
| 语言 | Kotlin (JVM) | 2.4.0 |
| 运行时 | Java Toolchain | 21 |
| 构建工具 | Gradle Wrapper | 9.6.0 |
| IntelliJ 插件构建 | org.jetbrains.intellij.platform | 2.16.0 |
| 目标 IDE 平台 | IntelliJ IDEA Community (IC) | 2024.3.6 |
| 测试 | JUnit | 4.13.2 |
| 覆盖率 | Kover | 0.9.8 |
| 代码检查 | Qodana Gradle Plugin | 2026.1.3 |
兼容基线由插件配置控制:
sinceBuild = 243(IntelliJ 2024.3+)。
21+2024.3+(用于运行/调试插件)git clone https://github.com/EachFly/HttpMate.git
cd HttpMate
macOS / Linux:
./gradlew runIde
Windows (PowerShell):
.\gradlew.bat runIde
常用命令:
# 构建插件包(zip)
./gradlew buildPlugin
# 运行测试与检查
./gradlew check
# 插件结构与兼容性校验
./gradlew verifyPlugin
构建产物默认位于:
build/distributions/
当前项目没有 .env 或 .env.example,核心配置通过 gradle.properties 管理。
常用配置示例(节选):
pluginName = HttpMate
pluginVersion = 1.2.8
platformType = IC
platformVersion = 2024.3.6
pluginSinceBuild = 243
插件运行后生成内容默认输出到项目目录:
http-mate/
├─ <ClassName>.json
└─ docs/
├─ <ClassName>_<methodName>.md
└─ <ClassName>.md
在 IDE 中按 Ctrl + \(或 Ctrl + Alt + H),输入例如 g u s e r(子序列匹配),选择结果后按 Enter 跳转到对应方法。
在项目视图中右键某个 Java/Kotlin 类:
HttpMate -> Generate JSONHttpMate -> Generate Mock JSON生成文件示例(http-mate/UserDTO.json):
{
"id": 0,
"name": "",
"tags": []
}
在 Controller 方法或类上右键:
HttpMate -> Generate API Doc生成文档示例路径:
http-mate/docs/UserController_getUser.md
http-mate/docs/UserController.md
在项目视图中右键某个目录或 Package:
HttpMate -> Code Line Statistics弹出的统计窗口包含:
选中编辑器中的文本,按 Ctrl + Shift + Alt + U(或右键 HttpMate -> Toggle Case),在弹出菜单中选择目标风格:
camelCasesnake_caseSCREAMING_SNAKE_CASEPascalCasekebab-caseHttpMate/
├─ src/
│ ├─ main/
│ │ ├─ kotlin/com/github/jeraxxxxxxx/httpmate/
│ │ │ ├─ HttpMateBundle.kt # 国际化资源绑定
│ │ │ ├─ actions/ # 插件动作入口(搜索、JSON生成、文档生成、代码统计、命名切换)
│ │ │ ├─ services/ # 接口扫描与项目级服务
│ │ │ ├─ doc/ # Markdown 文档生成
│ │ │ ├─ generator/ # JSON / Mock JSON 生成器
│ │ │ ├─ ui/ # 搜索对话框与图标
│ │ │ ├─ model/ # 数据模型
│ │ │ └─ constants/ # 注解与通用常量
│ │ └─ resources/
│ │ ├─ META-INF/plugin.xml # 插件声明与动作注册
│ │ ├─ icons/ # SVG 图标资源
│ │ └─ messages/MyBundle.properties
│ └─ test/
│ ├─ kotlin/com/.../ # 单元测试
│ └─ testData/ # 测试数据文件
├─ build.gradle.kts
├─ gradle.properties
└─ CHANGELOG.md
构建流程不会删除其他 Release 草稿,只创建或更新当前版本的自动草稿。自动草稿使用
<!-- httpmate:changelog:start --> 和 <!-- httpmate:changelog:end --> 标记 Changelog 生成区块;
可以在区块前后维护手工说明,这些文字在后续构建中会保留。区块内的内容会随 Changelog 更新。
同版本的正式 Release、手工创建的草稿,以及没有上述标记的旧草稿都会保留并提示跳过,不会自动接管。
正式版和从草稿发布的预发行版均通过 release.published 触发插件发布。
发布脚本的本地回归测试:node --test .github/scripts/release-draft.test.mjs(只模拟调用,不连接 GitHub)。
欢迎提交 Issue 与 PR,一般流程如下:
./gradlew check 与 ./gradlew verifyPlugin许可证(License):本项目基于 MIT License 开源。