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

@konker.dev/config-o-tron

v0.0.2

Published

CLI tool for configuration and secrets management using AWS SSM with pluggable validation (Effect Schema or Zod)

Readme

Config-o-tron

CLI tool for configuration and secrets management using AWS SSM with a pluggable validation layer (Effect Schema or Zod).

Prerequisites

  • Node.js 18+ (or a compatible runtime)
  • pnpm
  • AWS credentials and region configuration for the default aws-ssm provider

Setup

Install dependencies:

pnpm install

Build the CLI:

pnpm run build

Configure

Config-o-tron reads configuration from config-o-tronrc.json or config-o-tronrc.json5 (searches current and parent directories) and environment variables. Both files are parsed with JSON5, so comments and trailing commas are allowed. Validation is pluggable; set validation to effect (default) or zod. Your schema file must export a single ConfigSchema value that matches the selected validator.

Example config-o-tronrc.json:

{
  "env": "dev",
  "provider": "aws-ssm",
  "ssmPrefix": "/config-o-tron",
  "schema": "src/schema.ts",
  "validation": "effect",
  "providerGuards": {
    "aws-ssm": {
      "accountId": "123456789012",
      "region": "us-east-1"
    }
  }
}

Provider guards are provider-specific safety checks that run before any provider operation. They can be bypassed with CONFIG_O_TRON_IGNORE_PROVIDER_GUARDS=1 for emergencies. For aws-ssm, accountId is resolved from AWS_ACCOUNT_ID or STS GetCallerIdentity, and region is resolved from AWS_REGION/AWS_DEFAULT_REGION or the AWS SDK client configuration.

Environment overrides:

  • CONFIG_O_TRON_ENV
  • CONFIG_O_TRON_PROVIDER
  • CONFIG_O_TRON_SSM_PREFIX
  • CONFIG_O_TRON_SCHEMA
  • CONFIG_O_TRON_VALIDATION
  • CONFIG_O_TRON_FORMAT
  • CONFIG_O_TRON_SEPARATOR
  • CONFIG_O_TRON_CACHE
  • CONFIG_O_TRON_CI
  • CONFIG_O_TRON_IGNORE_PROVIDER_GUARDS

Run

Show CLI help:

pnpm run config-o-tron -- --help

List keys for a service:

pnpm run config-o-tron list <service>

Export config for a service:

pnpm run config-o-tron export <service>

Use a different provider:

CONFIG_O_TRON_PROVIDER=mock pnpm run config-o-tron list <service>

Programmatic API (export-only)

Config-o-tron exposes a TypeScript API for export-only usage. It resolves configuration the same way as the CLI (rc file, env vars, defaults), but lets you override values inline.

import { exportConfig } from '@konker.dev/config-o-tron';

const result = await exportConfig({
  service: 'api',
  sources: ['shared'],
  format: 'json',
  config: {
    env: 'prod',
    provider: 'aws-ssm',
    ssmPrefix: '/config-o-tron',
    schema: 'src/schema.ts',
    validation: 'effect',
  },
});

// Structured config object
console.log(result.config);

Development

Run tests:

pnpm run test

Lint:

pnpm run lint-check