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 🙏

© 2025 – Pkg Stats / Ryan Hefner

acme-dns-client

v0.0.3

Published

Automate creating DNS record for acme-middleware

Downloads

17

Readme

ACME DNS Client

DNS Client for acme-middleware, use to create DNS record automatically for acme challange.

Supported DNS providers:

  • Cloudflare: acme-dns-client/cloudflare

Table of contents

  • Installation
  • How to use
  • Enviroment variables
  • Changes
  • Question and Feedback

Installation

// For yarn
$ yarn add acme-middleware
// Or for npm
$ npm install acme-middleware --save

How to use

The following example demonstrate how to import acme-dns-client when using with acme-middleware


import exress from "express";

import AcmeMiddlware from "acme-middleware";
import DNSCloudflareClient from "acme-dns-client/cloudflare";

const expressApp = express();

// It is recomended to create AcmeMiddlware instance right after creating your express app
// to avoid acme-challenge handler being override
const acmeApp = new AcmeMiddlware({
  app: expressApp,
  dnsClient: new DNSCloudflareClient()
});

Setup enviroment variables

acme-dns-client need your Cloudflare ZoneID and the token key:

  • To set a default variable, use ACME_EXPRESS_CLOUDFLARE_ZONE_ID and ACME_EXPRESS_CLOUDFLARE_TOKEN
  • To set variable for a specific domain, use ACME_EXPRESS_CLOUDFLARE_ZONE_ID_yourdomain.com and ACME_EXPRESS_CLOUDFLARE_TOKEN_yourdomain.com

Here are the variables supported on acme-dns-client:

ACME_EXPRESS_CLOUDFLARE_ZONE_ID or ACME_EXPRESS_CLOUDFLARE_ZONE_ID_yourdomain.com: string

  • ZoneID of your domain in Cloudflare. To get the ZoneID, login into your Cloudflare. Navigate to "yourdomain.com > Overview", then look for "Zone ID" on the right side panel (desktop).
  • Default value: undefined

ACME_EXPRESS_CLOUDFLARE_TOKEN or ACME_EXPRESS_CLOUDFLARE_TOKEN_yourdomain.com: string

  • A auth token for your Cloudflare account. To generate a token, login to Cloudflare Dashboard, navigate to "My profile -> API Token"
  • Default value: undefined

Below is an example of a enviroment variables file

// .env
ACME_EXPRESS_CLOUDFLARE_ZONE_ID=example0zone0id
ACME_EXPRESS_CLOUDFLARE_TOKEN=example0token0key
ACME_EXPRESS_CLOUDFLARE_ZONE_ID_domain.com=example0zone0id0for0your0domain
ACME_EXPRESS_CLOUDFLARE_TOKEN_domain.com=example0token0for0your0domain

Changes

v0.0.2

  • added zone and token configuration for custom domain

v0.0.1

  • initiate

Question and Feedback

Please open a thread for feedback or question