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

@ddnet-repo/vibescript

v1.0.0

Published

Governance tooling that constrains AI-assisted coding through directives, manifests, ownership rules, and compliance checks

Readme

VibeScript

Governance tooling for AI-assisted coding in TypeScript/JavaScript projects.

Put guardrails on Claude, Copilot, and other AI coding assistants so they can't go rogue in your codebase.

Language Support: VibeScript is designed for TypeScript and JavaScript projects using Node.js. The governance files use .vibe.ts extensions and the tooling integrates with npm/pnpm workflows.


The Problem

AI coding assistants are powerful but chaotic. Without constraints, they will:

  • Modify files they shouldn't touch
  • Refactor code nobody asked them to refactor
  • Make sweeping changes without documenting what they did
  • Break things in ways that are hard to trace back

You can't just tell an AI to behave. Instructions get ignored, forgotten, or misinterpreted. The only reliable way to constrain AI behavior is with hard enforcement: automated checks that block bad changes before they ship.

The Solution

VibeScript creates a governance layer that:

  1. Defines ownership - Which files can AI modify freely? Which require human approval? Which are off-limits?

  2. Requires declarations - Before AI touches code, it must declare what it plans to modify and why

  3. Enforces compliance - Automated checks in CI that block PRs if the AI violated the rules

  4. Creates audit trails - Change manifests document what was done and how to undo it

The key insight: You don't convince an AI to follow rules. You trap it in a workflow where the only way forward is to pass the gates.

How It Works

┌─────────────────────────────────────────────────────────────┐
│  AI writes code in .vibe.ts files with required directives  │
│                            ↓                                │
│  vibe:check validates directives and file permissions       │
│                            ↓                                │
│  vibe:guard validates ownership rules and manifests         │
│                            ↓                                │
│  CI blocks merge if any check fails                         │
│                            ↓                                │
│  Code ships only when compliant                             │
└─────────────────────────────────────────────────────────────┘

Quick Start

Step 1: Install VibeScript in your project

pnpm add -D @ddnet-repo/vibescript
pnpm vibescript init

Step 2: Tell your AI to read the rules

When starting a coding session with Claude Code or similar, say:

"Before making any changes, read .vibe/claude.instructions.md and .vibe/spec.md. Follow the VibeScript governance rules. Run pnpm vibe:check before committing."

Step 3: Enable branch protection in GitHub

Go to Settings → Branches → Add rule for main:

  • Require status checks to pass
  • Select "Vibe Check" as required

Now the AI physically cannot merge code that violates the rules.

What Gets Created

After running vibescript init:

.vibe/
  spec.md                 # The rules (AI reads this)
  claude.instructions.md  # Operating manual for Claude
  ownership.json          # Which files AI can touch
  templates/              # File templates
  reports/                # Violation reports
  changes/                # Change manifests

.github/workflows/
  vibe.yml                # CI enforcement

File Ownership Model

| Extension | Who Owns It | AI Rights | |-----------|-------------|-----------| | *.vibe.ts | AI-owned | Freely create, modify, delete | | *.human.ts | Human-owned | Cannot modify without explicit permission | | *.lock.ts | Contract files | Must include test changes | | *.ts | Unowned | Not governed (gradual adoption) |

You choose what to govern. Existing code isn't affected until you opt in by renaming files or configuring ownership globs.

The Directive System

Every .vibe.ts file must declare its intent:

// @vibe:goal What this code accomplishes
// @vibe:touch src/auth/**/*.ts, src/types/user.ts
// @vibe:inputs What data/context is needed
// @vibe:outputs What this produces
// @vibe:constraints Limitations and requirements
// @vibe:tests How to verify correctness
// @vibe:risk low|medium|high
// @vibe:rollback How to undo changes

export function myFeature() {
  // Implementation
}

The @vibe:touch directive is critical: it declares which files the AI is allowed to modify. If the AI touches files not in this list, the check fails.

Enforcement Layers

| Layer | When | What It Catches | |-------|------|-----------------| | Pre-commit hook | Before commit | Immediate local feedback | | GitHub Action | On PR | Blocks merge until fixed | | Branch protection | On merge | Final gate, no bypass |

All three layers run pnpm vibe:check, which:

  1. Validates ownership rules (vibe-guard)
  2. Validates directives and touch coverage (vibe-checker)

CLI Commands

vibescript init          # Set up governance in your project
vibescript task "desc"   # Create a new .vibe.ts file with directives
vibescript manifest "x"  # Create a change manifest
vibescript doctor        # Diagnose configuration issues
vibescript check         # Run all compliance checks

Documentation

Why "VibeScript"?

Because "vibe-based coding" is what happens when AI runs unsupervised. This is the antidote: explicit declarations, hard enforcement, and audit trails.

The vibes are nice. The scripts make sure nobody gets hurt.

License

MIT

Author

burtbyproxy [email protected]