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

shaft-flex-guide

v1.0.0

Published

Golf shaft flex recommendation by swing speed. Charts: https://golflaunchlab.com/guides/golf-shaft-flex-chart

Readme

shaft-flex-guide

Golf shaft flex recommendation by swing speed. Get instant, data-backed shaft flex and weight suggestions for driver and irons based on club head speed and swing tempo.

For full charts and fitting guides, visit GolfLaunchLab:


Installation

Python (pip)

pip install shaft-flex-guide

JavaScript (npm)

npm install shaft-flex-guide

Python Usage

from shaft_flex_guide import recommend_flex, get_full_recommendation

# Single club recommendation
result = recommend_flex(swing_speed=95, club_type="driver", tempo="medium")

print(result["recommended_flex"])          # "S"
print(result["flex_label"])                # "Stiff (S)"
print(result["shaft_weight_range_grams"])  # "55-70g graphite"
print(result["explanation"])
# "At 95 mph with medium tempo, a Stiff (S) flex driver shaft will give you
#  the best combination of control and launch."

# Iron recommendation
iron_result = recommend_flex(swing_speed=75, club_type="iron", tempo="fast")
print(iron_result["recommended_flex"])     # "R/S" shifted to "S"

# Comprehensive driver + iron recommendation
full = get_full_recommendation(driver_speed=100, tempo="medium")
print(full["summary"])
# "Driver: S flex (55-70g graphite); Irons: S flex (85-105g steel/graphite)"

print(full["driver"]["explanation"])
print(full["iron"]["explanation"])

# Provide explicit iron speed
full2 = get_full_recommendation(driver_speed=100, iron_speed=78, tempo="slow")
print(full2["summary"])

Parameters

recommend_flex(swing_speed, club_type="driver", tempo="medium")

| Parameter | Type | Values | Description | |-----------|------|--------|-------------| | swing_speed | float | any | Club head speed in mph | | club_type | str | "driver", "iron" | Which club (default: "driver") | | tempo | str | "slow", "medium", "fast" | Swing tempo (default: "medium") |

Returns a dict with: recommended_flex, flex_label, flex_range, shaft_weight_range_grams, explanation.

get_full_recommendation(driver_speed, iron_speed=None, tempo="medium")

| Parameter | Type | Values | Description | |-----------|------|--------|-------------| | driver_speed | float | any | Driver head speed in mph | | iron_speed | float or None | any | 7-iron speed in mph (estimated as ~78% of driver if omitted) | | tempo | str | "slow", "medium", "fast" | Swing tempo (default: "medium") |

Returns a dict with: driver (recommend_flex result), iron (recommend_flex result), summary.


JavaScript Usage

const { recommendFlex, getFullRecommendation } = require("shaft-flex-guide");

// Single club recommendation
const result = recommendFlex(95, "driver", "medium");

console.log(result.recommended_flex);         // "S"
console.log(result.flex_label);               // "Stiff (S)"
console.log(result.shaft_weight_range_grams); // "55-70g graphite"
console.log(result.explanation);
// "At 95 mph with medium tempo, a Stiff (S) flex driver shaft will give you
//  the best combination of control and launch."

// Fast-tempo iron recommendation
const ironResult = recommendFlex(75, "iron", "fast");
console.log(ironResult.recommended_flex); // "S" (shifted from R/S due to fast tempo)

// Comprehensive recommendation
const full = getFullRecommendation(100, null, "medium");
console.log(full.summary);
// "Driver: S flex (55-70g graphite); Irons: S flex (85-105g steel/graphite)"

// Provide explicit iron speed
const full2 = getFullRecommendation(100, 78, "slow");
console.log(full2.driver.recommended_flex); // "R" (S shifted softer by slow tempo)
console.log(full2.iron.recommended_flex);   // "R/S"

Flex Reference

| Driver Speed (mph) | Flex | Label | |---|---|---| | Under 60 | L | Ladies | | 60–74 | A | Senior/Ladies | | 75–94 | R | Regular | | 95–104 | S | Stiff | | 105–114 | X | Extra Stiff | | 115+ | TX | Tour Extra Stiff |

Tempo adjustments shift one flex stiffer (fast) or softer (slow).

For the full interactive chart, see golf-shaft-flex-chart on GolfLaunchLab.


Related Resources


License

MIT License. Copyright 2026 GolfLaunchLab.