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

@decionis/bedrock-guard

v0.1.0

Published

Hard-block guard for Amazon Bedrock Agent action groups — gates each agent action on a signed Decionis Decision Dossier before it touches RDS/S3.

Downloads

84

Readme

@decionis/bedrock-guard

Hard-block guard for Amazon Bedrock Agent action groups. It gates every agent action on a signed Decionis Decision Dossier before it runs — the real enforcement boundary between the LLM orchestration and the enterprise's data (RDS/S3) is the action group's Lambda, and that is exactly where this wrapper sits.

Built on @decionis/aws-lambda-guard (same shadow-default safety model) and @decionis/sdk. Mirrors the semantics of @decionis/langchain's DecionisGateTool, adapted to the Bedrock action-group contract.

Language choice. Bedrock action-group Lambdas run on the Node.js 20 runtime, so this guard is TypeScript and reuses the existing gate engine with zero duplication. A Python port can later live under sdks/python alongside sdks/python-langchain for Python action-group runtimes.

Usage

import { wrapBedrockActionGroup } from "@decionis/bedrock-guard";
import { resolveGuardConfigFromEnv } from "@decionis/aws-lambda-guard";

const config = resolveGuardConfigFromEnv(); // DECIONIS_BASE_URL / API_KEY / ORG_ID / ...

export const handler = wrapBedrockActionGroup(
  async (event) => {
    // Your real action-group business logic. Only runs when the action is allowed.
    return runAction(event);
  },
  { config, siteBaseUrl: "https://decionis.com" },
);

Behaviour

  • Shadow-default. An action's decision_type (default bedrock.<actionGroup>.<action>) runs in SHADOW until promoted via DECIONIS_ENFORCED_DECISION_TYPES.
  • Blocked / held → denial response, not an exception. When enforced and the outcome is REJECT (block) or REVIEW/ESCALATE (hold), the inner handler never runs and the agent receives a properly-shaped denial it can surface or re-plan around:
    • function-schema → functionResponse.responseState = "FAILURE" with the reason + dossier id.
    • OpenAPI-schema → httpStatusCode: 403 with an application/json error body.
  • Verify URL. Set siteBaseUrl to embed a public dossier verification link in the denial.
  • Fail-open by default (configurable) when the decision graph is unreachable.

Customizing the decision

  • decisionType: a string or (event) => string to key policy/dossier on your own taxonomy.
  • buildDecisionRequest: full control over the decision request (return null to skip gating).
  • onDecision: observability hook fired for every decision (shadow included).