Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple API client (postman like) in your terminal

License

NotificationsYou must be signed in to change notification settings

Julien-cpsn/ATAC

Repository files navigation

RustLicense: MITGitHub Release

Demo Animation

Table Of Contents

Description

ATAC isArguably aTerminalAPIClient.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

crates.io package

Install with cargo

Important

First, make sure your rust version is at least 1.82

Simply use:

cargo install atac --locked
Arch package

Install from Arch

You can usepacman to install:

pacman -S atac
Homebrew package

Install with Homebrew

Simply use:

brew install atac
Scoop package

Install with Scoop

Simply use:

scoop install atac
Fedora copr Release

Install from Fedora copr

Simply use:

dnf coprenable joxcat/atacdnf install atac
Docker Image Version

Docker package

Pull the image fromhttps://hub.docker.com/r/juliencaposiena/atac

GitHub Release

Binary

The binaries from the latest release can be foundhere

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 formacOS users. After downloading the binary you may need to run the commandsudo xattr -rd com.apple.quarantine ~/bin/atac (modify to reflect the path whereatac is located).

Compile by yourself

Important

First, make sure your rust version is at least 1.82

Simply clone the repository and use:

cargo runcargo run -- -h

Tip

Build the latest release

cargo build --release

Features

Current

FeaturesATACPostmanInsomnia
Manage collections & requests
HTTP Client
Methods
- GET
- POST
- PUT
- PATCH
- DELETE
- OPTIONS
- HEAD
- TRACE
- CONNECT
AuthenticationPartial
- Basic auth
- Bearer token
- JWT, Digest, OAuth1-2, AWS❌ 🔜
Headers
Body
- Multipart form
- URL Encoded form
- File
- Plain text
- JSON, XML, HTML, Javascript
Full response
- Status code
- Cookies
- Headers
- Duration
ScriptingPartial
- Pre-request script
- Post-request script
Asynchronous requests
Per-request settings
- Use proxy
- Allow redirects
- Store cookies
Export to other languages (HTTP, cURL, PHP Guzzle, NodeJS Axios, Rust Reqwest)
WebSocket Client
Message
- Text
- Binary
- Ping
- Pong
- Close
GraphQL❌ 🔜
gRPC❌ 🔜
MQTT❌ 🔜
FreeDependsDepends
Lightweight, fast and efficient
Data storageYour own committable, readable, versioned and retro-compatible files (JSON or YAML)Tied to your accountTied to your account
Offline
Real-time collaboration❌ (not planned)
Full command line usagePartial
Environment files and variables✅ (committable, readable and versioned)
View options
Global configuration file
- HTTP/HTTPS Proxy
- Disable CORS
- Toggle syntax highlighting
Import from other file formats
- Postman v2.1.0 and Postman environment import✅ / ❌
- OpenAPI import✅ (AI generated, prone to bugs)
- cURL import
Themes
Remappable key bindings

TODO v1.0.0

  • To add

    • Individual request documentation in the TUI (markdown)
    • Insomnia import
  • To improve

    • Editing cookies
    • Request body syntax highlighting
    • Manage multipart Content-type header (auto-generated for now)seanmonstar/reqwest#2259

TODO v2.0.0

  • To add

    • Maybe GraphQL requests
    • Maybe MQTT requests
    • Maybe gRPC requests
  • To improve

    • Auto-completion on env file variables

Ideas (will think about it later)

  • Base URL property and authorization on collections
  • VScode plugin to see and send requests

Documentation

Here is the documentation:https://atac.julien-cpsn.com/

If you think something is missing, please contribute!

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 nvimhttps://github.com/NachoNievaG/atac.nvim

Themes

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

Technical precisions

Tested on

  • Console Host
    • Windows 11 (Pro)
    • WSL2 Debian 12
    • Windows 10 (Pro)
    • Windows 8.1 (N)
  • Ubuntu Desktop Terminal
    • Ubuntu 23.04 64-bit
    • Ubuntu 17.10
    • Pop!_OS 20.04
  • (Arch, Manjaro) KDE Konsole
  • (Arch, NixOS) Kitty
  • Linux Mint
  • (OpenSuse) Alacritty
  • (Chrome OS) Crostini
  • Apple
    • macOS Monterey 12.7.1 (Intel-Chip)
    • macOS Sonama 14.4 (M1 Max, Apple Silicon-Chip)

(List fromhere)

Dependencies

Category / LibraryVersionComment
Request
reqwest0.12.23Send requests
reqwest-middleware0.4.2Wrapper around reqwest to allow for client middleware chains
reqwest-websocket0.5.1Wrapper around reqwest to handle web-socket requests
TUI
ratatui0.29.0Terminal UI framework
crokey1.1.2Used to parse, use key bindings files and some utilities
tui-big-text0.7.1Display big texts. Only used for displaying ATAC in the homepage.
tui-tree-widget0.23.1Display tree-like lists. Used for displaying the collections.
tui-textarea0.7.0Text area that handle a lot of features. Used for editing request body.
throbber-widgets-tui0.8.0Display loading UI elements. Used when request is pending.
ratatui-image8.0.1Display response images.
image0.25.8Decode images.
Main functionalities
syntect5.3.0Syntax highlighting
serde1.0.219Serialize & Deserialize application data into files
jsonxf1.1.1Pretty print JSON
toml0.9.5Serialize & Deserialize application config files
boa_engine0.20.0Create Javascript runtimes. Used for pre and post request scripts
parse_postman_collection0.2.3Deserialize Postman collection files
curl-parser0.6.0Parse cURL request files
openapiv32.2.0Parse OpenAPI spec files
clap4.5Command Line Argument Parser
directories6.0.0Use system files
arboard3.6.1Copy response body to clipboard
Async
tokio1.47.1Handle asynchronous requests
parking_lot0.12.4Smaller, faster and more flexible implementation of RwLock and Mutex. Used everywhere.
Utils
strum0.27.2Enum 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.11.0Ordered hashmap. Used in environments to preserve files' values order
rayon1.11.0Allows the usage of multiple threads in for loops
thiserror2.0.16Create custom errors
anyhow1.0.99Result that can contain any error
clap-verbosity-flag3.0.4Add verbosity flag to the CLI
clap_complete4.5Generate completion file
clap_mangen0.2Generate man pages
regex1.11.2Regex. Using for parsing requests URL
chrono0.4.41Time utils
uuid1.18.0UUID generator
base640.22.1Decode base64 strings
textwrap0.16.2Wrap text to max length
Tracing
tracing0.1.41Log events
tracing-subscriber0.3.20Utilities for implementing and composing tracing subscribers
tracing-log0.2.0Log crate compatibility for tracing
reqwest-tracing0.5.8Opentracing middleware implementation for reqwest-middleware

Binary size

The binary file size goes from ~5 MB to ~15 MB depending on the platform. I try to keep it as small as possible, unfortunately for me, I bundle a Javascript runtime.

Contributors

Maintainers

Packagers

Star history

Star History Chart

License

The MIT license for this project can be seenhere

About

A simple API client (postman like) in your terminal

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published

    [8]ページ先頭

    ©2009-2025 Movatter.jp