Chapar for Mac
The latest version of Chapar for Mac is 0.14.1, released . Native API client.
What's new in Chapar 0.14.1
Fixes
- macOS: Chapar quits when asked. Quit from the Dock, logging out or shutting down, and osascript -e 'tell application id "rest.chapar.app" to quit' were ignored until something else woke the window, so Chapar could keep running or hold up logout. It now quits at once. (#194, Yoga v0.49.1)
Source: github.com
How to update Chapar on your Mac
- With Homebrew. If you installed Chapar with Homebrew, run:
brew upgrade --cask chapar - From the developer. Download the latest version from chapar.rest and install it over the old copy in your Applications folder.
- With Fresh. Fresh lives in your menu bar, spots when Chapar and your other apps are out of date, and updates them all in one click. It launches soon.
Chapar version history
- 0.14.1
0.14.0
Chapar moves to Yoga 0.49: document tabs, a minimap, drag-and-drop import, and clearer selection and focus everywhere.
New
Drag and drop import
Drop Postman collections, OpenAPI specs or .proto files on the Requests page to import them, as Import › From file… does. Drop several at once.
Tabs and windows
- The workspace tab strip uses document tabs: the tab in front joins the request below it.
- Hover a request's tab to see where it goes: method and URL for HTTP, the URL for GraphQL and WebSocket, server and method for gRPC. Long titles end in "…" and show whole in the tooltip.
- The OS window is named after the tab in front, so the Dock, Mission Control and window switchers tell Chapar windows apart.
Editor
- Settings › Editor › Show minimap draws a miniature of the document at the editor's right edge; click or drag it to scroll. Notes and descriptions never show one.
- Text fields, such as the URL bar, take the editor's word and line keys: ⌥←/→ and ⌥⌫ by word, ⌘←/→ and ⌘⌫ to the line's ends (Ctrl+←/→ and Ctrl+Backspace on Windows and Linux).
- Files with CRLF line endings keep them.
Look and feel
- Selected rows (test step results, merge choices, proxy filters, the command palette) use an accent tint, so selection no longer looks like a pressed row.
- Focus rings are drawn outside controls instead of over them.
- Menus, popovers, dialogs and the command palette float on their own surface, with visible shadows.
- Alerts lead with a status icon, so severity doesn't rest on color alone.
- Sidebar headers are small capitals, and a medium font weight is used for labels. Every text style scales with UI font size.
- Split in the status bar is a menu: side by side or stacked.
Fixes
- Headings and labels added in this Yoga release now follow the UI font size setting.
Source: github.com
0.13.0
A much stronger editor for bodies and scripts, and gRPC messages bigger than 4 MB.
New
gRPC message size
Responses over 4 MB used to fail with ResourceExhausted, with no way around it. A gRPC request's Settings tab now has Max response size (MB) and Max request size (MB). Zero keeps gRPC's defaults: 4 MB for responses, no limit for requests. The limits apply to server reflection as well.
Editor
Body, script and response editors pick up a set of code-editor features:
- Multiple cursors: ⌥-click adds a caret, ⌘D adds the next occurrence of the selection, ⌘⇧L selects every occurrence, ⌘⌥↑/↓ add a caret above or below, and ⌥⇧-drag selects a column. Typing, deleting, cut, copy and paste act on every cursor; Escape drops the extras.
- Code folding: fold blocks by brackets or indentation from chevrons in the gutter, ⌥⌘[ / ⌥⌘] at the caret, or ⌘K ⌘0 / ⌘K ⌘J for everything. A folded block shows as { … }.
- Find and replace: a redesigned find bar with match case, whole word, regex (with $1 groups), preserve case, find in selection and an "N of M" counter. Its fields are real text fields, so select all, copy, paste and undo work in them. Replace All is one undo step.
- Line commands: duplicate (⇧⌥↑/↓), move (⌥↑/↓) and delete (⌘⇧K) lines, and toggle a line comment (⌘/).
- Moving around: by word (⌥←/→), to line start and end, with Home switching between the first non-blank and column 0, and to the start and end of the file. ⇧-click extends the selection.
- Undo brings back every cursor an edit had.
- On Windows and Linux, the same shortcuts use Ctrl in place of ⌘ (word moves use Ctrl+←/→).
Syntax colors
Go, Python, Rust, JavaScript and TypeScript scripts color functions, methods, properties, parameters, constants and builtins apart. Protocol Buffers, Java, TOML, C, C++, C#, Lua, Ruby, PHP, Zig and Makefiles are now highlighted too.
Source: github.com
0.12.0
Git built in, workspaces that stay clean in git, in-app updates, and a waterfall timeline.
New
Git
A workspace kept in a Git repository gets a Git page. Chapar uses the git on your computer; if it isn't installed, the page says so and links to the download.
- Changes lists added, changed, renamed and deleted requests, collections, environments and proto files by name, not just by file. Pick what goes in the next commit, write a message and Commit, or Discard a change to put it back the way the last commit has it.
- History shows the workspace's commits. Revert makes a new commit that undoes one.
- Fetch, Pull and Push, Connect a remote or change it. For HTTPS remotes, sign in with a user name and an access token; Chapar saves the token in your system's secret store and uses it for every repository on that server.
- Branches: create a branch, switch to one, or merge another branch in. When both sides changed the same item, Chapar shows the conflict field by field so you pick a version for each, then Finish merge (or Abort).
- Clone on the Workspaces page clones a space from a Git repository.
Workspaces that stay clean in git
- Secrets stay on your machine. A secret's value now lives encrypted in the workspace's local state (.state/secrets, ignored by git); the environment file names the secret and leaves its value empty. Older files with inline ciphertext still load and move out on the next save.
- After a clone, a secret with no value on this machine is marked unset: it isn't substituted into requests, the environment editor names it in a banner, and chapar test leaves it out with a warning.
- No changes nobody made. Saving an environment no longer re-encrypts every secret or gives every value a new ID, and a collection's file no longer embeds copies of its requests, so saving an unchanged item leaves its file byte for byte as it was.
Updates
Once at startup Chapar checks for a newer release. When there is one, a notice in the bottom-right corner offers Install latest and See what's new.
- macOS: downloads the DMG, checks the app's signature, Gatekeeper's verdict and that the same team signed it, swaps the app and offers a restart.
- Windows: puts the new exe in place of the running one.
- Homebrew: runs brew upgrade --cask chapar. Linux, or a copy that can't replace itself, gets a Download button.
- Every release file is signed, and Chapar installs nothing without a valid signature.
- Turn the check off in Settings › General › Check for updates.
Timeline as a waterfall
The Timeline tab lists each step in a table with a bar on one shared scale: when it ran in the request and how long it took. Bars are colored by kind (scripts, DNS, connect, TLS, sending, waiting, download) and turn red for a failed step. Durations under 10 ms show decimals instead of rounding to zero.
Look and feel
- Settings › Appearance adds density (tighter or roomier controls) and overlay scrollbars (thin, shown only while scrolling). Both apply live.
- Each request bar is one joined control: method, URL and Send for HTTP; address, method and Invoke for gRPC; URL and Send or Connect for GraphQL and WebSocket.
- HTTP methods have their own colors in the tree and the method picker, readable in every theme. The method menu fits its longest option, so CONNECT and OPTIONS show in full.
- Wrapped lines in body, script and response editors hang one tab stop past their indent, so wrapped JSON keeps its shape. The line-number gutter is only as wide as the line numbers need.
- Dialogs fit their content, and focus rings show only when you use the keyboard.
Fixes
- The proxy setup guide shows the certificate's path as ~/… and writes it as "$HOME/…" in commands, instead of spelling out your home folder.
Notes
- In-app updates start with the release after this one: v0.11.0 and earlier can't update themselves, so install v0.12.0 the usual way.
- Git actions that rewrite files (pull, switch branch, merge, revert, discard) ask you to save or close tabs with unsaved changes first.
Source: github.com
0.11.0
A traffic capture proxy, and a fix for requests that showed Inherit auth while sending none.
New
Proxy
A new Proxy page in the sidebar runs an HTTP(S) proxy, so you can see the requests an app, browser or phone makes and turn them into Chapar requests. It only runs after you click Start, and stops when Chapar quits. Chapar never changes your system proxy settings.
- Captured requests are listed in a table with method, status, host, path, type, size, time and the app that sent them. Filter by app or domain in the sidebar, by protocol (HTTP, HTTPS, WS) and content type (JSON, XML, HTML, CSS, JS, images, media, fonts, forms) or errors, and search by URL, method, status or app.
- Request and response sit side by side with Headers, Query, Body and Raw tabs. JSON is pretty-printed and highlighted.
- Open in Chapar saves a captured request as a standalone request and opens it in a tab. Copy as cURL copies it as a curl command that pastes safely in a shell. Both are in the request's … menu and the command palette.
- Export HAR saves the requests shown (after filters) as a HAR 1.2 file.
- Pin apps and domains, don't decrypt domains that pin their certificates, Pause recording and Clear.
- On macOS, apps on this computer are named by their process (e.g. Google Chrome); phones and other devices by their address.
Certificate setup
To show HTTPS, Chapar makes its own certificate authority on your computer. The Setup guide checks each step and says how to fix what isn't ready:
- Trust it on this computer in one click on macOS (it asks for your password); Windows and Linux show the command to run.
- Point apps at the proxy: steps for your system's proxy setting, plus a shell snippet that makes curl, Node and Python use the proxy and trust the certificate.
- Phones and other devices: turn on Allow devices on local network, set the device's Wi-Fi proxy to the address Chapar shows, then open http://chapar.mitm/ on the device. That page offers the certificate with install steps for iOS, Android, macOS, Windows, Linux and Firefox.
Settings › Proxy
Port (default 9090), local network access (off by default), how many requests to keep (5000), a memory limit for captured bodies (256 MB), the largest body to capture (10 MB), and domains not to decrypt.
Fixes
- New requests showed Inherit auth while sending none. HTTP and GraphQL requests, including pasted curl commands, were saved with an auth type the Auth selector didn't recognize, so it showed Inherit. They now show None, and requests already saved this way show None too. What they send hasn't changed.
Notes
- Allow devices on local network lets anyone on your network send traffic through the proxy while it runs. Leave it off when you don't need it.
- HTTPS to a bare IP address can't be decrypted, and WebSocket messages through the proxy aren't shown yet.
- On Windows and Linux, trusting the certificate is a command you run, and apps are named from their User-Agent.
Source: github.com
0.10.0
WebSocket requests, and a fix for query params added in the Params table.
New
WebSocket requests
A new WebSocket request type: Connect, send messages, watch everything that arrives, Disconnect.
- Messages can be text, JSON or base64 binary. Save them with the request and send them again from the Saved tab.
- Message log, newest first, with a filter, Clear, and a detail pane (indented JSON, hex dump for binary). Pings, pongs, open and close (with code and reason) are shown too.
- Handshake headers, cookies and timeline have their own response tabs.
- Settings: subprotocols, connect timeout, ping interval and permessage-deflate. Headers and auth work like HTTP requests, including the collection's, and use the same TLS setting, cookie jar and User-Agent.
- Variables are filled when connecting, and in each message when it is sent.
- Pre-request scripts run before every connect. A Python script sees the handshake as a GET with the draft message as its body.
- ⌘↵ / Ctrl+↵ connects, or sends once connected. Closing the tab closes the connection.
Try it against wss://mocks.chapar.rest/ws/echo.
Fixes
- Query params from the Params table are sent. Editing a key or value, toggling or deleting a row in Params → Query now updates the URL, so the params are sent and the Code dialog shows them. Before, only params typed into the URL were sent. (#183)
- Long hints wrap to their pane's width instead of running past its edge in a narrow pane (settings, test cases, gRPC, environments, cookies and timeline tabs).
- A test case card repaints when it switches to its compact layout.
Notes
- Post-request actions don't apply to a WebSocket connection and are not shown for it.
- A request saved before this fix with params in the table but not in the URL is corrected the next time any of its query rows is edited.
Source: github.com
0.9.1
A fix for the response Cookies tab.
Fixes
- Cookie values in a narrow pane. With the request and response side by side, the response's Cookies tab lost its Value and Flags columns, and the Value header ran into Domain. Tables now keep their flexible columns readable by narrowing the other text columns, and column headers no longer spill into the next column. (Yoga v0.25.1)
Docs
- New Testing section: test cases in the app, assertions and captures, and chapar-cli in CI.
- The README and the docs have new screenshots of the current UI.
Source: github.com
0.9.0
Fixes for scripts, environments and the editors.
Changes
Environments
- Only checked variables are used. An unchecked environment variable was still replaced in requests and passed to scripts; the checkbox only affected the editors' hints. Now an unchecked variable is kept but ignored everywhere, and the Envs page says so under the environment's name. Setting a variable from a script or a request action checks it.
Scripts
- response in a pre-request script: the editor now flags response in a pre-request script, where there is no response yet, and running it gives an error that says so instead of 'NoneType' object has no attribute .... This needs the new script runner, chapar/python-executor:0.3.1.
- Script runner image: Chapar now moves a setting still on an older chapar/python-executor image (including latest) to the version it pins. A custom image, or a newer version, is kept.
Timeline
- The detail of a timeline step wraps long lines, keeps a traceback's indentation and can be selected and copied. It sits at the bottom of the pane and scrolls when it is long.
Editors and UI
- Editor settings (line numbers, wrap, auto-close brackets and quotes, spaces or tabs) now apply to the editors, and preview live in Settings.
- Response editors are read-only.
- Fixed a crash when Enter added a line to a soft-wrapped editor.
- Right-clicking empty space in a tree opens its menu.
- The collection view's tabs and headers match the request view's.
- Spaces typed into a request's name are kept.
Notes
- If you relied on an unchecked environment variable being replaced, check it: unchecked variables are now ignored.
Source: github.com
0.8.0
Chapar can now test your APIs. A test case sends your saved requests in order, checks each response and passes values from one step to the next.
Highlights
Test cases in the app
- Tests page: create, import, duplicate and run test cases. Each step picks a request and adds assertions (status, headers, cookies, gRPC metadata and trailers, JSON body paths, body text, time and size), captures for later steps, a timeout, retries and request overrides. Steps can be disabled, and cases have setup and teardown.
- Live results: every step's checks, response body and headers, with Re-run failed.
- Works with your requests as they are: auth, collection headers, pre/post-request scripts, extract rules and trigger requests all run as they do when you send a request. A run never changes your environment or cookies unless you turn on "Save environment changes".
- YAML: edit a case as a form or as YAML; cases are plain files in ‹workspace>/testcases/.
chapar-cli for CI
chapar-cli runs test cases from the command line, without the app. It is a single static binary for Linux, macOS and Windows:
curl -fsSL https://github.com/chapar-rest/chapar/releases/latest/download/install-cli.sh | sh # or brew install chapar-rest/chapar/chapar-cli
chapar-cli test --workspace path/to/workspace --env staging --report junit=results.xml
Export a test case (with the requests it uses and optionally an environment) to a single file, and run it anywhere with chapar-cli test file.yaml. Set environment values with --env-file, --os-env PREFIX or --var key=value, so secrets can come from your CI. On GitHub Actions the installer puts chapar-cli on the PATH for later steps. Exit codes: 0 all passed, 1 a case failed, 2 bad input.
Notes
- Test case files made with the earlier preview of test cases are not read any more; the app says so and they need to be created again.
- Exported test cases do not include proto files; gRPC steps need server reflection or the same proto paths.
Source: github.com
0.7.0
This is the biggest Chapar release so far. The app now runs on a new UI built with Yoga, which replaces the old Gio-based interface. It renders on the GPU (wgpu), starts faster and looks sharper on every display. It also brings a long list of features and fixes that the old UI could not support.
Highlights
New look and feel
- Every screen was rebuilt on Yoga: the sidebar, tabs, request and response panes, settings, dialogs and the command palette.
- All Yoga themes are available, and themes now have their own settings category. Every palette was checked against WCAG 2.1 AA contrast, and the dark theme was adjusted so text and controls are easier to read.
- Scrolling is smoother. Trackpads on macOS now scroll 1:1 with your fingers.
- A failed request now shows the confused Chapar in the response pane with the error below it, instead of a raw error string.
- The header's globe button is replaced by an About dialog that shows the running version.
Tabs
- Tab badges tell open documents apart: the method for requests, ENV for environments and a folder for collections. An unsaved tab shows a filled dot.
- Keyboard shortcuts: ⌘W closes a tab, ⌘⇧] / ⌘⇧[ go to the next or previous tab, ⌘1–⌘8 jump to a tab and ⌘9 goes to the last one.
- ⌘P opens Go to Tab, a searchable list of open tabs.
- Right-click a tab to Close, Close Others, Close to the Right or Left, Close Saved or Close All. When some of those tabs have unsaved changes, Chapar asks once.
- The tab strip scrolls when it is full, and a +N button lists every open tab.
Variables everywhere
- {{variables}} are highlighted in URLs, headers, params, form fields, auth fields, JSON bodies, GraphQL queries and Python scripts. A variable that exists is shown in the info color, and an unknown one (a typo, or a variable from another environment) in the warning color.
- Typing {{ offers completions from the active environment, the built-in dynamic variables (randomUUID4, timeNow, …) and the values the request extracts from its response.
- Hovering over a variable shows where it comes from and its current value. Secret values are never shown.
Secret environment values
- You can mark any environment value as secret. Secret values are encrypted on disk with AES-256-GCM, so environment files are safe to sync.
- The encryption key is kept in your OS secret manager (Keychain, Credential Manager or Secret Service). Where none is available, Chapar asks for a passphrase once per session.
- The new Settings › Security page lets you generate, show, replace or remove the key.
- The environment editor was redesigned with a lock toggle on each row and masked values that you can reveal.
Cookies
- HTTP and GraphQL requests share a cookie jar for each environment, so sessions last across requests and restarts. Cookies set during redirects are handled too.
- The cookie button in the top bar opens a dialog where you can browse, filter, add, edit and clear cookies.
- The response Cookies tab marks each cookie as new, updated, deleted or rejected (with the reason) and lists the cookies sent from the jar.
- Cookie jars are stored in ‹workspace>/.state/cookies/ with a .gitignore, so your session tokens stay out of version control.
Scripting (Python)
- Pre- and post-request scripts now also run for gRPC and GraphQL requests, not only HTTP.
- Scripts can read the resolved request, the full response (timing, cookies, gRPC metadata and trailers) and the environment. chapar.skip() cancels the send.
- Environment values that a pre-request script sets are now saved.
- Script output and test results appear in the request timeline. When a script fails, the error names the line.
- The executor container is now more locked down: it only listens on 127.0.0.1, uses a per-container token, has a read-only filesystem and runs with resource limits.
Source: github.com
Details
- Latest version
- 0.14.1
- Released
- Last checked
- Website
- chapar.rest
- Homebrew cask
- chapar