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

@syckron/wayapi-cli

v1.4.2

Published

Wayapi CLI - Elegant API Tester via Terminal

Downloads

1,579

Readme

🚀 WayAPI CLI

WayAPI CLI is a minimalist and efficient API client that runs directly in your terminal. Built with React and Ink, it provides an interactive interface for making HTTP requests without leaving the command line.

WayAPI CLI in action

🇧🇷 Versão em Português


✨ Features

  • 🎯 Interactive Interface
    Interactive interface based on React rendered in the terminal via Ink.

  • 🌐 HTTP Methods Support
    GET, POST, PUT, PATCH, and DELETE with quick selection.

  • 📝 Body Editor
    Dedicated field for sending JSON in write methods.

  • Smart Auto-Fill
    When selecting PUT or PATCH and entering a URL, the CLI automatically attempts to fetch current data to facilitate editing.

  • 📊 Real-Time Feedback
    Instant visualization of:

    • Status Code
    • Response time (ms)
    • Headers
    • Response body
  • Real-Time JSON Validation
    The editor automatically validates the typed JSON after a few seconds of inactivity:

    • Visual indication (green/red border)
    • Status message (ok or error)
    • Immediate feedback for syntax correction

📦 Installation

Via NPM / PNPM (Recommended)

Install globally and use directly in the terminal:

pnpm add -g @syckron/wayapi-cli

or with npm:

npm install -g @syckron/wayapi-cli

▶️ Usage

After installation, just run:

wayapi

⌨️ Commands and Shortcuts

| Key | Action | |------|------| | Tab | Switch between fields | | Esc | Close the application | | 1 | View response Body | | 2 | View Headers | | G | Select GET method | | P | Select POST method | | U | Select PUT method | | A | Select PATCH method | | D | Select DELETE method | | Enter | Execute request (on URL field) |


🛠️ Technologies Used

  • React & Ink → Terminal interface
  • Axios → HTTP requests
  • TypeScript → Static typing

📁 Project Structure

wayapi-cli/
├── src/
│   ├── components/
│   │   ├── Content.tsx        # Results display (Body/Headers)
│   │   ├── EditForm.tsx       # Input field for JSON/Body
│   │   ├── JsonViewer.tsx     # JSON colors
│   │   ├── Infos.tsx          # Status and Performance display
│   │   ├── MethodSelector.tsx # HTTP verb selector
│   │   └── RequestForm.tsx    # URL input field
│   ├── services/
│   │   └── api.ts             # Axios configuration
│   ├── utils/
│   │   └── typeGuards.ts      # Type validators and JSON
│   ├── types/
│   │   └── types.ts           # Global interfaces
│   └── app.tsx                # Main orchestrator

🧪 Development

git clone https://github.com/syckron/wayapi-cli.git
cd wayapi-cli
pnpm install
pnpm dev

🏗️ Build

pnpm build

📝 Implementation Notes

  • Debounce on URL input for pre-loading in PUT/PATCH
  • Real-time JSON validation with visual feedback
  • Network and parsing error handling

💡 Project Idea

WayAPI CLI was designed for developers who want to test APIs quickly without leaving the terminal — with a fluid UX and without depending on heavy tools.


🔗 Links


📌 License

Apache-2.0