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

@stone-js/config-source

v0.8.15

Published

Agnostic configuration sources for Stone.js: load and merge config from env, files (json/yaml), AWS SSM, Secrets Manager, HTTP/GitHub and KMS-decrypted values into the blueprint before boot, with optional live reload.

Downloads

1,580

Readme

Stone.js - Config Source

npm license npm version npm downloads Maintenance CI Release Quality Gate Status Coverage Security Policy CodeQL Dependabot Status Conventional Commits

Agnostic configuration sources for Stone.js. Load and merge configuration from many providers, env vars, JSON/YAML files, AWS SSM Parameter Store, Secrets Manager, an HTTP endpoint (a GitHub raw file, a gist), with KMS-decrypted values, into the blueprint before the app boots, so every blueprint middleware and provider sees the resolved config. Opt into live reload to refresh it on each incoming request.


Installation

npm install @stone-js/config-source

# only the drivers you use (optional peers, imported lazily):
npm install @aws-sdk/client-ssm @aws-sdk/client-secrets-manager @aws-sdk/client-kms js-yaml

Peer dependency: @stone-js/core. The AWS SDKs and js-yaml are optional peers, imported lazily.

How it plugs in

The framework awaits a @Configuration()'s configure(blueprint) during initBlueprint, before the blueprint middleware run. Load your sources there and the whole app boots with the config already merged in:

import { Configuration } from '@stone-js/core'
import { loadConfigSources, envSource, fileSource, ssmSource, secretsSource, kmsDecryptor } from '@stone-js/config-source'

@Configuration()
export class AppConfig {
  async configure (blueprint) {
    await loadConfigSources(blueprint, [
      envSource({ prefix: 'APP_' }),
      fileSource({ path: './config.yaml', optional: true }),
      ssmSource({ path: '/my-app/' }),
      secretsSource({ secretId: 'my-app/prod' })
    ], { transform: kmsDecryptor() })
  }
}

Sources are merged in order (later wins). transform runs on every leaf value, kmsDecryptor() decrypts any string prefixed with kms:.

Live reload

Mark the configuration live and Stone reloads it on every incoming event (its native live-config mechanism), no restart needed:

@Configuration({ live: true })
export class LiveConfig {
  async configure (blueprint) {
    await loadConfigSources(blueprint, [ssmSource({ path: '/my-app/' })])
  }
}

Sources

| source | provider | | ------ | -------- | | envSource({ prefix?, env? }) | environment variables (prefix stripped) | | fileSource({ path, format?, optional? }) | local JSON / YAML file | | ssmSource({ path, region?, client? }) | AWS SSM Parameter Store (nested by path) | | secretsSource({ secretId, region?, client? }) | AWS Secrets Manager (JSON secret) | | httpSource({ url, headers?, format?, fetch? }) | any URL (GitHub raw, gist, config server) | | kmsDecryptor({ region?, prefix? }) | a transform that decrypts kms:-prefixed values |

Use ConfigSourceManager directly for finer control (.add(), .load(), .loadInto(blueprint)).

License

MIT