insomnia

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Insomnia

Insomnia

Insomnia is the lightweight alternative to Postman. v9.0+ focuses on Local-First philosophy (Local Vault) and Git Sync.
Insomnia是Postman的轻量替代工具。v9.0及以上版本主打**Local-First(本地优先)理念(Local Vault本地存储库)和Git Sync(Git同步)**功能。

When to Use

使用场景

  • Privacy: "Local Vault" ensures your API keys never touch the cloud.
  • GraphQL: One of the best GraphQL clients with schema fetching and auto-complete.
  • Simplicity: Cleaner UI than Postman.
  • 隐私性:"Local Vault"确保你的API密钥绝不会上传至云端。
  • GraphQL支持:最优秀的GraphQL客户端之一,支持模式获取和自动补全功能。
  • 简洁性:拥有比Postman更简洁的UI界面。

Core Concepts

核心概念

Design Documents (OpenAPI)

设计文档(OpenAPI)

Write YAML config and generate code/tests.
编写YAML配置并生成代码/测试用例。

Git Sync

Git同步

Sync your collections to a Git repo (not a proprietary cloud).
将你的API集合同步到Git仓库(而非专有云服务)。

Plugins

插件

Community plugins for authentication and themes.
社区提供的插件可用于身份验证和主题定制。

Best Practices (2025)

2025年最佳实践

Do:
  • Use Git Sync: Treat your API collection as code.
  • Use Environment Variables: Switch contexts easily.
Don't:
  • Don't ignore the CLI:
    inso
    is the CLI tool for running tests in pipelines.
建议
  • 使用Git同步:将你的API集合视为代码进行管理。
  • 使用环境变量:轻松切换不同上下文环境。
不建议
  • 不要忽略CLI工具
    inso
    是用于在流水线中运行测试的CLI工具。

References

参考资料