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

@cool-ai/beach-config

v0.2.0

Published

Declarative YAML configuration for Beach applications — schemas, loader, validator, CLI. Three axes (functional, environmental, secret), uniform cascade, file-per-thing scaffold.

Downloads

328

Readme

@cool-ai/beach-config

Declarative YAML configuration for Beach applications.

What this package is

Beach treats configuration as data, not code. A Beach application is described by a small tree of YAML files — one per actor, one per channel, one per tool, one per model class — that together describe what the application is, where it runs, and which secrets it depends on. Beach loads, validates, and cascades these files at startup, producing a frozen typed object the rest of the application reads.

The three axes:

| Axis | Files | Reviewer | | -------------- | -------------------------------------------------------- | ------------------------------ | | Functional | beach.functional.yaml, actors/*, tools/*, models/* | App engineers, code review | | Environmental | beach.environment.yaml, beach.environment.<env>.yaml, channels/* | Ops, deployment review | | Secret | beach.secrets.env | Secrets owner, rotation gate |

For the prose introduction, see Configuring a Beach application. For the JSON Schemas the package ships, see Reference: Configuration Schemas. For the CLI in detail, see Reference: beach-config CLI.

Quickstart

npm install @cool-ai/beach-config
npx beach-config init        # scaffolds ./config with three model files,
                             # functional + environmental files, and the
                             # conventional actors/, channels/, tools/ dirs

Add --with-starter to the init call to lay down a worked example (one actor, one tool, one streaming channel) wired for @cool-ai/beach-starter's request-reply pipeline.

npx beach-config validate    # CI-friendly check; exits 1 on any error
npx beach-config tree        # navigable inventory of the loaded config
npx beach-config explain actors.concierge.maxTokens   # walk the cascade for one key

CLI

beach-config init               # scaffold the directory layout
beach-config validate           # CI-friendly check, with --with-app-schema for app: blocks
beach-config tree               # print the inventory (with --section, --depth, --diff, --json)
beach-config explain <key>      # walk the cascade for one key
beach-config split <section>    # inline → one-file-per-thing
beach-config merge <section>    # one-file-per-thing → inline
beach-config update-models      # refresh shipped model files (opt-in)

Programmatic API

import { loadBeachConfig } from '@cool-ai/beach-config';

const { config } = await loadBeachConfig({
  configRoot: './config',
  deployment: process.env.BEACH_DEPLOYMENT,
});

// Hand the relevant slice to each Beach primitive's `fromConfig` factory.
const router  = EventRouter.fromConfig(config.functional.router);
const manager = SessionTurnManager.fromConfig(config.functional.session, { router });

Application-side extensibility

Beach is silent on consumer-defined fields, but the config tree is the right place to keep them. Three reserved namespaces give consumers room without forcing Beach to validate anything it has no opinion about: top-level app: on the functional file, per-instance app: on actor / channel / tool files, and app.collections.<name> for consumer-defined collection-shaped data using the same include vocabulary as Beach's own collections.

To bring app: blocks under per-file checking, ship a JSON Schema with the application and run beach-config validate --with-app-schema ./schemas/app.schema.json.