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

@bluedynamics/cdk8s-mailu

v0.3.5

Published

[![npm](https://img.shields.io/npm/v/@bluedynamics/cdk8s-mailu)](https://www.npmjs.com/package/@bluedynamics/cdk8s-mailu)

Readme

cdk8s-mailu

npm

License

📚 Full Documentation | Quick Start | Architecture

Overview

cdk8s-mailu is a CDK8S construct library that provides a type-safe, production-grade way to deploy Mailu mail server to Kubernetes. Generate complete Kubernetes manifests from TypeScript code with compile-time validation and IDE autocomplete.

Why cdk8s-mailu?

  • Type-Safe Configuration - Catch errors at compile time, not deploy time
  • Production-Grade Defaults - Resource limits and storage sizes based on real deployments
  • Modular Architecture - Enable/disable components with simple flags
  • Dedicated Dovecot Submission Service - Solves webmail email sending with clean architecture
  • Well-Documented - Comprehensive documentation following Diátaxis framework
  • Battle-Tested - Production deployment at kup6s.com with AMD64/ARM64 mixed nodes

See Complete Architecture →

Installation

npm install @bluedynamics/cdk8s-mailu
# or
yarn add @bluedynamics/cdk8s-mailu

Prerequisites: Kubernetes 1.28+, PostgreSQL, Redis, Node.js 18+

Full Prerequisites →

Quick Start

Create mailu.ts:

import { App } from 'cdk8s';
import { MailuChart } from '@bluedynamics/cdk8s-mailu';

const app = new App();

new MailuChart(app, 'mailu', {
  namespace: 'mailu',
  domain: 'example.com',
  hostnames: ['mail.example.com'],
  subnet: '10.42.0.0/16',  // Your Kubernetes pod CIDR
  timezone: 'UTC',

  database: {
    type: 'postgresql',
    postgresql: {
      host: 'postgres-rw',
      port: 5432,
      database: 'mailu',
      secretName: 'postgres-app',
      secretKeys: {
        username: 'username',
        password: 'password',
      },
    },
  },

  redis: {
    host: 'redis',
    port: 6379,
  },

  secrets: {
    mailuSecretKey: 'mailu-secrets',
    initialAdminPassword: 'mailu-secrets',
  },

  components: {
    webmail: true,   // Roundcube webmail
    clamav: false,   // Antivirus (requires ~1GB RAM)
  },

  storage: {
    storageClass: 'longhorn',
    dovecot: { size: '50Gi' },  // Mailbox storage
  },

  // Optional: Traefik ingress (requires Traefik installed)
  ingress: {
    enabled: true,
    type: 'traefik',
    traefik: {
      hostname: 'mail.example.com',
      certIssuer: 'letsencrypt-cluster-issuer',
      enableTcp: true,  // SMTP/IMAP/POP3 routes
    },
  },
});

app.synth();

Generate and deploy:

npx ts-node mailu.ts
kubectl apply -f dist/mailu.k8s.yaml

Complete Tutorial with Secrets & DNS →

Documentation

Comprehensive documentation following the Diátaxis framework:

📘 Tutorials - Learn by doing

🔧 How-To Guides - Practical solutions

  • Configure components
  • Customize resources
  • Set up TLS termination

💡 Explanation - Understanding the design

📚 Reference - Technical specifications

  • Configuration API reference
  • Component options
  • Resource defaults

Development

npm run build      # Compile + test + synth
npm run test       # Run tests (>96% coverage)
npm run synth      # Generate manifests only

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License

Apache License 2.0 - see LICENSE file for details.

Acknowledgments

  • Mailu - The mail server software
  • CDK8S - Cloud Development Kit for Kubernetes

📚 Full Documentation | 🚀 Quick Start | 🏗️ Architecture