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

golf-distance-calc

v1.0.0

Published

Golf club distance calculator based on swing speed data. Full charts: https://golflaunchlab.com/guides/golf-club-distance-chart

Downloads

177

Readme

golf-distance-calc

GolfLaunchLab PyPI npm License: MIT

Golf club distance calculator based on PGA Tour swing speed data. Estimates carry and total distance for all 13 major club types given a swing speed and optional altitude.

For full interactive distance charts, shaft flex guides, and launch monitor reviews, visit GolfLaunchLab.com.


Installation

Python

pip install golf-distance-calc

JavaScript / Node.js

npm install golf-distance-calc

Usage

Python

from golf_distance_calc import estimate_distance, get_all_distances

# Single club estimate
result = estimate_distance("driver", 100)
print(result)
# {
#   'carry_yards': 243.4,
#   'total_yards': 265.3,
#   'ball_speed_mph': 148.0,
#   'launch_angle_deg': 10.5
# }

# With altitude (Denver, CO — ~5,280 ft)
result = estimate_distance("7iron", 85, altitude_ft=5280)
print(f"Carry: {result['carry_yards']} yards")
# Carry: 185.3 yards

# Full bag distances from driver swing speed
bag = get_all_distances(100)
for club, distances in bag.items():
    print(f"{club:8s}: {distances['carry_yards']:5.1f} carry / {distances['total_yards']:5.1f} total")

Example output for get_all_distances(100):

driver  : 243.4 carry / 265.3 total
3wood   : 236.4 carry / 255.3 total
5wood   : 233.0 carry / 249.3 total
hybrid  : 225.7 carry / 241.5 total
4iron   : 226.8 carry / 242.7 total
5iron   : 220.9 carry / 234.2 total
6iron   : 215.2 carry / 228.1 total
7iron   : 205.6 carry / 217.9 total
8iron   : 197.7 carry / 209.6 total
9iron   : 188.2 carry / 199.5 total
pw      : 178.3 carry / 187.2 total
sw      : 160.3 carry / 166.7 total
lw      : 148.2 carry / 152.6 total

JavaScript

const { estimateDistance, getAllDistances } = require('golf-distance-calc');

// Single club estimate
const result = estimateDistance('driver', 100);
console.log(result);
// {
//   carryYards: 243.4,
//   totalYards: 265.3,
//   ballSpeedMph: 148.0,
//   launchAngleDeg: 10.5
// }

// With altitude (Denver, CO — ~5,280 ft)
const result2 = estimateDistance('7iron', 85, 5280);
console.log(`Carry: ${result2.carryYards} yards`);
// Carry: 185.3 yards

// Full bag distances from driver swing speed
const bag = getAllDistances(100);
for (const [club, distances] of Object.entries(bag)) {
  console.log(`${club}: ${distances.carryYards} carry / ${distances.totalYards} total`);
}

Supported Clubs

| Club | Abbrev | |------|--------| | Driver | driver | | 3-Wood | 3wood | | 5-Wood | 5wood | | Hybrid | hybrid | | 4-Iron | 4iron | | 5-Iron | 5iron | | 6-Iron | 6iron | | 7-Iron | 7iron | | 8-Iron | 8iron | | 9-Iron | 9iron | | Pitching Wedge | pw | | Sand Wedge | sw | | Lob Wedge | lw |


Methodology

Distances are calculated from PGA Tour baseline data (driver ~113 mph) and scaled linearly by swing speed ratio. Ball speed is derived from the smash factor for each club type. Altitude adjustment adds approximately 2% carry distance per 1,000 feet of elevation.

For a deeper explanation of the methodology, distance charts by handicap level, and how launch monitors measure these numbers, see:


Related


License

MIT License — copyright 2026 GolfLaunchLab. See LICENSE for details.