Home

Awesome

ATAC ⚔📩

Rust License: MIT GitHub Release

Demo Animation

Table Of Contents

Description

ATAC is Arguably a Terminal API Client. It is based on well-known clients such as Postman, Insomnia, or even Bruno, but inside your terminal without any specific graphical environment needed.

The philosophy of ATAC is to be free, account-less, and offline for now and forever.

How to install

Packaging status

<a href="https://crates.io/crates/atac"> <img src="https://repology.org/badge/version-for-repo/crates_io/atac.svg" alt="crates.io package" align="right"> </a>

Install with cargo

[!IMPORTANT] First, make sure your rust version is at least 1.78

Simply use:

cargo install atac
<a href="https://archlinux.org/packages/extra/x86_64/atac/"> <img src="https://repology.org/badge/version-for-repo/arch/atac.svg" alt="Arch package" align="right"> </a>

Install from Arch

You can use pacman to install:

pacman -S atac

Install with Homebrew

Simply use:

brew tap julien-cpsn/atac
brew install atac
<a href="https://copr.fedorainfracloud.org/coprs/joxcat/atac/"> <img alt="Fedora copr Release" src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcopr.fedorainfracloud.org%2Fapi_3%2Fpackage%3Fownername%3Djoxcat%26projectname%3Datac%26packagename%3Datac%26with_latest_build%3DTrue&query=%24.builds.latest.source_package.version&style=flat&logo=fedora&logoColor=white&label=Fedora%20copr&color=limegreen" align="right"> </a>

Install from Fedora copr

Simply use:

dnf copr enable joxcat/atac
dnf install atac
<a href="https://github.com/Julien-cpsn/ATAC/releases"> <img alt="GitHub Release" src="https://img.shields.io/github/v/release/julien-cpsn/atac?label=Release&color=45c017" align="right"> </a>

Binary

The binaries from the latest release can be found here

[!IMPORTANT] Remember to run it from a terminal. For example, you can add the binary into your PATH. You won't be able to run it like other graphical applications since it needs CLI arguments.

[!TIP] Note for macOS users. After downloading the binary you may need to run the command sudo xattr -rd com.apple.quarantine ~/bin/atac (modify to reflect the path where atac is located).

Compile by yourself

[!IMPORTANT] First, make sure your rust version is at least 1.76

Simply clone the repository and use:

cargo run
cargo run -- -h

[!TIP] Build the latest release

cargo build --release

Features

Current

FeaturesATACPostmanInsomnia
Manage collections & requests:white_check_mark::white_check_mark::white_check_mark:
HTTP Client:white_check_mark::white_check_mark::white_check_mark:
Methods:white_check_mark::white_check_mark::white_check_mark:
- GET:white_check_mark::white_check_mark::white_check_mark:
- POST:white_check_mark::white_check_mark::white_check_mark:
- PUT:white_check_mark::white_check_mark::white_check_mark:
- PATCH:white_check_mark::white_check_mark::white_check_mark:
- DELETE:white_check_mark::white_check_mark::white_check_mark:
- HEAD:white_check_mark::white_check_mark::white_check_mark:
- OPTIONS:white_check_mark::white_check_mark::white_check_mark:
AuthenticationPartial:white_check_mark::white_check_mark:
- Basic auth:white_check_mark::white_check_mark::white_check_mark:
- Bearer token:white_check_mark::white_check_mark::white_check_mark:
- JWT, Digest, OAuth1-2, AWS:x: :soon::white_check_mark::white_check_mark:
Headers:white_check_mark::white_check_mark::white_check_mark:
Body:white_check_mark::white_check_mark::white_check_mark:
- Multipart form:white_check_mark::white_check_mark::white_check_mark:
- URL Encoded form:white_check_mark::white_check_mark::white_check_mark:
- File:white_check_mark::white_check_mark::white_check_mark:
- Plain text:white_check_mark::white_check_mark::white_check_mark:
- JSON, XML, HTML, Javascript:white_check_mark::white_check_mark::white_check_mark:
Full response:white_check_mark::white_check_mark::white_check_mark:
- Status code:white_check_mark::white_check_mark::white_check_mark:
- Cookies:white_check_mark::white_check_mark::white_check_mark:
- Headers:white_check_mark::white_check_mark::white_check_mark:
- Duration:white_check_mark::white_check_mark::white_check_mark:
Scripting:white_check_mark:Partial:x:
- Pre-request script:white_check_mark::x::x:
- Post-request script:white_check_mark::white_check_mark::x:
Asynchronous requests:white_check_mark::white_check_mark::white_check_mark:
Per-request settings:white_check_mark::white_check_mark::white_check_mark:
- Use proxy:white_check_mark::white_check_mark::white_check_mark:
- Allow redirects:white_check_mark::white_check_mark::white_check_mark:
- Store cookies:white_check_mark::white_check_mark::white_check_mark:
Export to other languages:x: :soon::white_check_mark::x:
WebSocket Client:x: :soon::white_check_mark::white_check_mark:
GraphQL:x: :soon::white_check_mark::white_check_mark:
gRPC:x: :soon::white_check_mark::white_check_mark:
MQTT:x: :soon::white_check_mark::x:
Free:white_check_mark:DependsDepends
Lightweight, fast and efficient:white_check_mark::x::x:
Data storageYour own committable, readable and versioned files (JSON or YAML)Tied to your accountTied to your account
Offline:white_check_mark::x::x:
Real-time collaboration:x: (not planned):white_check_mark::white_check_mark:
Environment files and variables:white_check_mark: (committable, readable and versioned):white_check_mark::white_check_mark:
View options:white_check_mark::white_check_mark::white_check_mark:
Global configuration file:white_check_mark::white_check_mark::white_check_mark:
- HTTP/HTTPS Proxy:white_check_mark::white_check_mark::white_check_mark:
- Disable CORS:white_check_mark::x::x:
- Toggle syntax highlighting:white_check_mark::x::x:
Postman v2.1.0 import:white_check_mark::white_check_mark::white_check_mark:
OpenAPI import:x: :soon::white_check_mark::white_check_mark:

TODO v1.0.0

TODO v2.0.0

Ideas (will think about it later)

Documentation

[!NOTE] Documentation will soon be published in the wiki section

Others

Vim key-bindings

You can read more about it here: https://github.com/Julien-cpsn/ATAC/releases/tag/v0.14.0

NeoVim integration

Thanks to @NachoNievaG you can have an ATAC floating window inside your nvim https://github.com/NachoNievaG/atac.nvim

Technical precisions

Tested on

(List from here)

Dependencies

LibraryVersionReason
reqwest & reqwest cookie store0.12.5 & 0.8.0Send requests
ratatui0.27.0Terminal UI framework
crokey1.0Used to parse, use key bindings files and some utilities
tui-big-text0.4.5Display big texts. Only used for displaying ATAC in the homepage.
tui-tree-widget0.21.0Display tree-like lists. Used for displaying the collections.
My fork of tui-textarea0.4.1Text area that handle a lot of features. Used for editing request body.
throbber-widgets-tui0.6.0Display loading UI elements. Used when request is pending.
ratatui-image1.0.1Display response images.
image0.25.1Decode images.
syntect5.2.0Syntax highlighting
serde (serde_json, serde-yaml)1.0.203 (1.0.118, 0.9.34)Serialize & Deserialize application data into files
jsonxf0.1.1Pretty print JSON
toml0.8.14Serialize & Deserialize application config files
boa_engine0.18.0Create Javascript runtimes. Used for pre and post request scripts
My fork of postman_collection0.2.3Deserialize Postman collection files
curl-parser0.3.1Parse cURL request files
clap4.5.8Command Line Argument Parser
dirs5.0.1Use system files
arboard3.4.0Copy response body to clipboard
tokio1.38.0Handle asynchronous requests
parking_lot0.12.3Smaller, faster and more flexible implementation of RwLock and Mutex. Used everywhere.
strum0.26.3Enum facilities
lazy_static1.5.0Allows for more flexible constants. Mainly used for accessing CLI arguments everywhere
nestify0.3.3Used to nest struct definitions
walkdir2.5.0Recursively retrieve files
snailquote0.3.1Unescape string
indexmap2.2.6Ordered hashmap. Used in environments to preserve files' values order
base640.22.1Encode auth.
regex1.10.5Regex. Using for parsing requests URL

Binary size

The binary file size goes from ~4.5 MB to ~7 MB depending on the platform. I try to keep it as small as possible.

Contributors

Maintainers

Packagers

Star history

<a href="https://star-history.com/#julien-cpsn/atac&Date"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=julien-cpsn/atac&type=Date&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=julien-cpsn/atac&type=Date" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=julien-cpsn/atac&type=Date" /> </picture> </a>

License

The MIT license for this project can be seen here