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-core

v0.1.15

Published

Core library for RAPID - AI-assisted development with dev containers

Readme

@a3t/rapid-core

Core library for RAPID - AI-assisted development with dev containers.

This package provides the foundational utilities for orchestrating AI coding assistants within containerized development environments.

Features

  • 🐳 Dev Container Management - Control containerized environments via devcontainer CLI
  • 🤖 Agent Configuration - Manage multiple AI coding assistants (Claude Code, OpenCode, Aider, etc.)
  • 🔐 Secret Management - Integration with 1Password and Vault for credential handling
  • 🔌 MCP Server Support - Model Context Protocol integration for external tools and APIs
  • ⚙️ Configuration Loading - Smart configuration resolution with cosmiconfig
  • 🔍 External Auth Detection - Detect credentials from external AI tools

Installation

npm install @a3t/rapid-core

Usage

Loading Configuration

import { loadConfig } from '@a3t/rapid-core';

const { config, rootDir } = await loadConfig();
console.log(config.agents.default); // 'claude'

Managing Containers

import { getContainerStatus, startContainer, execInContainer } from '@a3t/rapid-core';

// Check if container is running
const status = await getContainerStatus(projectRoot, config);

// Start container
const result = await startContainer(projectRoot, config);

// Execute command in container
await execInContainer(projectRoot, ['claude'], config);

Agent Detection

import { checkAllAgents, getAgent, launchAgent } from '@a3t/rapid-core';

// Check installed agents
const agents = await checkAllAgents(config);

// Get specific agent
const claude = getAgent(config, 'claude');

// Launch agent
await launchAgent(claude, { cwd: projectRoot });

External Authentication

import { detectClaudeCodeAuth, detectAllCredentials, getAuthStatus } from '@a3t/rapid-core';

// Detect Claude Code credentials
const claudeAuth = await detectClaudeCodeAuth();

// Detect all credentials from external tools
const credentials = await detectAllCredentials();

// Get authentication status
const authStatus = await getAuthStatus();

API Reference

Configuration

  • loadConfig(cwd?) - Load RAPID configuration from cosmiconfig search
  • loadConfigFromFile(filepath) - Load configuration from specific file
  • getDefaultConfig() - Get default configuration
  • mergeWithDefaults(config) - Merge user config with defaults

Container Management

  • hasDevcontainerCli() - Check if devcontainer CLI is installed
  • hasDocker() - Check if Docker is available
  • getContainerStatus(rootDir, config) - Get current container status
  • startContainer(rootDir, config, options) - Start dev container
  • stopContainer(rootDir, config, options) - Stop dev container
  • execInContainer(rootDir, command, config, options) - Execute command in container

Agent Management

  • checkAgentAvailable(agent) - Check if agent CLI is installed
  • checkAllAgents(config) - Check all configured agents
  • getDefaultAgent(config) - Get default agent from config
  • getAgent(config, name) - Get specific agent by name
  • launchAgent(agent, options) - Launch agent CLI

Authentication

  • detectClaudeCodeAuth() - Detect Claude Code credentials
  • detectCodexAuth() - Detect OpenAI Codex credentials
  • detectGeminiAuth() - Detect Google Gemini credentials
  • detectAiderAuth() - Detect Aider API keys
  • detectEnvAuth() - Detect API keys from environment
  • detectAllCredentials(config) - Detect all available credentials
  • getAuthStatus(config) - Get authentication status summary
  • getCredentialsForProvider(provider, config) - Get credentials for specific provider
  • getAuthEnvironment(config) - Get environment variables for detected credentials

Types

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

Configuration File Format

See rapid.json Specification for complete configuration reference.

Logger

import { logger, setLogLevel } from '@a3t/rapid-core';

// Set log level
setLogLevel('debug'); // 'debug' | 'info' | 'warn' | 'error'

// Log messages
logger.info('Information message');
logger.warn('Warning message');
logger.error('Error message');
logger.success('Success message');
logger.blank(); // Empty line

Error Handling

Most async functions return success/error objects rather than throwing:

const result = await startContainer(rootDir, config);
if (!result.success) {
  console.error(result.error);
}

See Also

License

MIT © 2026 Rude Company LLC