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

xithead

v1.2.2

Published

Aggressive Claude context optimizer - Cut API costs by 50-95%. By Xtream-ITSolutions UG.

Readme


Was ist xithead?

xithead ist ein lokaler Proxy von Xtream-ITSolutions UG, der sich zwischen Claude Code und die Anthropic API setzt. Er komprimiert Kontext aggressiv, cached Antworten und dedupliziert identische Requests — vollautomatisch, ohne Code-Änderungen.

Claude Code  ──►  xithead Proxy :8787  ──►  Anthropic API
                  │ Cache-Control
                  │ Context-Trim
                  │ Request-Dedup
                  └ Live Dashboard

Ergebnis: 50–95% weniger Token-Verbrauch, gleiche Qualität.


Installation

Windows (empfohlen — ein Befehl, alles automatisch)

iex (irm https://raw.githubusercontent.com/xtream-itsolutions/xithead/main/headroom.ps1)

Das Skript installiert automatisch (ohne Adminrechte):

  • Python 3.12, Node.js, Git (via Winget falls nicht vorhanden)
  • xithead Python-Paket + Proxy-Abhängigkeiten
  • xithead npm CLI + Claude Code
  • Claude Code konfigurieren (~/.claude/settings.json)
  • PowerShell-Profil mit allen Hilfsbefehlen

Danach nur noch eingeben (optional):

  • Claude Login (Browser oder API-Key)
  • GitHub Token (für Repo-Zugriff in Claude Code)

npm (Windows / macOS / Linux)

npm install -g xithead
xithead

pip (Python direkt)

pip install "xithead[proxy]"
python -m xithead.cli.main proxy --port 8787

Benutzung

xithead              # Claude Code mit Proxy starten (empfohlen)
xithead proxy        # Nur Proxy starten (mit Logs)
xithead stats        # Token-Einsparungen anzeigen
xithead update       # Alles aktualisieren (npm + Python)
xithead help         # Alle Befehle

PowerShell-Hilfsbefehle (nach Installation)

xithead-dashboard    # Dashboard im Browser öffnen
xithead-stats        # Einsparungen anzeigen
xithead-update       # Alles auf neuestem Stand halten
xithead-github       # GitHub Token + MCP Server einrichten
xithead-doctor       # System-Diagnose
xithead-help         # Alle Befehle

Dashboard

Das Live-Dashboard läuft automatisch auf http://localhost:8787/dashboard:

  • Echtzeit-Statistiken — Token gespart, Kosten, Cache-Hit-Rate
  • Request-Verlauf — Token-Verbrauch pro Request als Chart
  • Einstellungen — Komprimierungsstärke, Cache-Optionen
  • Installation — Quick-Start Guide direkt im Browser

Wie es funktioniert

| Feature | Beschreibung | |---|---| | Cache Control | Anthropic cache_control wird automatisch in jeden Request injiziert (bis zu 90% Einsparung bei Wiederholungen) | | Context Trimming | Lange Konversations-Historien werden aggressiv komprimiert | | Request Deduplication | Identische gleichzeitige Requests werden zusammengeführt | | 429 Retry | Automatisches Retry mit Retry-After Header bei Rate Limits | | SQLite Cache | Persistenter Cache unter ~/.xithead/cache/ |


Claude Code konfigurieren

xithead setzt ~/.claude/settings.json automatisch während der Installation:

{
  "env": {
    "ANTHROPIC_BASE_URL": "http://localhost:8787/v1",
    "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "16000",
    "XITHEAD_ENABLE_CACHE_CONTROL": "1",
    "XITHEAD_ENABLE_DEDUP": "1",
    "XITHEAD_ENABLE_CONTEXT_TRIM": "1",
    "HEADROOM_STRENGTH": "aggressive"
  }
}

Damit nutzt auch claude direkt (ohne xithead-Wrapper) den Proxy.


GitHub Integration

Claude Code kann direkt mit GitHub arbeiten (Repos lesen, PRs erstellen, Issues verwalten):

xithead-github   # GitHub Token eingeben + MCP Server einrichten

Token erstellen unter: github.com/settings/tokens/new
Benötigte Scopes: repo, workflow, read:org


Auto-Update

xithead prüft automatisch alle 6 Stunden auf neue Versionen:

  • Neue npm-Version → stiller Hintergrund-Update
  • Python-Paket → parallel aktualisiert

Manuelles Update jederzeit:

xithead update       # oder
xithead-update       # PowerShell-Funktion

Voraussetzungen

| Software | Version | Installiert durch | |---|---|---| | Python | ≥ 3.9 | Winget (automatisch) | | Node.js | ≥ 18 | Winget (automatisch) | | Claude Code | aktuell | npm (automatisch) | | Git | aktuell | Winget (automatisch) |


Lizenz

Apache 2.0 — © 2026 Xtream-ITSolutions UG