httsnap
v1.0.0
Published
A fast, local-first HTTP client for the terminal. No login, no cloud, no bloat.
Maintainers
Readme
apitool
A fast, local-first HTTP client for the terminal. No login. No cloud. No bloat.
Install
npx apitool GET https://api.example.com/usersOr install globally:
npm install -g apitoolUsage
apitool <METHOD> <URL> [options]
apitool run <name>
apitool list
apitool delete <name>Examples
# Send a GET request
apitool GET https://jsonplaceholder.typicode.com/posts/1
# POST with a JSON body
apitool POST https://api.example.com/users --body '{"name":"Alice","role":"admin"}'
# Add custom headers
apitool GET https://api.example.com/me --header Authorization=Bearer\ token123
# Save a request for later
apitool POST https://api.example.com/users --body '{"name":"Alice"}' --save create-user
# Replay a saved request
apitool run create-user
# See all saved requests
apitool list
# Delete a saved request
apitool delete create-userHow saving works
Requests are saved to .apitool.json in your current directory. This means:
- Each project can have its own saved requests
- You can commit
.apitool.jsonto share requests with your team - It's plain JSON — edit it by hand if you want
Requirements
Node.js 18 or later (uses native fetch — no dependencies).
License
MIT
