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

clawapi

v1.1.2

Published

An unofficial OpenAI-compatible API gateway and CLI tool powered by Playwright browser automation.

Readme

ClawAPI

Browser-based OpenAI-compatible AI Gateway — in Node.js

Run AI models like Claude through an automated, headless Playwright session. No API keys needed! A 1:1 cross-platform NodeJS rewrite of the GhostAPI python gateway.

Features

  • Provides an OpenAI-compatible HTTP API POST /v1/chat/completions directly from your local browser.
  • Native HTTP Engine: Optimized for Claude to bypass 403 blocks with real browser fingerprinting.
  • Web Dashboard: Stunning modern UI built with Glassmorphism to manage your providers visually.
  • Session Portability: Robust Export/Import system with built-in ZIP compression for moving sessions between machines/VPS.
  • Cross-platform: Runs seamlessly as a background service on Windows, Mac, and Linux.
  • Colorful CLI: Native custom CLI with real-time status and log tailing.

Quick Start

1. Install via NPM

npm install -g clawapi

2. Launch the Web Dashboard

clawapi ui start

Open http://localhost:3001 to manage your sessions visually!

3. CLI Usage (Optional)

ClawAPI manages an internal registry of LLM providers. (This commands installs ClawAPI and natively runs a postinstall hook downloading Playwright's Chromium binary needed for web automation.)

Usage

1. Install and Authenticate an AI Provider

ClawAPI manages an internal registry of LLM providers that are web-scraped.

# Add the Claude provider to your registry
clawapi add claude

# Authenticate Claude
clawapi auth claude

A browser window will open. Simply log in to Claude with your Google account or email. Please wait for the web chat UI to fully load. Once loaded, simply close the browser window. The CLI will save your session!

2. Start the Server

Start ClawAPI in the background as a detached REST API server:

clawapi start
# Or start on a custom port
clawapi start --port 8080

Note: Due to the background headless detachment, no terminal window will block your screen!

3. Send OpenAI-compatible HTTP Requests

Now that the server is active, you can interact with Claude.ai (or any installed provider) using exactly the same schema as OpenAI's official chat/completions specifications!

curl -X POST http://localhost:8855/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "clawapi/claude",
    "messages": [
      {
        "role": "user",
        "content": "Tell me a short joke"
      }
    ]
  }'
{
  "id": "chatcmpl-df8a...699",
  "object": "chat.completion",
  "model": "clawapi/claude",
  "choices": [{"message": {"role": "assistant", "content": "Because they make up everything! 😄"}}]
}

CLI Commands Reference

  • clawapi list: View all authenticated models
  • clawapi available: View the registry of all available LLMs
  • clawapi status: View the port and active/background server statuses
  • clawapi stop: Halt the detached HTTP server daemon
  • clawapi restart: Safely restage the server
  • clawapi logs: Recursively tail the background error/activity streams

Example (Connecting Picoclaw)

ClawAPI acts identically to OpenAI infrastructure! You can plug it into clients native to ChatGPT effortlessly:

clawapi picoclaw
{
  "api_key": "sk-clawapi",
  "api_base": "http://localhost:8855/v1",
  "model": "clawapi/claude"
}