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

@a3t/rapid-schema

v0.1.15

Published

JSON schema and TypeScript types for RAPID configuration

Readme

@a3t/rapid-schema

JSON schema and TypeScript types for RAPID configuration.

This package provides the JSON schema and TypeScript type definitions for rapid.json configuration files, enabling IDE autocompletion and validation.

Features

  • 📋 JSON Schema - Full JSON Schema for rapid.json validation
  • 🎯 TypeScript Types - Comprehensive TypeScript interfaces
  • IDE Support - Autocompletion in VS Code and other IDEs
  • 🔍 Validation - JSON Schema validation support

Installation

npm install @a3t/rapid-schema

Usage

TypeScript Types

import type {
  RapidConfig,
  ContainerConfig,
  AgentsConfig,
  AgentDefinition,
  SecretsConfig,
  ContextConfig,
  McpConfig,
  McpServerConfig,
} from '@a3t/rapid-schema';

const config: RapidConfig = {
  version: '1.0',
  name: 'my-project',
  agents: {
    default: 'claude',
    available: {
      claude: {
        cli: 'claude',
        instructionFile: 'CLAUDE.md',
        envVars: ['ANTHROPIC_API_KEY'],
      },
    },
  },
};

JSON Schema Import

import schema from '@a3t/rapid-schema/schema';
// or
import schema from '@a3t/rapid-schema/rapid.schema.json';

IDE Setup

To enable autocompletion in your rapid.json, add the $schema property:

{
  "$schema": "https://unpkg.com/@a3t/rapid-schema@latest/dist/rapid.schema.json",
  "version": "1.0",
  "name": "my-project",
  "agents": {
    "default": "claude",
    "available": {}
  }
}

Configuration Structure

Root Properties

| Property | Type | Required | Description | | ----------- | ------ | -------- | ------------------------------- | | version | string | Yes | Schema version ("1.0") | | name | string | No | Project name | | container | object | No | Container configuration | | agents | object | Yes | AI agents configuration | | secrets | object | No | Secret management configuration | | context | object | No | Context file settings | | mcp | object | No | MCP server configuration |

Container Configuration

interface ContainerConfig {
  devcontainer?: string; // Path to devcontainer.json
  compose?: string; // Docker Compose file
  autoStart?: boolean; // Auto-start on `rapid dev`
  buildArgs?: Record<string, string>;
}

Agents Configuration

interface AgentsConfig {
  default: string; // Default agent name
  available: Record<string, AgentDefinition>; // Available agents
}

interface AgentDefinition {
  cli: string; // CLI command to execute
  instructionFile?: string; // Path to instruction file
  envVars?: string[]; // Required environment variables
  installCmd?: string; // Installation command
  args?: string[]; // Additional CLI arguments
}

Secrets Configuration

interface SecretsConfig {
  provider?: '1password' | 'vault' | 'env'; // Secret provider
  vault?: string; // Vault name/path
  address?: string; // Vault server address
  items?: Record<string, string>; // Secret references
  envrc?: EnvrcConfig;
  dotenv?: DotenvConfig;
}

interface EnvrcConfig {
  generate?: boolean; // Auto-generate .envrc
  path?: string; // Path to .envrc file
  includeLocal?: boolean;
}

interface DotenvConfig {
  enabled?: boolean; // Load .env files
  files?: string[]; // .env files to load
  warn?: boolean; // Warn about .env usage
}

Context Configuration

interface ContextConfig {
  files?: string[]; // Files to include in context
  dirs?: string[]; // Directories to include
  exclude?: string[]; // Patterns to exclude
  generateAgentFiles?: boolean; // Auto-generate AGENTS.md, CLAUDE.md
  templateDir?: string; // Custom template directory
  preserve?: string[]; // Files to preserve during generation
}

MCP Configuration

interface McpConfig {
  configFile?: string; // MCP config file path
  servers?: Record<string, McpServerConfig>; // MCP servers
}

interface McpServerConfig {
  enabled?: boolean; // Enable this server
  [key: string]: unknown; // Server-specific config
}

Complete Example

{
  "$schema": "https://unpkg.com/@a3t/rapid-schema@latest/dist/rapid.schema.json",
  "version": "1.0",
  "name": "my-project",
  "container": {
    "devcontainer": ".devcontainer/devcontainer.json",
    "autoStart": true,
    "buildArgs": {
      "NODE_VERSION": "20"
    }
  },
  "agents": {
    "default": "claude",
    "available": {
      "claude": {
        "cli": "claude",
        "instructionFile": "CLAUDE.md",
        "envVars": ["ANTHROPIC_API_KEY"],
        "installCmd": "npm install -g @anthropic-ai/claude-code"
      },
      "opencode": {
        "cli": "opencode",
        "instructionFile": "AGENTS.md",
        "envVars": ["ANTHROPIC_API_KEY", "OPENAI_API_KEY"],
        "installCmd": "npm install -g opencode"
      }
    }
  },
  "secrets": {
    "provider": "1password",
    "vault": "Development",
    "items": {
      "ANTHROPIC_API_KEY": "op://Development/Anthropic/api-key",
      "OPENAI_API_KEY": "op://Development/OpenAI/api-key"
    }
  },
  "context": {
    "files": ["README.md", "CONTRIBUTING.md"],
    "dirs": ["docs/", "src/"],
    "exclude": ["docs/internal/"],
    "generateAgentFiles": true
  },
  "mcp": {
    "configFile": ".mcp.json",
    "servers": {
      "filesystem": {
        "enabled": true
      },
      "github": {
        "enabled": true,
        "repo": "${localEnv:GITHUB_REPOSITORY}"
      }
    }
  }
}

Variable Substitution

Configuration values support variable substitution:

| Variable | Description | | ---------------------------- | ----------------------------------- | | ${env:VAR} | Environment variable from container | | ${localEnv:VAR} | Environment variable from host | | ${workspaceFolder} | Absolute path to project root | | ${workspaceFolderBasename} | Project directory name |

See Also

License

MIT © 2026 Rude Company LLC