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

@deotio/cdk-grafana

v0.1.1

Published

AWS CDK constructs for deploying and managing AWS Managed Grafana workspaces

Downloads

160

Readme

@deotio/cdk-grafana

AWS CDK constructs for deploying and managing AWS Managed Grafana workspaces.

Features

  • GrafanaWorkspace — L3 construct that provisions a Managed Grafana workspace with a service role, service account, and service account token
  • GrafanaInfraStack — ready-to-deploy stack with Secrets Manager storage, SSM parameter discovery, GitHub Actions OIDC federation, and cross-account access
  • RemovalPolicyAspect — CDK aspect to set removal policies across all resources in a construct tree
  • Built-in cdk-nag suppressions with documented justifications

Installation

npm install @deotio/cdk-grafana

Peer dependencies

npm install aws-cdk-lib constructs cdk-nag

Quick start

import { App } from 'aws-cdk-lib';
import { GrafanaInfraStack } from '@deotio/cdk-grafana';

const app = new App();

new GrafanaInfraStack(app, 'GrafanaInfra', {
  workspaceName: 'my-grafana',
  environment: 'prod',
  orgId: 'o-abc123',
  secretAccessOuPaths: ['o-abc123/r-root/ou-xxxx/*'],
  ssmPrefix: '/grafana/prod',
  githubRepo: 'my-org/my-repo',
});

Using the L3 construct directly

import { GrafanaWorkspace } from '@deotio/cdk-grafana';

const workspace = new GrafanaWorkspace(this, 'Grafana', {
  workspaceName: 'my-grafana',
  orgId: 'o-abc123',
});

// workspace.endpoint — the workspace URL
// workspace.workspaceId — the workspace ID
// workspace.serviceAccountTokenKey — the service account token

API reference

GrafanaWorkspaceProps

| Prop | Type | Required | Description | |------|------|----------|-------------| | workspaceName | string | Yes | Name of the Grafana workspace | | grafanaVersion | string | No | Grafana version (default: 10.4) | | orgId | string | Yes | AWS Organizations ID for cross-account role assumption |

GrafanaInfraStackProps

| Prop | Type | Required | Description | |------|------|----------|-------------| | workspaceName | string | Yes | Name of the Grafana workspace | | grafanaVersion | string | No | Grafana version (default: 10.4) | | environment | string | Yes | Environment label (e.g., prod) | | orgId | string | Yes | AWS Organizations ID | | secretAccessOuPaths | string[] | Yes | OU paths granted cross-account read access to the token secret | | ssmPrefix | string | Yes | SSM parameter prefix (e.g., /grafana/prod) | | githubRepo | string | Yes | GitHub repository slug for OIDC federation (e.g., org/repo) | | existingGitHubOidcArn | string | No | ARN of existing GitHub OIDC provider | | githubActionsRoleName | string | No | Name for the GitHub Actions IAM role (default: github-actions-grafana) |

Development

npm ci          # install dependencies
npm run build   # compile TypeScript
npm test        # run tests
npm run lint    # lint source and tests

Contributing

See CONTRIBUTING.md for guidelines.

License

Apache-2.0