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

@drunk-pulumi/azure-components

v1.1.34

Published

The custom components for Pulumi Azure

Readme

Drunk Pulumi Azure Components

A modular, reusable TypeScript library of Pulumi components for rapidly building and managing Azure infrastructure. This project provides high-level abstractions for common Azure resources, enabling you to compose complex cloud environments with minimal boilerplate.

Features

  • Composable Components: Build infrastructure using reusable building blocks (e.g., Resource Groups, Key Vaults, VMs, Networking, Storage, Databases, etc.).
  • Opinionated Defaults: Sensible defaults for security, tagging, and resource configuration.
  • Extensible: Easily extend or customize components for your organization's needs.
  • Pulumi Native: Leverages Pulumi's TypeScript SDK for full infrastructure-as-code power.
  • Azure Best Practices: Implements patterns for identity, encryption, logging, and networking.

Project Structure

src/
  aks/           # Azure Kubernetes Service components
  app/           # App-related Azure resources (App Service, IoT Hub, etc.)
  azAd/          # Azure Active Directory (roles, identities, etc.)
  base/          # Base classes and helpers for components
  common/        # Common utilities and resource helpers
  database/      # Database resources (SQL, MySQL, Postgres, Redis)
  helpers/       # Utility functions and configuration helpers
  logs/          # Logging and monitoring components
  services/      # Azure services (Automation, Search, Service Bus)
  storage/       # Storage account components
  vault/         # Key Vault and encryption helpers
  vm/            # Virtual machine and disk encryption components
  vnet/          # Networking (VNet, Firewall, CDN, etc.)
  types.ts       # Shared TypeScript types
  ResourceBuilder.ts # Main builder for composing resources

Getting Started

Prerequisites

Installation

Clone the repository and install dependencies:

git clone <repo-url>
cd drunk-pulumi-azure-components
pnpm install

Set Default Config

pulumi org set-default YOUR_ORG_NAME

pulumi config set azure-native:tenantId YOUR_AZ_TENANT_ID
pulumi config set azure-native:subscriptionId YOUR_AZ_SUBSCRIPTION_ID
pulumi config set azure-native:location YOUR_AZ_LOCATION

Usage

You can use the components in your own Pulumi project or in the provided pulumi-test/ directory for examples.

Example: Creating a Resource Group with Key Vault and Logging

import { ResourceBuilder } from '../src/ResourceBuilder';

const builder = new ResourceBuilder('my-stack', {
  groupRoles: { createWithName: 'my-rg-roles' },
  vault: {
    /* vault config */
  },
  logs: {
    /* logs config */
  },
  enableDefaultUAssignId: true,
});

export const outputs = builder.getOutputs();

See pulumi-test/samples/ for more usage examples.

Project Scripts

  • pnpm build – Compile TypeScript sources
  • pnpm lint – Run ESLint
  • pnpm test – Run tests (if available)

Directory Reference

  • src/: All core component code
  • pulumi-test/: Example Pulumi stacks and sample usage
  • .devcontainer/: Development container setup for VS Code

Component Overview

  • ResourceBuilder: Main entry point for composing resources (resource group, roles, vault, logs, disk encryption, etc.)
  • azAd/: Azure AD roles, group roles, user-assigned identities
  • vault/: Key Vaults, encryption keys, secrets
  • vm/: Virtual machines, disk encryption sets
  • vnet/: Virtual networks, firewalls, peering, endpoints
  • logs/: Log analytics and monitoring
  • database/: SQL, MySQL, Postgres, Redis
  • storage/: Storage accounts
  • app/: App Service, IoT Hub, Logic Apps, SignalR
  • services/: Automation, Search, Service Bus

Contributing

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/my-feature)
  3. Make your changes
  4. Run tests and linting
  5. Submit a pull request

License

MIT License

Support & Contact

For questions, issues, or feature requests, please open an issue on GitHub or contact the maintainer.