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

@vibe-validate/config

v0.19.6

Published

Configuration system for vibe-validate with TypeScript-first design and config templates

Readme

@vibe-validate/config

Configuration system for vibe-validate with strict Zod schema validation and JSON Schema support.

Features

  • Strict Schema Validation: Runtime validation with Zod (rejects unknown properties)
  • JSON Schema Support: IDE autocomplete and validation for YAML configs
  • YAML Configuration: Primary format with schema validation
  • Type Safety: Full TypeScript definitions for programmatic use

Installation

npm install @vibe-validate/config

Usage

YAML Configuration (Recommended)

Create a vibe-validate.config.yaml file using a template:

npx vibe-validate init --template typescript-nodejs

Available templates:

  • minimal - Bare-bones starting point
  • typescript-library - TypeScript libraries/npm packages
  • typescript-nodejs - Node.js applications
  • typescript-react - React/Next.js applications

All templates: https://github.com/jdutton/vibe-validate/tree/main/packages/cli/config-templates

Example YAML Configuration

$schema: https://unpkg.com/@vibe-validate/config/config.schema.json

# Git settings
git:
  mainBranch: main
  autoSync: false
  warnIfBehind: true

# Validation configuration
validation:
  phases:
    - name: Pre-Qualification
      parallel: true
      steps:
        - name: TypeScript
          command: tsc --noEmit
          description: Type-check all code
        - name: ESLint
          command: eslint .
          description: Lint for code quality

    - name: Testing
      parallel: false
      steps:
        - name: Unit Tests
          command: npm test
          description: Run test suite

  failFast: true  # Stop all validation on first phase failure

YAML Schema Support

The $schema property enables IDE autocomplete and validation:

# Version-pinned (recommended for production)
$schema: https://unpkg.com/@vibe-validate/[email protected]/config.schema.json

# Latest version (auto-updates to newest)
$schema: https://unpkg.com/@vibe-validate/config/config.schema.json

Versioning Strategy:

  • Version-pinned URLs - Match your installed package version, stable API
  • Latest URLs - Auto-update to newest schema, good for docs/prototyping
  • vibe-validate init - Automatically generates version-pinned URLs

This gives you:

  • ✅ Autocomplete for all configuration properties
  • ✅ Inline validation errors
  • ✅ Hover documentation for each field
  • ✅ Type checking for YAML configs

See Schema Documentation for complete details on versioning and all published schemas.

API (Programmatic Usage)

loadConfig(cwd?)

Load configuration from current directory:

import { loadConfig } from '@vibe-validate/config';

const config = await loadConfig(); // Searches for vibe-validate.config.yaml

loadConfigFromFile(path)

Load and validate configuration from a specific file:

import { loadConfigFromFile } from '@vibe-validate/config';

const config = await loadConfigFromFile('./vibe-validate.config.yaml');

findAndLoadConfig(cwd?)

Find and load configuration from working directory:

import { findAndLoadConfig } from '@vibe-validate/config';

const config = await findAndLoadConfig(); // Searches for config in cwd

validateConfig(rawConfig)

Validate a raw configuration object:

import { validateConfig, safeValidateConfig } from '@vibe-validate/config';

// Throws ZodError on invalid config
const config = validateConfig(rawConfig);

// Returns { success, data?, errors? }
const result = safeValidateConfig(rawConfig);
if (!result.success) {
  console.error(result.errors);
}

Configuration File Discovery

The loader searches for the config file:

  • vibe-validate.config.yaml (only supported format)

Configuration Schema

See the complete configuration reference: https://github.com/jdutton/vibe-validate/blob/main/docs/skills/setting-up-projects/configuration-reference.md

Key Sections

  • git - Git repository settings (mainBranch, autoSync, etc.)
  • validation - Validation phases and steps configuration
  • validation.phases - Array of validation phases to execute
  • validation.phases[].steps - Array of commands to run in each phase
  • validation.failFast - Stop all validation on first phase failure (default: true)

Strict Validation

All Zod schemas use strict validation - unknown properties are rejected:

validation:
  phases: []
  unknownProperty: true  # ❌ ERROR: Unrecognized key 'unknownProperty'

This catches typos and prevents configuration drift.

License

MIT