postwoman
Health Gecti
- License รขโฌโ License: MIT
- Description รขโฌโ Repository has a description
- Active repo รขโฌโ Last push 0 days ago
- Community trust รขโฌโ 34 GitHub stars
Code Basarisiz
- rm -rf รขโฌโ Recursive force deletion command in .github/workflows/release.yml
- rm -rf รขโฌโ Recursive force deletion command in scripts/generate-app-icon.sh
- rm -rf รขโฌโ Recursive force deletion command in scripts/make-dmg.sh
- rm -rf รขโฌโ Recursive force deletion command in scripts/package-release.sh
- rm -rf รขโฌโ Recursive force deletion command in scripts/package-thin-release.sh
Permissions Gecti
- Permissions รขโฌโ No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
PostWoman ๐ 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.
PostWoman
A native macOS REST API client built with SwiftUI and SwiftData. A lightweight Postman alternative designed specifically for macOS.
Features
Core Functionality
- REST API Testing - Support for GET, POST, PUT, DELETE methods
- Folder Organization - Organize requests into nested collections
- Request Editor - Configure URL, headers, query parameters, body, and authentication
- Response Viewer - View response status, headers, and formatted JSON body
Authentication
- Bearer Token - JWT and OAuth token support
- Basic Auth - Username/password with Base64 encoding
- OAuth 2.0 - Configuration structure (implementation in progress)
Code Generation
Export requests as code in multiple languages:
- cURL - Command-line ready
- Swift - URLSession implementation
- Python - requests library
Request History
- Automatic logging of all requests
- View past requests grouped by date
- Restore requests from history
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 postwoman http://127.0.0.1:7778/mcp \
--header "Authorization: Bearer pwm_โฆ"
Command line
postwomandrives 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/PostWoman.app/Contents/Helpers/postwoman cli install-link # โ ~/.local/bin/postwoman
postwoman collection list
postwoman request create --collection ID --name "Get user" --url https://api.example.com/users/1
postwoman request execute --id ID --include # body on stdout, status and timing on stderr
postwoman request execute -X POST --url https://httpbin.org/post -H "Accept: application/json" -d '{"a":1}'
postwoman history list --limit 10
postwoman help # every command; add --json for machine-readable output
- It finds the agent token and endpoint from the app itself; override with
--server/--agent-tokenorPOSTWOMAN_URL/POSTWOMAN_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
PostWoman-X.Y.Z.dmg(Universal), or the-apple-silicon/-intelvariant - Open the DMG file
- Drag PostWoman to your Applications folder
- Eject the DMG and launch PostWoman 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/postwoman.git cd postwomanBuild and run:
swift run PostWoman # unbundled, uses its own dev store scripts/run-app.sh # sandboxed .build/PostWoman.app (com.bearstouch.postwoman.dev)Or open
Package.swiftin Xcode (or the folder in VS Code with the Swift extension) and run thePostWomanscheme.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 POSTWOMAN_SIGN_IDENTITY (Developer ID) is set; setPOSTWOMAN_NOTARY_PROFILE (a notarytool keychain profile) to notarize and staple.
The version comes from release/manifest.json.
Usage
Creating a Request
- Click the + button in the sidebar
- Select "New Request" or "New Folder"
- Enter the URL and select HTTP method
- Configure headers, parameters, body 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 |
| Save Request | Cmd+S |
| Duplicate Request | Cmd+D |
| Generate Code | Shift+Cmd+G |
Project Structure
Package.swift # SwiftPM manifest (executable + tests)
Sources/PostWoman/
โโโ App/ # App entry point and main views
โโโ Models/ # SwiftData models
โโโ Views/
โ โโโ Sidebar/ # Collection tree and history
โ โโโ RequestEditor/ # URL bar and request tabs
โ โโโ ResponseViewer/ # Response display
โ โโโ CodeGeneration/ # Code export
โ โโโ Settings/ # General, Appearance, Remote Agent
โโโ RemoteAgent/ # MCP server: HTTP listener, endpoint, tools
Sources/PostWomanCLI/ # the postwoman command (MCP client); PostWomanCLIMain is its entry point
โโโ Services/
โ โโโ HTTPClient.swift # Networking
โ โโโ AuthenticationHandler.swift
โ โโโ CodeGenerator/ # cURL, Swift, Python generators
โโโ Utilities/ # JSON formatting, helpers
Tests/PostWomanTests/ # XCTest suite
release/ # manifest.json (version, bundle id) and entitlements
scripts/ # app bundle, DMG and release packaging
Design/ # app icon and DMG background sources
Tech Stack
- UI Framework: SwiftUI
- Data Persistence: SwiftData
- Networking: URLSession with async/await
- Build: Swift Package Manager, Swift 6 language mode
- Target Platform: macOS 14+
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/postwoman.git
cd postwoman
# 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
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi