Skip to content

Installation

Chapar is released for macOS (Apple Silicon and Intel), Linux (amd64 and arm64) and Windows (amd64). Every release is published on the GitHub Releases page.

PlatformFileNotes
macOS, Apple Siliconchapar-macos-<version>-arm64.dmgSigned and notarized
macOS, Intelchapar-macos-<version>-amd64.dmgSigned and notarized
Linux, x86-64chapar-linux-<version>-amd64.tar.xz
Linux, ARM64chapar-linux-<version>-arm64.tar.xz
Windows, x86-64chapar-windows-<version>-amd64.zipWindows on ARM runs it through emulation

macOS

Homebrew is the easiest way to install and update Chapar:

brew tap chapar-rest/chapar
brew install --cask chapar

To update to the latest release:

brew upgrade --cask chapar

Windows

Download chapar-windows-<version>-amd64.zip from the latest release, extract it and run chapar.exe.

There is no 32-bit Windows build. The GPU library Chapar draws with (wgpu) has no 32-bit Windows version.

Linux

Download the tar.xz archive for your CPU from the latest release and extract it:

tar -xJf chapar-linux-v0.9.0-amd64.tar.xz
./chapar

Arch Linux (AUR)

On Arch-based distributions you can install the chapar-bin package with your AUR helper:

yay -S chapar-bin

The AUR package is maintained by a community contributor and may lag behind the latest release.

Build from source

Chapar is written in Go. Its UI toolkit, Yoga, renders through GLFW and WebGPU, so building needs CGO and a C compiler:

OSWhat to install
macOSXcode Command Line Tools: xcode-select --install
Debian / Ubuntusudo apt install gcc libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxxf86vm-dev libgl1-mesa-dev
WindowsA MinGW-w64 GCC on your PATH, for example from MSYS2

Then clone and build:

git clone https://github.com/chapar-rest/chapar.git
cd chapar
go build -o chapar .
./chapar

Dependencies are vendored. If you change them, run make vendor instead of go mod vendor: the script also copies C sources that go mod vendor leaves out.

To build the same packages the releases ship (DMG, tar.xz, zip), install the Yoga CLI with make install_deps and run yoga package:

yoga package -os darwin -arch arm64 -version v0.9.0   # dist/darwin/*.dmg
yoga package -os linux -version v0.9.0                # dist/linux/*.tar.xz
yoga package -os windows -version v0.9.0              # dist/windows/*.zip

Next steps

  • Quick Start: send your first requests to the free mock server.
  • Python Scripting: turn on scripting if you want pre and post-request scripts. It needs Docker.