bearstouch/reqs
概要
Reqs is a native macOS REST API client built with SwiftUI: collections, environments with {{variables}}, streamed responses, code generation (cURL, Swift, Python), plus an MCP server and CLI for agents. Formerly PostWoman.
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルReqs
A native macOS REST API client built with SwiftUI and SwiftData: a lightweight Postman alternative with collections, environments, streamed responses and code generation, which agents and scripts can drive too. Formerly PostWoman.
Website · Download · Changelog
Features
Requests
- Methods - GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS
- Request editor - URL, query parameters, headers, body and authentication, each in its own tab
- Body types - JSON, Form Data (sent as
multipart/form-data), URL Encoded, XML and Plain Text - Collections - Requests are grouped in collections (folders). Export a collection to a file and import it on another Mac; secret values are exported empty
Environments and variables
- Write
{{name}}in a request's URL, params, headers, body or auth - Every collection has a Default environment that always applies. Pick another (Local, Staging, Production…) from the toolbar, and it overrides Default only for the variables it sets
- Variables marked secret are masked in the app and left as
{{name}}in History and generated code
Responses
- Body - Formatted, syntax-highlighted JSON, or the text as received
- Headers, Cookies and Timing - Timing is a waterfall of DNS, connect, TLS, send, wait and download
- Streaming - A
text/event-streamor NDJSON response appears as it arrives, and the Events tab lists each event with its arrival time. For LLM APIs with"stream": true, the Text view joins the deltas into the reply. Send becomes Stop (⌘.), which keeps what arrived
Authentication
- Bearer Token
- Basic Auth - Username and password
- OAuth 2.0 - The settings can be filled in and saved, but no token is requested or sent yet
Code Generation
Export a request as code, with its variables resolved:
- cURL - Command-line ready
- Swift - URLSession
- Python -
requestslibrary
History
- Every request sent is recorded with what was sent and what came back, including failed requests and their error
- Select an entry to read it, or open it as a new request
- Keeps the most recent 300 entries; change the limit in Settings → General
Themes and updates
- Light and dark color themes, chosen in Settings → Appearance
- Reqs → Check for Updates… installs new releases in place (Sparkle). Nothing reaches the network until you check or turn automatic checks on
Remote Agent (MCP)
- An optional Model Context Protocol server, so agents such as Claude Code can create, update and delete collections, requests and history, and send requests
- Off by default. Turn it on in Settings → Remote Agent, press Apply, then use Copy Client Setup and the access token on the same page:
claude mcp add --transport http reqs http://127.0.0.1:7778/mcp \
--header "Authorization: Bearer pwm_…"
Command line
reqsdrives the running app through the same MCP server, from your shell or scripts. It ships inside the app; link it onto your PATH once (or use Copy Client Setup → Command-line tool in Settings):
/Applications/Reqs.app/Contents/Helpers/reqs cli install-link # → ~/.local/bin/reqs
reqs collection list
reqs request create --collection ID --name "Get user" --url https://api.example.com/users/1
reqs request execute --id ID --include # body on stdout, status and timing on stderr
reqs request execute -X POST --url https://httpbin.org/post -H "Accept: application/json" -d '{"a":1}'
reqs history list --limit 10
reqs help # every command; add --json for machine-readable output
- It finds the agent token and endpoint from the app itself; override with
--server/--agent-tokenorREQS_URL/REQS_TOKEN. Exit statuses are stable (for example 3 for a refused token, 4 for not found, 7 when the app isn't reachable, 22 for--failon a 4xx/5xx response).
Installation
Download (Recommended)
Download the latest DMG installer from the Releases page:
- Download
Reqs-X.Y.Z.dmg(Universal), or the-apple-silicon/-intelvariant - Open the DMG file
- Drag Reqs to your Applications folder
- Eject the DMG and launch Reqs from Applications
Build from Source
Requirements
- macOS 14.0 (Sonoma) or later
- Xcode 26 / Swift 6.2 toolchain (the app builds with Swift Package Manager)
Steps
Clone the repository:
git clone https://github.com/bearstouch/reqs.git cd reqsBuild and run:
swift run Reqs # unbundled, uses its own dev store scripts/run-app.sh # sandboxed .build/Reqs.app (com.bearstouch.reqs.dev)Or open
Package.swiftin Xcode (or the folder in VS Code with the Swift extension) and run theReqsscheme.Test and lint:
swift test swift format lint --strict -r Sources Tests
Build DMG Installers
scripts/package-release.sh # Universal 2 DMG in dist/ (+ dist/release-evidence.json)
scripts/package-thin-release.sh # Apple silicon and Intel DMGs from the Universal app
Builds are ad-hoc signed unless REQS_SIGN_IDENTITY (Developer ID) is set; set
REQS_NOTARY_PROFILE (a notarytool keychain profile) to notarize and staple.
The version comes from release/manifest.json.
Usage
Creating a Request
- Click + in the sidebar and choose New Folder (or Import Collection…)
- Select the collection and click New Request (Cmd+N)
- Enter the URL and select the HTTP method
- Configure params, headers, body and authentication as needed
- Press Cmd+Return or click Send
Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| New Request | Cmd+N |
| New Folder | Shift+Cmd+N |
| Send Request | Cmd+Return |
| Stop a streamed response | Cmd+. |
| Save Request | Cmd+S |
| Duplicate Request | Cmd+D |
| Generate Code | Shift+Cmd+G |
| Manage Environments | Cmd+E |
| Select an environment | Ctrl+1 … Ctrl+9 |
Project Structure
Package.swift # SwiftPM manifest (app, CLI and tests)
Sources/Reqs/
├── App/ # App entry point, root view and menu commands
├── Models/ # SwiftData models
├── Views/
│ ├── Sidebar/ # Collections, request list and History
│ ├── RequestEditor/ # URL bar and request tabs
│ ├── ResponseViewer/ # Body, Events, Headers, Cookies, Timing
│ ├── Environments/ # Environment menu and editor
│ ├── CodeGeneration/ # Code export
│ ├── Settings/ # General, Appearance, Remote Agent, Updates
│ └── Shared/ # Reusable components
├── RemoteAgent/ # MCP server: HTTP listener, endpoint, tools
├── Services/
│ ├── HTTPClient.swift # Networking
│ ├── AuthenticationHandler.swift
│ ├── CodeGenerator/ # cURL, Swift, Python generators
│ ├── Streaming/ # Server-sent events and NDJSON
│ ├── Variables/ # {{variable}} resolution
│ └── Updates/ # Sparkle updater
└── Utilities/ # JSON formatting, themes
Sources/ReqsCLI/ # the reqs command (MCP client); ReqsCLIMain is its entry point
Tests/ReqsTests/ # XCTest suite
release/ # manifest.json (version, bundle id) and entitlements
scripts/ # app bundle, DMG and release packaging
Design/ # app icon, DMG background and README screenshots
Tech Stack
- UI Framework: SwiftUI
- Data Persistence: SwiftData
- Networking: URLSession with async/await
- Updates: Sparkle
- Build: Swift Package Manager, Swift 6 language mode
- Target Platform: macOS 14+ (Apple silicon and Intel)
Contributing
We welcome contributions! Please see our Contributing Guide for details on:
- Setting up your development environment
- Our coding standards and conventions
- The pull request process
Quick Start for Contributors
# Fork and clone
git clone https://github.com/YOUR_USERNAME/reqs.git
cd reqs
# Create a feature branch
git checkout -b feature/your-feature
# Make changes, then submit a PR
Good First Issues
Check out issues labeled good first issue for beginner-friendly tasks.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Inspired by Postman
- Built with SwiftUI and SwiftData
関連プロジェクトを探す
読み込み中…