toss-api-0.1.1 is not a library.
toss
A Vim-inspired, high-performance TUI and CLI API client built with Rust and Ratatui.
toss is designed for developers who want a fast, keyboard-driven workflow for exploring and testing APIs without leaving the terminal. It combines the visual power of an API client with the efficiency of a Vim-like interface.
π Key Features
- β‘ Fast & Lightweight: Built with Rust for near-instant startup and minimal resource usage.
- β¨οΈ Vim-Inspired Navigation: Navigate through collections, requests, and environments using familiar
h/j/k/lkeys. - π Smart Project Parsing: Automatically extract API endpoints directly from your codebase (Express, FastAPI, Spring, etc.).
- π§ͺ Advanced REST Client: Support for Params, Headers, Auth (Bearer, Basic, API Key), and Body (JSON, Form Data, etc.).
- π Collection Management: Organize requests into folders and subfolders. Import directly from Postman.
- π Environment Variables: Context-aware variables with masking support for sensitive data.
- π οΈ CLI & TUI: Switch seamlessly between a full TUI dashboard and quick CLI commands.
- π¨ Visual Polish: LazyVim-style mode indicators and color-coded HTTP methods.
π¦ Installation
You can install toss using cargo, the Rust package manager.
From Crates.io (Recommended)
From GitHub
From Source
Note: Ensure you have the Rust toolchain installed from rustup.rs.
π Quickstart
- Launch the TUI: Simply run
tossin your terminal. - Import a Project: Press
:to enter command mode and type:parse .to extract APIs from the current directory. - Navigate: Use
j/kto move,Enterto select/edit, andTabto switch panels. - Send a Request: Press
Ctrl + sor navigate to the [ Send ] button and pressEnter. - Help: Press
?at any time to see the full list of shortcuts and command mode actions.
ποΈ Supported Frameworks (for Smart Parsing)
Toss can intelligently detect and extract endpoints from the following frameworks:
- Node.js: Express.js, Next.js
- Python: FastAPI, Flask, Django
- Java/Kotlin: Spring Boot, Quarkus
- PHP: Laravel
- Ruby: Ruby on Rails
- C#: ASP.NET Core
- Go: Standard library / Gin-style patterns
π οΈ CLI Mode
For quick actions without entering the UI:
toss send GET https://api.example.com/userstoss run "My Collection" "Get User"toss collections listtoss env show "My Collection"
Run toss --help for the full command list.
πΊοΈ Roadmap
- GraphQL Support (with Schema auto-fetching)
- Scripting (Pre-request & Post-response JavaScript)
- Mass API Testing & Results Visualization
- More Auth Methods (OAuth2, Digest)
- Export to Postman/Swagger
β€οΈ Tips...
toss is and will always be completely free and open source. If you find it useful, consider buying me a coffee!
Created with β€οΈ by Parth Gajjar