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

@crvouga/mockingbird-service-aws-secrets

v3.2.0

Published

Stateful AWS Secrets Manager and SSM Parameter Store emulator with versions, stages, rotation, and redacted controls.

Readme

@crvouga/mockingbird-service-aws-secrets

Local emulators. Real API contracts. Part of Mockingbird.

Stateful emulator of AWS Secrets Manager and SSM Parameter Store for the official AWS SDK v3 clients. It models secret versions and stages, binary values, deterministic rotation, SecureString metadata, parameter versions, denials, decryption failures, and redacted controls without contacting AWS.

Install

npm install -D @crvouga/mockingbird-service-aws-secrets

ESM only. Node 22+ or Bun 1.2+.

Usage

Point both clients' endpoint option at the same emulator URL. Fixture SigV4 credentials are accepted.

import { createServer } from "@crvouga/mockingbird-service-aws-secrets/server"

const emulator = await createServer({
  secrets: [{ name: "database/password", value: "fixture-password" }],
  parameters: [{ name: "/app/region", value: "us-east-1" }],
})
const health = await fetch(`${emulator.url}/__admin/health`)

Secrets Manager supports CreateSecret, PutSecretValue, GetSecretValue, and DescribeSecret by name or ARN, including VersionId, VersionStage, SecretString, and SecretBinary. SSM supports PutParameter, GetParameter, and GetParameters with String, StringList, SecureString, WithDecryption, versions, ARNs, and data types.

Admin and deterministic controls

  • GET /__admin/secrets and /__admin/parameters expose metadata with every value redacted.
  • POST /__admin/secrets/:name/rotate atomically moves AWSCURRENT to AWSPREVIOUS.
  • PUT /__admin/controls/:name configures denial, stale-version reads, or decryption failure.
  • Fault presets are throttled and unavailable.

Values are encoded in durable state so timelines and snapshots do not contain plaintext markers. Request journals never record request or response bodies. The shared runtime also provides reset, clock, timeline, metrics, faults, and namespace isolation through x-mockingbird-namespace, /__admin/ns/<name>, or SigV4 access-key mappings.

Deliberately not modelled

KMS cryptography, automatic rotation Lambdas, resource policies, replication, SSM hierarchies and labels beyond the supported reads, production quotas, AWS dashboards, billing, and outbound vendor calls are not modelled. SecureString ciphertext returned without decryption is deterministic emulator ciphertext, not KMS output.

API

  • AwsSecretsAPI, AwsSecretsAPIOptions, SecretSeed, ParameterSeed: handler and fixtures.
  • Secret, SecretVersion, SecretControl, Parameter: durable state types.
  • createRuntime, AwsSecretsRuntime, AwsSecretsRuntimeOptions: full Mockingbird runtime.
  • AWS_SECRETS_NAMESPACE, AWS_SECRETS_PRESETS, accessKeyCredential: constants and controls.
  • document, operationIds, supportedOperationIds: generated OpenAPI metadata.
  • createServer, AwsSecretsServerOptions, DEFAULT_PORT, serveTarget from ./server: Node HTTP adapter and CLI integration.

Official oracles: AWS Secrets Manager API Reference and AWS Systems Manager API Reference.