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 🙏

© 2025 – Pkg Stats / Ryan Hefner

recker

v1.0.26

Published

AI & DevX focused HTTP client for Node.js 18+

Downloads

7,604

Readme

⚡ Recker

The Network SDK for the AI Era

Zero-config HTTP. Multi-protocol support. AI-native streaming. Observable to the millisecond.

npm version npm downloads TypeScript Node.js Coverage License

Documentation · API Reference · Examples


Install

npm install recker

Quick Start

import { get, post, whois, dns } from 'recker';
import { rdap, supportsRDAP } from 'recker/utils/rdap';

// HTTP - zero config
const users = await get('https://api.example.com/users').json();
await post('https://api.example.com/users', { json: { name: 'John' } });

// WHOIS
const info = await whois('github.com');

// RDAP (modern WHOIS)
if (supportsRDAP('com')) {
  const data = await rdap(client, 'google.com');
  console.log(data.status, data.events);
}

// DNS
const ips = await dns('google.com');

Unified Namespace

import { recker } from 'recker';

// Everything in one place
await recker.get('https://api.example.com/users').json();
await recker.whois('github.com');
await recker.dns('google.com');
await recker.ai.chat('Hello!');

const socket = recker.ws('wss://api.example.com/ws');

With Configuration

import { createClient } from 'recker';

const api = createClient({
  baseUrl: 'https://api.example.com',
  headers: { 'Authorization': 'Bearer token' },
  timeout: 10000,
  retry: { maxAttempts: 3 }
});

const user = await api.get('/users/:id', { params: { id: '123' } }).json();

Mini Client (Maximum Performance)

Need raw speed? Use recker-mini for ~2% overhead vs raw undici:

import { createMiniClient, miniGet } from 'recker/mini';

// Client instance
const fast = createMiniClient({ baseUrl: 'https://api.example.com' });
const data = await fast.get('/users').then(r => r.json());

// Or direct function (even faster)
const users = await miniGet('https://api.example.com/users').then(r => r.json());

| Mode | Speed | Features | |------|-------|----------| | recker-mini | ~146µs (2% overhead) | Base URL, headers, JSON | | recker | ~265µs (86% overhead) | Retry, cache, auth, hooks, plugins |

See Mini Client documentation for more.

Features

| Feature | Description | |:---|:---| | Zero Config | Direct functions work out of the box. No setup required. | | Multi-Protocol | HTTP, WebSocket, DNS, WHOIS, RDAP, FTP, SFTP, Telnet in one SDK. | | AI-Native | SSE streaming, token counting, provider abstraction. | | Type-Safe | Full TypeScript with Zod schema validation. | | Observable | DNS/TCP/TLS/TTFB timing breakdown per request. | | Resilient | Retry, circuit breaker, rate limiting, deduplication. | | GeoIP (Offline) | MaxMind GeoLite2 database with bogon detection. | | RDAP Support | Modern WHOIS with IANA Bootstrap and TLD detection. |

Highlights

AI Streaming

for await (const event of recker.ai.stream({
  model: 'gpt-4',
  messages: [{ role: 'user', content: 'Hello!' }]
})) {
  process.stdout.write(event.choices[0]?.delta?.content || '');
}

Request Timing

const response = await get('https://api.example.com/data');
console.log(response.timings);
// { dns: 12, tcp: 8, tls: 45, firstByte: 23, total: 156 }

Scraping

const doc = await client.scrape('https://example.com');
const titles = doc.selectAll('h1').map(el => el.text());

Circuit Breaker

import { createClient, circuitBreaker } from 'recker';

const client = createClient({
  baseUrl: 'https://api.example.com',
  plugins: [
    circuitBreaker({ threshold: 5, resetTimeout: 30000 })
  ]
});

CLI (rek)

A powerful terminal client that replaces curl:

# Install globally
npm install -g recker

# Simple requests
rek httpbin.org/json
rek POST api.com/users name="John" age:=30

# Pipe to bash (like curl)
rek -q https://get.docker.com | bash

# Save to file
rek -o data.json api.com/export

# Interactive shell
rek shell

# Mock servers for testing
rek serve http    # HTTP on :3000
rek serve ws      # WebSocket on :8080
rek serve hls     # HLS streaming on :8082

See CLI Documentation for more.

Documentation

License

MIT © Forattini