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

tfsummary

v1.1.0

Published

Beautify Terraform plan output with cost estimates

Downloads

290

Readme

tfsummary

Beautify Terraform plan output with built-in AWS cost estimates.

Features

  • Colored terminal output with resource diffs
  • HTML dark-themed reports
  • GitHub PR-ready markdown output
  • Built-in AWS cost estimates (no external tools required)
  • Accurate fixed-cost pricing for EC2, RDS, ALB, NAT Gateway, EBS
  • Usage-based resources (S3, SQS, Lambda) labeled honestly
  • Destructive change warnings
  • Field-level diffs for updated resources
  • Reads from file or stdin pipe

Installation

npm install -g tfsummary

Quick Start

# Generate a plan JSON
terraform plan -out=tfplan
terraform show -json tfplan > plan.json

# View summary in terminal
tfsummary plan.json

# Pipe from terraform
terraform show -json tfplan | tfsummary

# Specify AWS region for pricing
tfsummary plan.json --region us-west-2

Usage

Usage: tfsummary [options] [plan-file]

Beautify Terraform plan output with cost estimates

Arguments:
  plan-file                    Path to terraform show -json output file

Options:
  -V, --version                output the version number
  -f, --format <format>        Output format: terminal, html, markdown, json (default: "terminal")
  -o, --out <file>             Write output to file instead of stdout
  -r, --region <region>        AWS region for cost estimates (default: "us-east-1")
  --summary-only               Show only the summary, hide per-resource list
  -h, --help                   display help for command

Output Formats

Terminal (default)

tfsummary plan.json

Colored output with action icons, field diffs, and cost estimates.

HTML Report

tfsummary plan.json --format html --out report.html

Dark-themed HTML report suitable for sharing or embedding.

Markdown (for PRs)

tfsummary plan.json --format markdown

GitHub-flavored markdown with tables, diff blocks, and caution callouts for destructive changes.

JSON

tfsummary plan.json --format json

Parsed resource data as JSON for programmatic use.

Cost Estimation

tfsummary includes built-in AWS pricing data — no external tools or credentials required.

Fixed-cost resources (priced automatically):

  • EC2 instances (47 instance types)
  • RDS instances (PostgreSQL, MySQL, MariaDB)
  • Application & Network Load Balancers
  • NAT Gateways
  • EBS volumes
  • ElastiCache nodes
  • Elastic IPs

Usage-based resources (labeled as such):

  • S3, SQS, SNS, Lambda, DynamoDB, CloudWatch, API Gateway, CloudFront

Free resources (no cost shown):

  • IAM roles/policies, Security Groups, VPC, Subnets, Route53 records, ACM certificates, ECR, Secrets Manager

Pricing covers 12 AWS regions with regional multipliers applied automatically.

GitHub Actions

Add the included workflow to automatically comment plan summaries on PRs that modify Terraform files. Copy .github/workflows/terraform-summary.yml to your repo.

The workflow:

  1. Runs terraform plan on PRs that touch .tf or .tfvars files
  2. Generates a markdown summary with cost estimates
  3. Posts a sticky comment on the PR

License

MIT