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

arc-plugin-custom-domain

v0.0.2

Published

This is a plugin for https://arc.codes to help setup a custom domain on CloudFront without pain!

Readme

arc-plugin-custom-domain

This is a plugin for https://arc.codes to help setup a custom domain on CloudFront without pain!

Features:

  • Creates all the necessary resources for a CloudFront CDN distribution
  • Optionally create DNS records in Route53 including an automatically verified certificate in ACM
  • Automatically detects @ws and adds magic same-origin route for _/wss; this enables session sharing to web socket lambda functions

Usage

npm install arc-plugin-custom-domain
  • If you want to use Route53 then use @dns
  • If you want to manage your DNS elsewhere then use @cdn

[!IMPORTANT] To use this plugin your application must be deployed in us-east-1. This is a limitation of how CloudFront works with API Gateway and ACM Certificates.

[!NOTE] This plugin requires a URLs to exist before you use it. Make sure you've deployed at least once before using this plugin with arc deploy and arc deploy --production respectively.

[!WARNING] This plugin will fail if used with an app that has never been deployed. You need to deploy the stack at least once before using this plugin. (API Gateway cannot create a domain mapping until it has been deployed at least once.)

@dns

Creates a CloudFront distribution, Route53 A alias record and ACM Certificate automatically; you need to specify domain and zone for the HostedZoneId. Buying/importing a domain w Route53 should automatically setup a HostedZone for you.

Example:

@app
myapp

@aws
region us-east-1

@http

@plugins
arc-plugin-custom-domain

@dns
staging b4.example.com
production example.com
zone XKDISW7D

@cdn

Creates a Cloudfront distribution; you need to specify staging domain, production domain and cert with an ACM Certificate ARN.

Requirements:

  • Create a certificate and verify it in ACM (AWS Certificate Manager) console in us-east-1 (ensure you set not only domain example.com but also add *.domain.com so same cert can be used for staging
  • After deployment; create an A record in your DNS registrar to point to the generated CloudFront distribution (look AWS CloudFront console to find this)

Example:

@app
myapp

@aws
region us-east-1

@http

@plugins
arc-plugin-custom-domain

@cdn
staging b4.example.com
production example.com
cert arn:aws:acm:us-east-1:555:certificate/xxx