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

sfn-dynamodb-toolbox-integrations

v0.2.1-alpha

Published

A set of constructs to leverage [dynamodb-toolbox](https://github.com/jeremydaly/dynamodb-toolbox) features in a Step Functions <> Dynamodb direct integration.

Readme

Step Functions <> Dynamodb integrations with dynamodb-toolbox features

A set of constructs to leverage dynamodb-toolbox features in a Step Functions <> Dynamodb direct integration.

Why ?

AWS direct integrations are great for shipping less custom code, thus less bugs 🐞 in your CDK applications. They enable communication with Dynamodb inside a state machine, rather than using a lambda as a service integration task and use your favorite tool such as dynamodb-toolbox to communicate with Dynamodb for simple requests like GetItem, PutItem, UpdateItem or Query.

However, functionless is not always an option and you may already be relying on dynamodb-toolbox in some of your lambdas. In this case, implementing a Step Functions <> Dynamodb direct integration turns out to be painful because you would have to implement dynamodb-toolbox features yourself (e.g. generate created / modified / entity properties, or handle alias and maps).

How ?

This library aims at getting the best developer experience :computer: while benefiting from dynamodb-toolbox features in Step Functions <> Dynamodb direct integrations. To query entity items inside a state machine, define your task with the Query construct at build time, and pass the partition key value at run time, just like you would do in a lambda with dynamodb-toolbox.

import { StateMachine } from "aws-cdk-lib/aws-stepfunctions";
import { DynamodbToolboxQuery } from "sfn-dynamodb-toolbox-integrations";

// Define your query state
const queryTask = new DynamodbToolboxQuery(this, "QueryTask", {
  entity: DynamodbToolboxEntityToQuery,
  tableArn: "arn:aws:dynamodb:us-east-2:123456789012:table/myDynamoDBTable",
  // Attributes to retrieve should be entity aliases
  options: { attributes: ["id", "created"] },
});

// And use it in your step function
const stateMachine = new StateMachine(this, "QueryStateMachine", {
  definition: queryTask,
});

NB: This library is in alpha for its current limitations, however it's already being used in production in some projects. The main limitation being: :warning: dynamodb-entities must be flat (i.e. no object or array properties).

We have released the Query construct while PutItem, UpdateItem and GetItem constructs are under active development.

Available DynamoDB-toolbox entity features

Entity definition

These entity properties are currently handled:

| DDB-toolbox entity options | GetItem | UpdateItem | PutItem | Query | | ----------------------------- | ---------- | ---------- | ---------- | --------------------------------------- | | attributes | :computer: | :computer: | :computer: | :warning: see below | | autoExecute | :computer: | :computer: | :computer: | :x: true (default) | | autoParse | :computer: | :computer: | :computer: | :x: true (default) | | created | :computer: | :computer: | :computer: | :white_check_mark: | | createdAlias | :computer: | :computer: | :computer: | :white_check_mark: | | modified | :computer: | :computer: | :computer: | :white_check_mark: | | modifiedAlias | :computer: | :computer: | :computer: | :white_check_mark: | | name | :computer: | :computer: | :computer: | :white_check_mark: | | table | :computer: | :computer: | :computer: | :white_check_mark: | | timestamps | :computer: | :computer: | :computer: | :white_check_mark: | | typeAlias | :computer: | :computer: | :computer: | :white_check_mark: | | typeHidden | :computer: | :computer: | :computer: | :x: false (default) |

:computer:: under development

Entity attributes

These entity attribute properties are currently handled:

| DDB-toolbox attribute feature | GetItem | UpdateItem | PutItem | Query | | ----------------------------- | ---------- | ---------- | ---------- | --------------------------------------- | | alias | :computer: | :computer: | :computer: | :white_check_mark: | | coerce | :computer: | :computer: | :computer: | :x: (default) | | default | :computer: | :computer: | :computer: | :white_check_mark: | | delimiter | :computer: | :computer: | :computer: | :white_check_mark: | | dependsOn | :computer: | :computer: | :computer: | :white_check_mark: | | format | :computer: | :computer: | :computer: | :x: | | hidden | :computer: | :computer: | :computer: | :x: false (default) | | map | :computer: | :computer: | :computer: | :white_check_mark: | | onUpdate | :computer: | :computer: | :computer: | :white_check_mark: | | prefix | :computer: | :computer: | :computer: | :x: | | suffix | :computer: | :computer: | :computer: | :x: | | partitionKey | :computer: | :computer: | :computer: | :white_check_mark: | | sortKey | :computer: | :computer: | :computer: | :white_check_mark: | | required | :computer: | :computer: | :computer: | :white_check_mark: | | save | :computer: | :computer: | :computer: | :x: true (default) | | setType | :computer: | :computer: | :computer: | :x: | | transform | :computer: | :computer: | :computer: | :x: | | type | :computer: | :computer: | :computer: | :warning: string, number, boolean |

:computer:: under development