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

@mmmnt/feat-adapter-dynamodb

v0.1.3

Published

DynamoDB service adapter for Feat: table writes become a capture window via DynamoDB Streams — an unpredicted INSERT/MODIFY/REMOVE fails the suite

Readme

@mmmnt/feat-adapter-dynamodb

Service adapter for Feat that turns a DynamoDB table into a capture window via DynamoDB Streams: every write during a scenario becomes a captured record — an unpredicted INSERT, MODIFY, or REMOVE fails the suite by prediction inversion.

// feat.config.json
"services": {
  "database": {
    "adapter": "@mmmnt/feat-adapter-dynamodb",
    "consistency": "eventual",
    "convergenceTimeout": 2500,
    "options": {
      "tableEnv": "FEAT_DDB_TABLE",          // or "table": "feature-workspace-local"
      "region": "us-east-2",
      "endpointEnv": "FEAT_DDB_ENDPOINT"     // or "endpoint": literal; omit for AWS.
      // Endpoints belong to the ENVIRONMENT (an emulator edge, DynamoDB
      // Local, a VPC endpoint URL) — reference them like tableEnv, and the
      // same tier config observes whatever the environment provides.
    }
  }
}
predict success:
  response 200 Receipt { ok: true }
  database has [ INSERT with BetaRow {
    SK: "REQUEST#42"
    email: @when.email
  } ]

Records are { type: INSERT|MODIFY|REMOVE, key: "PK=...|SK=...", payload: <unmarshalled image> }REMOVE carries the old image. The table must have Streams enabled (NEW_AND_OLD_IMAGES, or NEW_IMAGE); a streamless table is a configuration error at setup, and KEYS_ONLY is rejected (predictions need images). Declare the service eventual — stream delivery lags the writes that cause it.

seed() puts records directly (values must include the table's key attributes). read() scans the table for contains assertions as ITEM-typed records. AWS SDK v3 clients are real dependencies: DynamoDB requires SigV4 signing.

Access model

Config carries credential references, never values — the config is committed and hashed into generated suites. options.auth takes exactly one form (several at once is a configuration error):

"auth": { "profile": "acme-staging-observer" }                  // named profile (local dev)
"auth": { "roleArn": "arn:aws:iam::…:role/feat-observer" }      // assume-role (enterprise CI; OIDC web identity works)
"auth": { "accessKeyIdEnv": "FEAT_AWS_KEY",                     // env-var NAMES for static keys (escape hatch)
          "secretAccessKeyEnv": "FEAT_AWS_SECRET" }

Absent auth = the SDK default chain. Shared/live environments are observe-only — the adapter never creates or mutates infrastructure it evidences. The read-only observer policy an environment's owner provisions:

{ "Version": "2012-10-17", "Statement": [{
  "Effect": "Allow",
  "Action": ["dynamodb:DescribeTable", "dynamodb:Scan",
             "dynamodb:DescribeStream", "dynamodb:GetShardIterator", "dynamodb:GetRecords"],
  "Resource": ["arn:aws:dynamodb:REGION:ACCOUNT:table/TABLE",
               "arn:aws:dynamodb:REGION:ACCOUNT:table/TABLE/stream/*"] }]}

(seed() additionally needs dynamodb:PutItem — grant it only where given: seeding is used.)

Ephemeral mode — zero credentials, zero IaC

For teams with no cloud access at all, the adapter scaffolds its own instrument: a private DynamoDB Local container + table + stream, created at setup() and removed at teardown. A real DynamoDB engine, not a mock.

"options": { "ephemeral": { "table": "feat-local", "partitionKey": "PK", "sortKey": "SK" } }

Mutually exclusive with table/tableEnv/endpoint/auth; needs docker. Alternatively point endpoint at a DynamoDB Local you run yourself (docker run -p 8000:8000 amazon/dynamodb-local — the adapter's own suite runs against the real engine either way).

Part of Feature — the .feat execution specification language. Docs: https://github.com/mmmnt/feature/wiki

MIT