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

llm-tokencheck

v0.1.7

Published

Estimate token count and USD cost of a text/file before sending it to an LLM API (Anthropic, OpenAI, Google). Free tier: single file. Pro: batch folders + CSV export.

Readme

llm-tokencheck

Estime le nombre de tokens et le coût en dollars d'un texte avant de l'envoyer à une API LLM (Anthropic, OpenAI, Google). Zéro dépendance, s'exécute instantanément.

# Installation (la commande installée s'appelle `tokencheck`)
npm install -g llm-tokencheck

tokencheck mon-fichier.txt
tokencheck mon-fichier.txt --provider anthropic
tokencheck mon-fichier.txt --model claude-sonnet-5
cat mon-fichier.txt | tokencheck -
tokencheck --list

Sans installation : npx -y -p llm-tokencheck tokencheck mon-fichier.txt

Limites

  • L'estimation de tokens est heuristique (± ~15%), pas une tokenisation exacte : chaque fournisseur utilise son propre tokenizer. Pour un usage qui exige une précision exacte, utilisez le tokenizer officiel du fournisseur.
  • Les tarifs affichés sont saisis manuellement et peuvent devenir obsolètes. Vérifiez toujours la page tarifaire officielle avant toute décision budgétaire (voir le champ source de chaque modèle dans pricing.json).

Version gratuite vs Pro

  • Gratuit : un fichier (ou stdin) à la fois, tous les modèles listés.
  • Pro (9 USD, achat unique) : traitement d'un dossier entier + export CSV. Achat : https://buy.stripe.com/eVqeVegjH7kL0iE14Q9Zm00 Après l'achat, vous recevrez une clé de licence par email à activer avec :
    tokencheck --activate <votre-cle-de-licence>
    tokencheck mon-dossier/ --csv rapport.csv
    tokencheck --status       # vérifier l'état de la licence
    tokencheck --deactivate   # retirer la licence de cette machine
    La licence est vérifiée localement par signature cryptographique (Ed25519) : aucune donnée n'est envoyée à un serveur tiers dans les deux cas, tout le calcul est local.

LLM Pricing Alerts (nouveau, test)

Un email quand les tarifs Anthropic/OpenAI/Google de pricing.json changent — pratique si vous suivez ces coûts sans vouloir repasser sur tokencheck --list régulièrement. 3 USD/mois, résiliable à tout moment depuis le lien Stripe. Abonnement : https://buy.stripe.com/9B63cw5F39sT4yUcNy9Zm01

Service en phase de test (volume actuel : 0 abonné) — l'envoi des alertes est encore fait manuellement par l'auteur, pas automatisé, le temps de valider l'intérêt avant d'investir dans une automatisation.

Besoin de plus qu'une estimation ? Audit de vos coûts API existants

Un service séparé, payant, pour aller plus loin que l'estimation gratuite : envoyez un export de votre usage API réel (CSV/JSON du dashboard fournisseur, ou un échantillon représentatif de requêtes — pas de clé API requise) et recevez sous 48h un rapport écrit : quelles requêtes récurrentes pourraient utiliser un modèle moins cher sans perte de qualité perceptible, et une estimation d'économie mensuelle. 29 USD, paiement unique, pas d'abonnement. Détails et paiement : https://ilan-lachkar.github.io/llm-cost-audit/

Service récent (0 audit réalisé à ce jour) — revue manuelle, pas encore automatisée ; remboursement intégral si je ne peux rien tirer d'utile de ce que vous envoyez.

Vous lancez vous-même un outil dev ? Le rapport LaunchMap

17 canaux de distribution testés en réel pour lancer un outil dev solo (annuaires, Reddit, Hacker News, réseaux pub payables en crypto…) : ce qui a bloqué l'inscription automatisée, ce qui a marché sans friction, ce qui a été supprimé après coup. Données réelles issues du lancement de cet outil et de llm-cost-audit. 7 USD, rapport envoyé par email. Détails et paiement : https://ilan-lachkar.github.io/launchmap/

Licence

MIT.