Skip to content
aghorbani84Public

About

Local-first desktop API client with OS-keychain secrets, built with Tauri 2, Rust and SvelteKit.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Chapar icon

Chapar

A local-first, security-focused desktop API client — built with Tauri 2, Rust and SvelteKit.

CI Latest release Tauri 2 Rust Svelte 5 MIT License


Overview

Chapar (چاپار, Persian for "courier") is a desktop HTTP client in the spirit of Postman or Insomnia, designed to keep everything on your machine. Requests are executed by the Rust backend — not the WebView — so there are no CORS limits, and secrets live in your operating system's keychain instead of in app storage.

Features

  • Collections & requests — organize saved requests into named collections
  • All common methods — GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
  • Request bodies — none, JSON, text, form URL-encoded, or raw
  • Environments — reusable {{variable}} placeholders with an active environment
  • Secret vault — values stored in the OS keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service); only metadata is kept in SQLite
  • Secret injection — reference secrets as {{secret:id}} (for example in an Authorization header); only secrets attached to the request are allowed, and values are resolved in Rust and never returned to the UI
  • Pre-flight validation — requests with unresolved or unauthorized variables are blocked before sending
  • Timeouts & redirects — per-request timeout, follow/no-follow, and a redirect limit (default 10)
  • Response inspector — JSON, text, or binary (base64) bodies shown in Monaco Editor
  • History — the most recent 200 requests are kept locally
  • Export / import — back up and restore your workspace as a bundle; secret values are never exported

Tech Stack

Layer Technology
Desktop shell Tauri 2
Backend Rust · reqwest (HTTP) · rusqlite (bundled SQLite) · keyring (OS keychain)
Frontend SvelteKit (static SPA) · Svelte 5 · TypeScript
Styling Tailwind CSS 4
Editor Monaco Editor
Icons Lucide

Getting Started

Prerequisites

Run in development

git clone https://github.com/aghorbani84/Chapar.git
cd Chapar
npm install
npm run tauri dev        # starts the Vite dev server on port 1420 and opens the app

Build

npm run tauri build      # native bundles for your platform

Pre-built Linux packages (.deb, .rpm) are attached to GitHub Releases.

Checks

npm run check                         # svelte-check / TypeScript
cd src-tauri
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test

Using Variables and Secrets

# Environment variable
base_url = http://localhost:8080

# Request URL
{{base_url}}/users        →  http://localhost:8080/users

# Secret reference in a header
Authorization: Bearer {{secret:api-key}}

Missing variables block the request instead of sending a half-resolved URL.

Project Structure

Chapar/
├── src/                     # SvelteKit frontend
│   ├── lib/components/      # Request/response panes, sidebar, env & secret panels
│   ├── lib/stores/          # Svelte stores (collections, history, environments…)
│   ├── lib/services/        # Typed wrappers around Tauri commands
│   └── routes/              # App entry page
├── src-tauri/               # Rust backend
│   └── src/
│       ├── commands/        # Tauri command handlers
│       ├── http.rs          # Request execution (reqwest)
│       ├── env.rs           # Variable & secret resolution
│       ├── vault.rs         # OS keychain access
│       └── db.rs            # SQLite persistence
├── docs/                    # Standalone HTML docs
└── .github/workflows/       # CI and release builds

Security

See SECURITY.md for the security policy and how to report issues.

Contributing

See CONTRIBUTING.md.

License

Released under the MIT License.

Author

Built by @aghorbani84.

About

Local-first desktop API client with OS-keychain secrets, built with Tauri 2, Rust and SvelteKit.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages