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

wedge-distance-calc

v1.0.0

Published

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

Readme

wedge-distance-calc

GolfLaunchLab PyPI npm License: MIT

Golf wedge distance calculator based on real-world swing speed data. Estimates carry and total distance for all 5 wedge types (PW, GW, SW, LW, 60-degree) given a clubhead speed. Includes a gapping chart feature for full, 3/4, and 1/2 swing distances.

For full interactive wedge distance charts, club distance guides, and launch monitor reviews, visit GolfLaunchLab.com.


Installation

Python

pip install wedge-distance-calc

JavaScript / Node.js

npm install wedge-distance-calc

Usage

Python

from wedge_distance_calc import estimate_distance, get_all_distances, get_gapping_chart

# Single wedge estimate
result = estimate_distance("PW", 85)
print(result)
# {
#   'wedge': 'PW',
#   'loft': 46,
#   'swing_speed': 85.0,
#   'carry_yards': 117.5,
#   'total_yards': 126.9
# }

# All wedges at a given speed
all_wedges = get_all_distances(85)
for wedge, data in all_wedges.items():
    print(f"{wedge}: {data['carry_yards']} carry / {data['total_yards']} total")

# Full gapping chart (full / 3/4 / 1/2 swings)
chart = get_gapping_chart(85)
for wedge, swings in chart.items():
    for swing_type, data in swings.items():
        print(f"{wedge} {swing_type}: {data['carry_yards']} yards")

Example output for get_all_distances(85):

PW: 117.5 carry / 126.9 total
GW: 107.5 carry / 116.1 total
SW:  95.0 carry / 102.6 total
LW:  81.0 carry /  87.5 total
60:  75.0 carry /  81.0 total

JavaScript

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

// Single wedge estimate
const result = estimateDistance('PW', 85);
console.log(result);
// {
//   wedge: 'PW',
//   loft: 46,
//   swingSpeed: 85,
//   carryYards: 117.5,
//   totalYards: 126.9
// }

// All wedges at a given speed
const all = getAllDistances(85);
for (const [wedge, data] of Object.entries(all)) {
  console.log(`${wedge}: ${data.carryYards} carry / ${data.totalYards} total`);
}

// Full gapping chart
const chart = getGappingChart(85);
for (const [wedge, swings] of Object.entries(chart)) {
  for (const [swingType, data] of Object.entries(swings)) {
    console.log(`${wedge} ${swingType}: ${data.carryYards} yards`);
  }
}

Supported Wedges

| Wedge | Code | Loft | |-------|------|------| | Pitching Wedge | PW | 46° | | Gap Wedge | GW | 50° | | Sand Wedge | SW | 54° | | Lob Wedge | LW | 58° | | 60-Degree | 60 | 60° |


Methodology

Distances are calculated using linear interpolation between established data points at 60 mph and 110 mph clubhead speed. Total distance adds approximately 8% for roll. The gapping chart multiplies swing speed by 85% (3/4 swing) and 65% (1/2 swing) to estimate partial-swing distances.

For a deeper explanation of wedge distances, full club charts, and how launch monitors measure these numbers, see:


Related


License

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