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

@the-glitch-king/babel-fish

v1.0.0

Published

Gives your AI coding assistant instant, accurate knowledge of every route, model, service, feature, and infrastructure element in your codebase.

Readme

babel-fish

babel-fish

Gives your AI coding assistant instant, accurate knowledge of every route, model, service, feature, and infrastructure element in your codebase.

License: MIT Status: Production Ready GitHub: TheGlitchKing/babel-fish


What Does This Do?

Babel Fish creates a translation layer between a human and an LLM. It provides a natural feature-based conversation for the human, and a direct mapping to tools, targets, models, and file paths for the AI. Babel Fish auto-generates a living project map for your codebase and teaches your AI assistant your vocabulary — so you spend zero time re-explaining your project every session.

| Without Babel Fish | With Babel Fish | |-------------------|-----------------| | "The deals page is at features/deal-pipeline/DealPipeline.tsx" | Already mapped | | AI scans 200 files to find a route | Loads 1 section, 5KB | | Stale context after a refactor | Pre-commit hook auto-regenerates | | Re-explain your stack every session | Vocabulary auto-loaded on start | | "Where is the background job for invoices?" | Checks section 08 directly |

In short: Your AI assistant knows your codebase cold from the first message.


What Gets Generated

A 19-section project map, split into focused files so the AI loads only what's relevant per task:

| Section | What It Contains | |---------|-----------------| | 01-vocabulary.md | Plain-English → exact file path mapping | | 02-service-topology.md | How your services connect | | 03-environment.md | Env vars (secrets redacted) | | 04-api-routes.md | Every route with method, path, handler | | 05-data-models.md | Models and their fields | | 06-schemas.md | Validation schemas (Pydantic, Zod, etc.) | | 07-services.md | Business logic layer | | 08-background-jobs.md | Queues, workers, cron tasks | | 09-frontend-features.md | Components and pages | | 10-tools-commands.md | CLI commands and scripts | | 11-migrations.md | Database migration history | | 12-import-chains.md | Key import dependency trees | | 13-frontend-backend-map.md | Which frontend calls which API | | 14-reverse-proxy.md | Nginx/Caddy routing config | | 15-auth-config.md | Auth strategy and guards | | 16-infra-profile.md | Docker, Terraform, cloud config | | 17-learned-vocabulary.md | Aliases mined from your sessions | | 18-dead-code.md | Unused exports and orphaned files | | 19-doc-pointers.md | Links to external docs |

Plus:

  • PROJECT_MAP.md — TOC and quick routing guide (always loaded first)
  • project-vocabulary.md — auto-loaded every session
  • operational-runbook.md — gotchas and deploy procedures, grows over time
  • Developer skill — loads only the 2-3 sections relevant to your current task

Install

Option 1: npx (recommended — no curl, verified by npm registry)

# Preview all changes before applying (nothing is modified)
npx @theglitchking/babel-fish dry-run

# Install
npx @theglitchking/babel-fish init

# Or target a specific project
npx @theglitchking/babel-fish init /path/to/your/project

Option 2: Curl one-liner (checksum-verified)

Always preview before running anything from the internet:

# Preview first — shows every file that will be created, nothing is modified
curl -sSL https://raw.githubusercontent.com/TheGlitchKing/babel-fish/main/install.sh | bash -s -- --dry-run

# Install
curl -sSL https://raw.githubusercontent.com/TheGlitchKing/babel-fish/main/install.sh | bash

# Or target a specific path
curl -sSL https://raw.githubusercontent.com/TheGlitchKing/babel-fish/main/install.sh | bash -s -- /path/to/your/project

The remote installer verifies a SHA256 checksum against checksums.json before executing anything. If the file has been tampered with in transit, the installer aborts.


Option 3: Via Glitch Kingdom Marketplace (Claude Code)

Run these inside a Claude Code session:

/plugin marketplace add TheGlitchKing/glitch-kingdom-of-plugins
/plugin install TheGlitchKing/babel-fish

The first command registers the Glitch Kingdom marketplace. You only need to run it once — after that, /plugin install works for all Glitch Kingdom plugins.


Option 4: Clone and run

git clone https://github.com/TheGlitchKing/babel-fish.git
bash babel-fish/.claude/install.sh --dry-run /path/to/your/project  # preview first
bash babel-fish/.claude/install.sh /path/to/your/project

What the Installer Does

  1. Checks for Python ≥ 3.8 (installs if missing)
  2. Detects your stack (language, framework, database, ORM, auth, infra)
  3. Runs generate.py → grades with grader.py (iterates up to 3× until 90%+ quality)
  4. Renders your developer skill and rules files
  5. Installs the pre-commit hook (auto-regenerates map on source file changes)
  6. Updates CLAUDE.md with a project map pointer
  7. Prints a full quality report

Quality Grading

Every install is graded 0–100% across 7 categories. Must score ≥ 90% to pass (up to 3 iterations):

| Category | Weight | What It Checks | |----------|--------|----------------| | Section completeness | 25% | All 19 sections generated | | Vocabulary accuracy | 20% | Entries map to real files | | Import chain validity | 15% | Chains trace to real modules | | Secret safety | 15% | No API keys, passwords, or tokens leaked | | Section size bounds | 10% | Each section 0.1–50KB | | Structural integrity | 10% | Valid markdown, working TOC links | | Checksum functionality | 5% | Re-run skips when nothing changed |

A full report is written to .claude/project-map/reports/install-report.md.


Using the Developer Skill

After install, a skill is available:

/<your-project-slug>-developer

It reads PROJECT_MAP.md and uses the Quick Routing table to load only the 2-3 sections relevant to your current task — typically 5–20KB of context instead of 100KB+.


Keeping the Map Current

The pre-commit hook regenerates the map automatically whenever source files change. To force a manual regeneration:

python .claude/project-map/generate.py --force

To re-grade the current output:

python .claude/project-map/grader.py

Learned Vocabulary

Every AI session is mined for vocabulary. When you say "the numbers page" and the AI opens DealAnalyzerV2.tsx, that alias is recorded with a score (frequency × recency). Aliases with a score ≥ 5 appear in 17-learned-vocabulary.md automatically.

Run the miner manually:

python .claude/project-map/mine-sessions.py

Operational Runbook

.claude/rules/operational-runbook.md is loaded every session and grows over time. When you encounter a non-obvious operational issue, the developer skill prompts:

"This looks like operational knowledge worth documenting. Want me to add it to the runbook? (Y/n)"

Entries follow a simple format: symptom → cause → fix. This is the anti-drift mechanism — knowledge that can't be derived from code lives here.


File Structure

.claude/
├── project-map/
│   ├── generate.py              # Introspection script
│   ├── grader.py                # Quality grader
│   ├── mine-sessions.py         # Session vocabulary miner
│   ├── PROJECT_MAP.md           # TOC + quick routing guide
│   ├── sections/                # 19 focused section files
│   ├── reports/                 # Install and iteration reports
│   ├── checksums.json           # Skip regeneration if unchanged
│   └── learned-vocabulary.json  # Persisted session aliases
├── rules/
│   ├── project-vocabulary.md    # Auto-loaded every session
│   └── operational-runbook.md   # Auto-loaded every session
└── skills/
    └── <project>-developer-skill/
        └── SKILL.md
.githooks/
├── pre-commit                   # Auto-regenerates map on commit
└── install.sh                   # Register hooks: bash .githooks/install.sh

Supported Stacks

| Language | Frameworks | |----------|-----------| | Python | FastAPI, Django, Flask | | TypeScript / JavaScript | Next.js, NestJS, Express, React, Vue, Svelte | | Go | Gin, Echo, Chi, stdlib | | Java | Spring Boot | | Any | docker-compose, nginx, Caddy, Terraform, Prisma, SQLAlchemy, TypeORM |


Requirements

  • AI coding assistant (Claude Code, Cursor, or compatible)
  • Python ≥ 3.8 (auto-installed if missing)
  • Bash
  • Optional: pip install pyyaml for docker-compose YAML parsing (regex fallback included)

Commands

| Command | What It Does | |---------|-------------| | python .claude/project-map/generate.py --force | Force-regenerate project map | | python .claude/project-map/grader.py | Grade map quality (0–100%) | | python .claude/project-map/mine-sessions.py | Mine session vocabulary | | bash .githooks/install.sh | (Re)install git hooks | | bash .claude/install.sh | Re-run full plugin installer |


License

MIT — see LICENSE


Made by TheGlitchKing