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

aws-s3-deployer

v1.0.4

Published

AWS S3 deploy and CloudFront invalidation with OIDC support

Readme

aws-s3-deployer

CLI to upload a directory to S3 and optionally invalidate a CloudFront distribution.

Prerequisites

  • Install Bun — used to build and run the CLI
  • Configure AWS credentials (environment variables, shared credentials file, or OIDC provider)

Install

bun install

Build

bun run build

Usage

aws-s3-deployer \
  --folder ./dist/playground-1 \
  --bucket your-s3-bucket-name \
  --region eu-central-1 \
  --profile OIDC-PROFILE \
  --cloudfront-id E32XBZ9VWEFO0K

Options

| Option | Required | Description | | -------------------------- | -------- | ------------------------------------------------------------------------------------------------------ | | -f, --folder <path> | ✅ | Directory to deploy (e.g., dist/playground-1) | | -b, --bucket <name> | — | AWS S3 Bucket name (optional) — falls back to AWS_S3_DEPLOY_BUCKET | | -r, --region <region> | — | AWS Region (e.g., eu-central-1) (optional) — falls back to AWS_S3_DEPLOY_REGION | | -p, --profile <profile> | — | AWS Profile to use (supports OIDC profiles) | | -c, --cloudfront-id <id> | — | CloudFront Distribution ID to invalidate (optional) — falls back to AWS_S3_DEPLOY_CF_DISTRIBUTION_ID |

Local Development

# Type check
bun run typecheck

# Lint
bun run lint

# Lint and auto-fix
bun run lint:fix

# Format
bun run format

# Run tests (watch mode)
bun run test

# Run tests once
bun run test:run

# Lint + format + tests in one command
bun run check

# Link for local testing
bun link
aws-s3-deployer --help

Notes

  • The build script produces an ESM bundle in dist/ via Bun (the bin field points to dist/cli.js).
  • The prepare script runs bun run build automatically on install when publishing.
  • AWS credentials are resolved via @aws-sdk provider chain — OIDC profiles (e.g., for CI) work if configured in ~/.aws/config.
  • Linting is handled by oxlint, formatting by oxfmt.
  • Tests are written with Vitest and live in src/*.test.ts.
  • A Husky pre-commit hook runs bun run check (lint + format + tests) before every commit.

License

MIT