https://github.com/pranav-cs-1/nexus
A terminal-based HTTP client for API testing
https://github.com/pranav-cs-1/nexus
api api-development api-testing developer-tools http-client ratatui rust tui
Last synced: 14 days ago
JSON representation
A terminal-based HTTP client for API testing
- Host: GitHub
- URL: https://github.com/pranav-cs-1/nexus
- Owner: pranav-cs-1
- License: mit
- Created: 2025-11-24T02:40:50.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-12-22T03:19:54.000Z (about 1 month ago)
- Last Synced: 2025-12-23T14:50:59.795Z (about 1 month ago)
- Topics: api, api-development, api-testing, developer-tools, http-client, ratatui, rust, tui
- Language: Rust
- Homepage:
- Size: 42.2 MB
- Stars: 67
- Watchers: 1
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nexus
A terminal-based HTTP client for API testing built in Rust.
Nexus provides a keyboard-driven interface to help you manage and execute API calls efficiently. All your collections, requests, and configurations are automatically persisted using [sled](https://github.com/spacejam/sled), an embedded database, so your work is saved between sessions.
## Demo
## Features
- **Full HTTP Method Support** - GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
- **Request Organization** - Group requests into collections for easy management
- **Response Viewer** - View formatted responses with status codes and headers
- **Complete Request Editing** - Edit URL, method, headers, query parameters, body, and authentication
- **Persistent Storage** - All data automatically saved using sled embedded database
- **Keyboard-Driven** - Vim-like navigation and shortcuts for maximum efficiency
- **Built-in Examples** - Sample requests included to help you get started quickly
- **Import Collections** - Import Postman Collections (v2.1) with full support for authentication, headers, and nested folders
- **Export Support** - Export collections as JSON or individual requests as curl commands
## Installation
### From crates.io
```bash
cargo install nexus-tui
```
### From source
```bash
cargo install --path .
```
## Usage
```bash
nexus
```
On first launch, you'll be greeted with a welcome screen that provides an overview and quick start guide. Press any key to dismiss it and start using Nexus. Check out the **Example Collection** to see sample requests demonstrating the various features.
### Importing Collections
Nexus supports importing Postman Collections (v2.1 format):
- **Import Collection**: Press `i` to open the import dialog. Enter the path to your Postman collection JSON file (supports Tab autocomplete). Press Enter to import. The collection and all its requests will be added to Nexus with support for:
- Nested folders (flattened with path prefixes)
- All HTTP methods
- Headers and query parameters
- Request bodies (raw, urlencoded, formdata)
- Authentication (Bearer, Basic, API Key)
### Exporting Collections
Nexus supports exporting your collections and requests:
- **Collection Export**: Press `o` to open the export menu. Use arrow keys to select a collection, then press Enter to export it as JSON. The file will be saved in the `exports/` directory with a timestamp.
- **curl Export**: Press `s` to open the curl export menu. Use arrow keys to select a collection, press Enter, then select a specific request. The curl command is saved as a shell script in the `exports/` directory and also copied to your clipboard.
### Keyboard Shortcuts
**Navigation:**
- `Tab` / `Shift+Tab` - Switch between panels
- `j` / `k` or `↓` / `↑` - Navigate lists and move cursor
- `t` - Switch editor tabs (Params, Headers, Body, Auth)
**Actions:**
- `Enter` - Send the current request
- `e` - Edit request (in Request Editor panel)
- `Esc` - Save and exit edit mode
- `n` - Create new request
- `d` - Delete current request
- `y` - Duplicate current request
- `c` - Create new collection (in Collections panel)
- `x` - Delete collection (in Collections panel)
- `i` - Import Postman collection
- `o` - Open collection export menu
- `s` - Open curl export menu
**Editing (when in edit mode):**
- Arrow keys - Navigate text fields
- `Tab` - Switch between fields
- `+` / `-` - Add/remove params or headers
- `Ctrl+U` - Clear current field
**Other:**
- `?` - Toggle help screen
- `q` / `Ctrl+C` - Quit
## Building
```bash
cargo build --release
```
## License
MIT