Skip to content
Proyectos

Acerca de

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.

Herramientas de desarrollo

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
Recopilando historial
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

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

CI Release macOS Swift License

The Reqs window: the Shop API collection and its requests, a GET request with {{variables}} and query parameters, and the 200 OK JSON response

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-stream or 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 - requests library

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

  • reqs drives 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-token or REQS_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 --fail on a 4xx/5xx response).

Installation

Download (Recommended)

Download the latest DMG installer from the Releases page:

  1. Download Reqs-X.Y.Z.dmg (Universal), or the -apple-silicon / -intel variant
  2. Open the DMG file
  3. Drag Reqs to your Applications folder
  4. 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

  1. Clone the repository:

    git clone https://github.com/bearstouch/reqs.git
    cd reqs
    
  2. Build 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.swift in Xcode (or the folder in VS Code with the Swift extension) and run the Reqs scheme.

  3. 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

  1. Click + in the sidebar and choose New Folder (or Import Collection…)
  2. Select the collection and click New Request (Cmd+N)
  3. Enter the URL and select the HTTP method
  4. Configure params, headers, body and authentication as needed
  5. 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

Explorar proyectos relacionados

Cargando…