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

postcli-dev

v1.0.2

Published

PostCLI - Terminal API Request Tester

Readme

🚀 PostCLI-dev

PostCLI is a lightweight yet powerful Postman-like CLI tool for testing APIs directly from your terminal. It supports all major HTTP methods (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS), environment management, endpoint saving, workflow chaining, and history tracking — all with a modern, colorful, and interactive terminal UI.


✨ Key Features

  • Full HTTP support: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
  • Save and reuse endpoints easily
  • Manage environment variables dynamically ({{VAR}} syntax)
  • Track request history and reuse previous calls
  • Save responses for later replay
  • Beautiful terminal UX with ASCII banners, colors, and interactive prompts
  • 100% Node.js-powered — fast and cross-platform

⚙️ Installation

Install PostCLI-dev globally from npm:

npm install -g postcli-dev

Once installed, run:

postcli

to launch the CLI.

PostCLI Documentation

PostCLI is a powerful CLI tool to send HTTP requests, manage endpoints, and handle environment variables similar to Postman.

HTTP Requests

| Command | Description | Example | |---------|-------------|---------| | GET | Send a GET request to a URL or saved endpoint | postcli GET https://jsonplaceholder.typicode.com/posts/1 postcli GET {{BASEURL}}/posts/1 | | POST | Send a POST request with JSON, objects, arrays, or file uploads | postcli POST https://jsonplaceholder.typicode.com/posts postcli POST {{BASEURL}}/posts | | PUT | Send a PUT request with JSON, objects, arrays, or file uploads | postcli PUT https://jsonplaceholder.typicode.com/posts/1 postcli PUT {{BASEURL}}/posts/1 | | PATCH | Send a PATCH request with JSON, objects, arrays, or file uploads | postcli PATCH https://jsonplaceholder.typicode.com/posts/1 postcli PATCH {{BASEURL}}/posts/1 | | DELETE | Send a DELETE request | postcli DELETE https://jsonplaceholder.typicode.com/posts/1 postcli DELETE {{BASEURL}}/posts/1 | | HEAD | Send a HEAD request to get headers only | postcli HEAD https://jsonplaceholder.typicode.com/posts postcli HEAD {{BASEURL}}/posts | | OPTIONS | Send an OPTIONS request | postcli OPTIONS https://jsonplaceholder.typicode.com/posts postcli OPTIONS {{BASEURL}}/posts |


Endpoint Management

You can save, list, and remove named endpoints for reuse.

| Command | Description | Example | |---------|-------------|---------| | save | Save an endpoint with a friendly name and HTTP method | postcli save getPosts GET {{BASEURL}}/posts | | list | List all saved endpoints | postcli list | | remove | Remove a saved endpoint by name | postcli remove getPosts |

Saved endpoints now store both the method and the URL.


Environment Variables

Manage dynamic environment variables with easy {{VAR}} substitution.

| Command | Description | Example | |---------|-------------|---------| | env set | Set or update an environment variable | postcli env set BASEURL https://jsonplaceholder.typicode.com | | env get | Get value of a variable | postcli env get BASEURL | | env list | List all environment variables | postcli env list | | env remove | Remove an environment variable | postcli env remove BASEURL |

You can use environment variables in any request URL:
Example: postcli GET {{BASEURL}}/posts/1


🕒 PostCLI History & Response Commands

This document lists all commands related to history tracking and response management in PostCLI.


History Commands

| Command | Description | |---------|-------------| | postcli history | View all API request history in a color-coded table. | | postcli history use <index> | Reuse a previous request by its index in the history. | | postcli history clear | Clear all stored request history. | | postcli response save <index> | Save the response using history index. | | postcli replay src/responses/auth/login.json | Replay the response. |

Stats and logs Commands

| Command | Description | |---------|-------------| | postcli stats | Show Stats | | postcli logs | Show Logs | | postcli clear | Clear all stored request history and stats. |

| Option | Description | | ------------------- | ------------------------------------------------- | | --help | Show help and available commands | | --version | Display the current CLI version |


Conclusion

postcli-dev is more than just a CLI — it’s your personal assistant for managing and publishing markdown content seamlessly. Whether you're a blogger, developer, or tech writer, postcli-dev simplifies your workflow with automation, clean design, and speed.

It’s built with developers in mind — minimal setup, maximum productivity. So, get started today and bring your words to life straight from the terminal! 🚀