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

substrai-cdk-bedrock-agent

v0.2.0

Published

AWS CDK construct for deploying production-ready Bedrock AI agents with Lambda, DynamoDB, and OpenSearch

Downloads

25

Readme

substrai-cdk-bedrock-agent

AWS CDK construct for deploying production-ready Bedrock AI agents with Lambda, DynamoDB, and OpenSearch.

Installation

pip install substrai-cdk-bedrock-agent

Usage

from aws_cdk import App, Stack
from substrai_cdk_bedrock_agent import BedrockAgentConstruct, BedrockAgentProps

app = App()
stack = Stack(app, "AgentStack")

agent = BedrockAgentConstruct(stack, "MyAgent", props=BedrockAgentProps(
    agent_name="my-assistant",
    model_id="anthropic.claude-3-5-sonnet-20241022-v2:0",
    lambda_code_path="./agent_lambda",
    lambda_memory_mb=1024,
    session_ttl_days=14,
))

# Access created resources
print(agent.agent_function.function_arn)
print(agent.session_table.table_name)

What Gets Deployed

  • Lambda Function — Agent logic with configurable runtime, memory, and timeout
  • DynamoDB Table — Session state with TTL auto-expiry and point-in-time recovery
  • IAM Role — Least-privilege permissions for Bedrock and DynamoDB
  • CloudWatch Log Group — 2-week retention with structured logging
  • CloudWatch Alarms — Error rate and P99 latency monitoring
  • X-Ray Tracing — Active tracing enabled by default

Configuration

| Property | Default | Description | |----------|---------|-------------| | agent_name | (required) | Name for all resources | | model_id | claude-3-5-sonnet | Bedrock model identifier | | lambda_memory_mb | 512 | Lambda memory allocation | | lambda_timeout_seconds | 300 | Lambda timeout | | session_ttl_days | 7 | DynamoDB session expiry | | alarm_error_threshold | 5.0 | Error rate alarm (%) | | alarm_latency_threshold_ms | 10000 | P99 latency alarm (ms) |

License

MIT