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/aws-securityhub

v0.1.0

Published

Stream signed Decionis Decision Dossiers into AWS Security Hub (ASFF) and CloudWatch Logs as continuous, audit-ready compliance evidence.

Readme

@decionis/aws-securityhub

Stream signed Decionis Decision Dossiers into AWS Security Hub (as ASFF findings) and CloudWatch Logs — continuous, audit-ready compliance evidence in the customer's own security stack (docs/brief/decionis.aws.md Feature 4). This is the net-new streaming sink: the dossier/ledger already exist; only batch export did before.

Every governed decision becomes a finding whose severity and compliance status derive from the outcome — a REJECT is a HIGH/FAILED finding, an APPROVE is INFORMATIONAL/PASSED — each carrying the dossier id, policy version, dossier_sha256, ledger hash, and a verification URL.

Usage (Lambda)

import { createHandlerFromEnv } from "@decionis/aws-securityhub";

// Reads AWS_REGION + DECIONIS_CLOUDWATCH_LOG_GROUP + (optional) Security Hub config.
export const handler = createHandlerFromEnv();

Or inject sinks directly (e.g. to add only one):

import { createDossierStreamHandler, AwsSecurityHubSink } from "@decionis/aws-securityhub";

export const handler = createDossierStreamHandler({
  securityHub: new AwsSecurityHubSink({ region: "us-east-1" }),
});

The handler accepts the shapes Decionis delivery can emit — a raw array, a single event, an SNS envelope (Records[].Sns.Message), or an EventBridge detail.

Input contract

The producer (Decionis-hosted decision graph) emits a DecisionDossierEvent per decision: dossier_id, org_id, decision_type, outcome, confidence?, policy_version?, dossier_sha256?, ledger_entry_hash?, evaluation_id?, occurred_at, verify_url?, aws_account_id, aws_region. Missing aws_account_id / aws_region are filled from env (DECIONIS_AWS_ACCOUNT_ID / AWS_REGION).

Environment (customer stack)

| Var | Required | Meaning | | ---------------------------------- | -------- | --------------------------------------------------- | | AWS_REGION | ✓ | Region for findings + ProductArn | | DECIONIS_CLOUDWATCH_LOG_GROUP | | Enable CloudWatch streaming when set | | DECIONIS_CLOUDWATCH_LOG_STREAM | | Default decionis-decision-dossiers | | DECIONIS_SECURITYHUB_ENABLED | | false to skip Security Hub | | DECIONIS_SECURITYHUB_PRODUCT_ARN | | Explicit ASFF ProductArn (else own-account default) | | DECIONIS_AWS_ACCOUNT_ID | | Fallback account id for events that omit it |

Producer hook (Decionis side — follow-up)

Decionis emits these events through the existing integration-delivery framework to the customer's SNS topic / HTTPS endpoint. Wiring a dedicated AWS_SECURITY_HUB delivery channel in apps/api is the remaining producer-side task; this package is the complete consumer.