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

apexio

v1.0.0

Published

Tiny HTTP client for Node.js.

Readme

Features

  • 🚀 Lightweight and fast HTTP client for Node.js
  • 💪 Full TypeScript support
  • 🔥 Promise based
  • ✨ Modern and intuitive API
  • 🛡️ Automatic transforms for JSON data
  • 🔌 Configurable request and response interceptors
  • 📦 Zero dependencies

Installation

$ npm install apexio

Basic Usage

import { Apexio } from 'apexio'

const apexio = new Apexio({
  baseURL: 'https://api.example.com'
})

// Make a GET request
apexio
  .get('/users')
  .then((response) => {
    console.log(response.data)
  })
  .catch((error) => {
    console.error(error)
  })

// Make a POST request with JSON data
apexio.post('/users', {
  name: 'John',
  email: '[email protected]'
})

API

Request Methods

apexio.get<T = any>(url: string, options?: ApexioRequestOptions): Promise<ApexioResponse<T>>
apexio.post<T = any>(url: string, data?: any, options?: ApexioRequestOptions): Promise<ApexioResponse<T>>
apexio.put<T = any>(url: string, data?: any, options?: ApexioRequestOptions): Promise<ApexioResponse<T>>
apexio.delete<T = any>(url: string, options?: ApexioRequestOptions): Promise<ApexioResponse<T>>
apexio.head<T = any>(url: string, options?: ApexioRequestOptions): Promise<ApexioResponse<T>>
apexio.options<T = any>(url: string, options?: ApexioRequestOptions): Promise<ApexioResponse<T>>

Request Configuration

{
  // Base URL for the request
  baseURL?: string

  // Request headers
  headers?: {
    [key: string]: string
  }

  // URL parameters to be appended to the URL
  params?: any

  // Request timeout in milliseconds
  timeout?: number

  // Response type: 'json' | 'text' | 'stream'
  responseType?: ApexioResponseType
}

Response Structure

{
  // Response data
  data: T

  // HTTP status code
  status: number

  // HTTP status message
  statusText: string

  // Response headers
  headers: IncomingHttpHeaders

  // Request configuration used
  config: ApexioRequestConfig
}

Request Data Types

JSON Data

apexio.post('/api/users', {
  name: 'John',
  age: 30
})

URL Search Params

const params = new URLSearchParams()
params.append('name', 'John')
params.append('age', '30')

apexio.post('/api/users', params)

Form Data

import FormData from 'form-data'
import fs from 'node:fs'

const form = new FormData()
form.append('file', fs.createReadStream('path/to/file.txt'))
form.append('field', 'value')

apexio.post('/api/upload', form)

Stream Data

const stream = fs.createReadStream('path/to/file')
apexio.post('/api/upload', stream)

Interceptors

// Request interceptor
apexio.interceptors.request.use(
  (config) => {
    // Modify request config
    config.headers['Authorization'] = 'Bearer token'
    return config
  },
  (error) => {
    return Promise.reject(error)
  }
)

// Response interceptor
apexio.interceptors.response.use(
  (response) => {
    // Handle response data
    return response
  },
  (error) => {
    return Promise.reject(error)
  }
)

Build

$ pnpm build

Test

$ pnpm test

License

MIT