展示HN:Vayu – 一款以本地优先为原则的API客户端,配备C++负载测试引擎
嗨,HN:
我创建Vayu是因为对当前API工具的状态感到沮丧。Postman已经变得臃肿,并且强制进行云同步,而像JMeter或k6这样的高性能工具往往缺乏良好的图形用户界面来进行快速调试。
Vayu试图填补这个空白。它是一个开源的、本地优先的API客户端(类似于Postman、Insomnia),其底层包含一个高性能的负载测试引擎(用C++20编写)。
关键技术决策:
- 侧车架构:用户界面使用Electron/React(为了可用性),但它会启动一个独立的C++守护进程(“引擎”)来处理实际的网络请求。
- 这使得用户界面在负载测试期间,即使引擎每秒处理数千个请求时,依然保持响应。
- 隐私:它是100%本地的。无需云同步,也不需要账户。
- 脚本:使用QuickJS进行测试脚本(兼容您已经熟悉的`pm.test`语法)。
我在Macbook Pro M3上本地测试过最高可达60k rps。
目前版本为v0.1.1。我有Windows、Linux和macOS的构建版本。(PS:macOS通过dmg文件运行需要一些额外步骤,可能需要找到解决方法)
我特别希望获得关于“引擎”性能和负载测试流程的开发者体验的反馈,同时希望开发者能帮助我改善用户界面。
代码库链接:[https://github.com/athrvk/vayu](https://github.com/athrvk/vayu)
查看原文
Hi HN,<p>I built Vayu because I was frustrated with the current state of API tools. Postman has become bloated and forces cloud sync, while high-performance tools like JMeter or k6 often lack a decent GUI for quick debugging.<p>Vayu attempts to bridge that gap. It is an open-source, local-first API client (like Postman, Insomnia) that includes a high-performance load-testing engine (written in C++20) under the hood.<p>Key technical decisions:
- Sidecar Architecture: The UI is Electron/React (for usability), but it spawns a separate C++ daemon ("The Engine") to handle actual networking.
- This allows the UI to remain responsive even while the engine is pumping thousands of requests per second during a load test.
- Privacy: It is 100% local. No cloud sync, no accounts required.
- Scripting: Uses QuickJS for test scripts (compatible with the `pm.test` syntax you already know).<p>I have tested upto 60k rps locally on Macbook Pro M3<p>It is currently v0.1.1. I have builds for Windows, Linux, and macOS. (PS: macOS requires some extra steps to run via the dmg file, will have to find a workaround)<p>I am looking for feedback specifically on the "Engine" performance and the developer experience of the load-testing flow, and developers to help me improve the UI.<p>Repo: <a href="https://github.com/athrvk/vayu" rel="nofollow">https://github.com/athrvk/vayu</a>