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

@golfguiders/react

v1.0.6

Published

Embeddable GPS golf course explorer with satellite maps, shot planner, and live weather — drop-in component for React, Next.js, Remix, and all React-based web frameworks

Downloads

642

Readme

@golfguiders/react

Embed an interactive, GPS-enabled golf course explorer into your React or Next.js website. Drop in <GolfGuidersCourseWidget> to get a satellite-view map with hole navigation, shot planner, live weather, and more.

Works with

  • ✅ React 17+
  • ✅ Next.js (App Router and Pages Router)
  • ✅ Remix
  • ✅ Gatsby
  • ✅ Astro (with React integration)
  • ✅ Vite, Create React App, any React setup

Features

  • 🗺️ Interactive satellite-view golf course maps
  • 📍 Real-time GPS positioning on the course
  • ⛳ Hole-by-hole navigation with auto-rotation
  • 🎯 Shot planner with smart club recommendations
  • 🌦️ Live weather with wind direction compass
  • 📊 Scorecard, tee details, course rating & slope
  • 🏔️ Elevation profile & adjusted distances
  • 🎨 Fully configurable — show/hide features as needed

Installation

npm install @golfguiders/react
# or
yarn add @golfguiders/react

Quick start

import { GolfGuidersCourseWidget } from '@golfguiders/react';

export default function CourseView() {
  return (
    <GolfGuidersCourseWidget
      apiKey="YOUR_API_KEY"
      courseId="chambers-bay-123"
      setFlyover={true}
      style={{ width: '100%', height: 600 }}
    />
  );
}

Get an API key

Request your API key by emailing at email [email protected] or explore the website golfguiders.com to see what we do.

Props

Required

| Prop | Type | Description | |---|---|---| | apiKey | string | Your GolfGuiders API key |

Optional

| Prop | Type | Default | Description | |---|---|---|---| | baseUrl | string | https://widget.golfguiders.com | CDN URL hosting golfguiders.js | | courseId | string | — | Auto-load a specific course on mount (skips search) | | showSearch | boolean | true | Show the course search bar | | setDefaultGreenTarget | 'front' \| 'center' \| 'back' | 'center' | Default green target | | setFlyover | boolean | true | Animate camera when switching holes | | setShotPlanner | boolean | true | Enable the shot planner | | setElevation | boolean | false | Show elevation profile by default | | setGreenEdges | boolean | false | Show front/center/back distances | | setRatingSlope | boolean | false | Show course rating & slope | | setClubRecommendation | boolean | true | Show club hints on distance labels | | closeRedirectUrl | string | — | URL to redirect to when user closes the course | | hideElevation | boolean | false | Completely hide the elevation feature | | hideWeather | boolean | false | Completely hide the weather feature | | hideShotPlanner | boolean | false | Completely hide the shot planner | | hideGreenEdges | boolean | false | Completely hide front/back green | | hideRatingSlope | boolean | false | Completely hide rating & slope | | hideClubRecommendation | boolean | false | Completely hide club recommendations | | hideFlyover | boolean | false | Completely hide flyover toggle | | hideScorecard | boolean | true | Hide scorecard sidebar button | | gpsSim | boolean | false | Enable GPS simulation mode (testing) | | style | CSSProperties | — | Inline styles for the container <div> | | className | string | — | CSS class for the container <div> |

How it works

The wrapper renders a <div class="gg-maps"> and dynamically loads golfguiders.js from the GolfGuiders CDN. Your config is injected via window.GolfGuiders._config before the script runs.

Works with:

  • React 17+
  • Next.js (SSR-safe)
  • Remix, Vite-React, CRA, Gatsby

Troubleshooting

Widget shows "Loading…" forever

  • Verify apiKey is correct and active
  • Check the browser console for errors
  • Confirm your domain is authorized for this API key

Hydration warnings in Next.js

  • The widget only renders client-side; if you see SSR warnings, wrap in <Suspense> or use a dynamic import with ssr: false

License

MIT — see LICENSE.

Support

Maintainer

Saeed Afzal — CTO, GolfGuiders, Inc.