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

logica-skill

v1.1.0

Published

🔵 XML+propositielogica token compressor — ~75% minder tokens, perfect begrip

Readme

🔵 logica

why use many token when few token do trick — maar dan met wiskunde

XML + propositielogica compressor. ~75% tokenreductie. Volledig LLM-begrip. Alle agents.


Voor/Na

| | | |---|---| | 🗣️ Normaal (68 tokens) | "De reden dat je React component opnieuw rendert is waarschijnlijk omdat je een nieuw object aanmaakt bij elke render-cyclus. Wanneer je een inline object als prop doorgeeft, ziet React's shallow comparison het als een ander object elke keer, wat een re-render triggert. Ik raad aan useMemo te gebruiken." | | 🔵 Logica (18 tokens) | <r><kern>new obj ref∀render</kern><oorzaak>inline prop↦new ref↦re-render</oorzaak><fix>wrap∈useMemo</fix></r> |

Zelfde fix. 75% minder. Claude begrijpt het perfect.


Installatie

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/mburghout/logica/main/install.sh | bash

# Of via npx
npx @mburghout/logica

# Specifieke agent
bash install.sh --only claude-code
bash install.sh --only cursor
bash install.sh --only mikeos

Vereist: Node ≥18. ~10 seconden. Veilig opnieuw uitvoeren.


Gebruik

| Commando | Effect | |---|---| | /logica | Activeer (full mode) | | /logica lite | Compact maar leesbaar | | /logica ultra | Maximale compressie | | /logica expand | Expandeer vorig antwoord naar NL | | /logica stats | Toon tokenreductie sessie | | /logica off | Deactiveer |


Wat compriméert wat

| Ding | Logica doet | |---|---| | Tekst/uitleg | 🔵 XML + symbolen | | Code blocks | ✍️ Ongewijzigd (code is al compact) | | Technische termen | 🧠 Exact behouden | | Foutmeldingen | 📋 Exact geciteerd | | Opvulzinnen | 💀 Weg | | Lidwoorden in tags | 💀 Weg | | Beleefdheden | 💀 Weg |


Automatische mode-kiezer

Q∈{code,fix,bug}      → ULTRA
Q∈{uitleg,concept}    → FULL
Q∈{chat,kort}         → LITE
agent-naar-agent       → ULTRA
∀Q: expand_on_request → /logica expand

Waarom XML + propositielogica en niet een andere taal?

Claude's tokenizer (BPE) groepeert ASCII-tekens tot ~4 chars/token. Elk Chinees karakter = ~1 token. Dus <route>DEV=code</route> (17 chars, ~4 tokens) is compacter dan 路徑代碼 (4 chars, 4 tokens) — met meer informatie.

Propositielogica scoort het best: Claude kent het diep (wiskundige redenering = kern van training), ASCII = tokenizer-efficiënt, én het is nog debugbaar als er iets mis gaat.

NL origineel:     ~70 tokens  (basis)
XML-compressed:   ~28 tokens  (-60%)
Propositielogica: ~24 tokens  (-66%)
Logica (combo):   ~18 tokens  (-75%)

Logica vs Caveman

Beide reduceren tokens. Ze doen het anders.

| | Caveman | Logica | |---|---|---| | Methode | Taalstijl strippen | Structuur omzetten naar XML+symbolen | | Output | Terse proza | Machine-parseable XML | | Leesbaar voor mensen | ✓ Ja | △ Minder | | Leesbaar voor agents | △ Nog steeds proza | ✓ Expliciet gestructureerd | | Tokenreductie | ~60–70% | ~65–75% | | Code blocks | Ongewijzigd | Ongewijzigd | | Ideaal voor | Chatgesprekken, uitleg | Agentic pipelines, tool-output, data | | Combineerbaar | ✓ | ✓ |

Het kernverschil: caveman comprimeert stijl. Logica comprimeert structuur. Een volgende agent in een pipeline hoeft logica-output niet te interpreteren — de structuur is al expliciet. Caveman-output is nog steeds proza, hoe compact ook.

Wanneer wat

mens leest output            → caveman
agent verwerkt output        → logica
lang gesprek, kleine context → logica ultra
debuggen / uitleggen         → caveman lite
beide actief                 → gaat prima, logica wint op structuur

Combineren

Caveman en logica bijten elkaar niet. Je kunt ze allebei aanzetten:

/logica
/caveman lite

Claude comprimééert de structuur (logica) én de stijl (caveman). Maximale reductie voor agentic gebruik.


Ondersteunde agents

| Agent | Methode | Auto-detect | |---|---|---| | Claude Code | Hooks + skill | ✓ | | Cursor | Rule file | ✓ | | Windsurf | Rule file | ✓ | | Gemini CLI | Extensie | ✓ | | Cline | Rule file | ✓ | | Overige | npx skills | handmatig |


Verwijderen

bash install.sh --uninstall
# of
npx @mburghout/logica --uninstall

Licentie

MIT — vrij geen garanties