npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

awesome-http-cli

v1.1.1

Published

Interactive HTTP client for the command line

Readme

awesome-http-cli 🚀

An interactive, colorful command-line HTTP client built with Node.js. Perfect for testing APIs, making HTTP requests, and exploring web services directly from your terminal.

Features ✨

  • Interactive Mode: Step-by-step prompts to build your HTTP request
  • Multiple HTTP Methods: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS
  • Header Management:
    • Select from common headers with checkboxes
    • Add custom headers in JSON format
  • Query Parameters: Easy parameter input with key=value&key2=value2 format
  • Request Body: Support for JSON and text bodies with validation
  • Colorful Output: Beautiful, colored response formatting
  • Response Analysis:
    • Status codes with color coding
    • Response headers table
    • Formatted response body
    • Response time tracking
  • Quick Mode: Command-line arguments for fast requests
  • Error Handling: Comprehensive error reporting

Installation

npm i -g awesome-http-cli

Help Menu

awesome-http-cli --help

Screenshot 2025-07-04 at 19 07 05

awesome-http-cli quick --help

Screenshot 2025-07-04 at 19 07 25

Local Development & Installation 📦

  1. Clone or download the files

  2. Install dependencies:

    npm install
  3. Make it globally available (optional):

    npm link

Dependencies to Install 📋

Run this command to install all required dependencies:

npm install axios chalk cli-table3 commander figlet inquirer jsonpath-plus ora

Development Dependencies (optional):

npm install --save-dev nodemon

Usage 🎯

Interactive Mode (Default)

Simply run the tool to start interactive mode:

node index.js

Or if globally installed:

awesome-http-cli start

Quick Mode

For quick requests without prompts:

# Simple GET request
awesome-http-cli quick -u https://api.github.com/users/octocat

# POST request with data
awesome-http-cli quick -u https://httpbin.org/post -m POST -d '{"key":"value"}' -H '{"Content-Type":"application/json"}'

# With custom headers
awesome-http-cli quick -u https://api.example.com -H '{"Authorization":"Bearer token123","X-API-Key":"abc123"}'

Quick Mode Options

  • -u, --url <url>: Request URL (required)
  • -m, --method <method>: HTTP method (default: GET)
  • -H, --headers <headers>: Headers in JSON format
  • -d, --data <data>: Request body (JSON or text)

Interactive Mode Guide 📚

  1. URL Input: Enter the full URL including protocol (http:// or https://)
  2. Method Selection: Choose from GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS
  3. Query Parameters: Format as key1=value1&key2=value2 (optional)
  4. Common Headers: Select from predefined headers using checkboxes
  5. Custom Headers: Add custom headers in JSON format (optional)
  6. Request Body: Enter JSON or text data for POST/PUT/PATCH requests

Examples 🔧

REST API Testing

# Test a REST API
URL: https://jsonplaceholder.typicode.com/posts/1
Method: GET

# Create a new post
URL: https://jsonplaceholder.typicode.com/posts
Method: POST
Body: {"title":"My Post","body":"This is my post content","userId":1}
Headers: Content-Type: application/json

API with Authentication

URL: https://api.github.com/user
Method: GET
Headers: {"Authorization": "token YOUR_GITHUB_TOKEN"}

Form Data Submission

URL: https://httpbin.org/post
Method: POST
Body: name=John&[email protected]
Headers: Content-Type: application/x-www-form-urlencoded

Response Display 📊

The tool displays responses in a structured format:

  • Response Info Table: Status, response time, content length/type
  • Headers Table: All response headers in a formatted table
  • Response Body: Formatted JSON or raw text
  • Status Indicators:
    • ✅ Green for 2xx (success)
    • ⚠️ Yellow for 4xx (client errors)
    • ❌ Red for 5xx (server errors)

Available Scripts 📝

  • npm start: Run the application
  • npm run dev: Run with nodemon for development
  • node index.js: Direct execution

Requirements 📋

  • Node.js 14.0.0 or higher
  • npm or yarn package manager

Features in Detail 🔍

Header Management

  • Common Headers: Pre-defined headers for quick selection
  • Custom Headers: Add any custom headers in JSON format
  • Automatic Content-Type: Automatically sets content-type for JSON bodies

Request Body Handling

  • JSON Validation: Automatic JSON parsing and validation
  • Text Support: Plain text bodies for any content type
  • Editor Support: Multi-line input for complex JSON

Error Handling

  • Network Errors: Connection timeouts, DNS failures
  • HTTP Errors: 4xx and 5xx status codes with details
  • Input Validation: URL validation, JSON parsing errors

Contributing 🤝

Feel free to submit issues and enhancement requests!

License 📄

MIT License - feel free to use this tool for any purpose.