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

ghofundme

v1.2.2

Published

An SDK to Integrate The ghofund me Lens Application

Readme

GhoFundMe SDK

npm version

A collection of React components for creating a GhoFundMe application.

🚀 Installation

Install the package using npm:

npm install ghofundme

🔧 Usage

import { Gbutton, Gmodal} from 'ghofundme';

Use the components in your React application Example:

const MyComponent = () => {
  return (
    <div>
      <Card>
        <p>Your content goes here!</p>
      </Card>

      <Gbutton onClick={() => console.log('Button clicked')} subscription={true} />

      <Gmodal isOpen={true} onClose={() => console.log('Modal closed')} subscription={false}>
        {/* Modal content */}
      </Gmodal>

      {/* Include other components as needed */}
    </div>
  );
};

📖 Documentation

Gbutton Component Documentation

Overview

The Gbutton component is a React functional component that represents a button for subscription. It provides a visual indication of the subscription status and allows users to toggle between subscribing and unsubscribing.

Usage

import React from 'react';
import { Gbutton } from 'path-to-your-component/Gbutton';

const MyComponent = () => {
  const handleButtonClick = () => {
    // Handle button click logic
  };

  return (
    <div>
      <Gbutton onClick={handleButtonClick} subscription={/* boolean value */} />
    </div>
  );
};

Props

onClick: () => void A required function that will be called when the button is clicked. It should handle the logic associated with the button click.

subscription: boolean A required boolean value indicating the subscription status. If true, the button will display "Subscribed"; otherwise, it will display "Subscribe".

Styles

The component applies styling to create a visually appealing button with a yellow border. It transitions to a white background on hover.

Example

import React, { useState } from 'react';
import { Gbutton } from 'path-to-your-component/Gbutton';

const ExampleComponent = () => {
  const [isSubscribed, setSubscribed] = useState(false);

  const handleButtonClick = () => {
    // Toggle subscription status
    setSubscribed(!isSubscribed);
  };

  return (
    <div>
      <Gbutton onClick={handleButtonClick} subscription={isSubscribed} />
    </div>
  );
};

Gmodal Component Documentation

Overview

The Gmodal component is a React functional component that represents a modal for subscription details. It includes a stepper to guide users through the subscription process and displays relevant information at each step.

Usage

import React, { useState } from 'react';
import { Gmodal } from 'path-to-your-component/Gmodal';

const ExampleComponent = () => {
  const [modalOpen, setModalOpen] = useState(false);
  const [subscription, setSubscription] = useState(/* boolean value */);

  const handleModalClose = () => {
    // Handle modal close logic
    setModalOpen(false);
  };

  return (
    <div>
      {/* Open modal button */}
      <button onClick={() => setModalOpen(true)}>Open Modal</button>

      {/* Gmodal component */}
      <Gmodal isOpen={modalOpen} onClose={handleModalClose} subscription={subscription} />
    </div>
  );
};

Props

isOpen: boolean A required boolean value indicating whether the modal is open or closed.

onClose: () => void A required function that will be called when the modal is closed. It should handle any logic associated with closing the modal.

subscription: boolean A required boolean value indicating the subscription status.

State

The component uses local state to manage the stepper, token details, and slider values.

step: Current step in the subscription process. tokenName, tokenCode: Name and code for the subscription token. Tokenprice: Price per token in GHO. sliderValue: Value of the slider indicating token quantity.

Example

import React, { useState } from 'react';
import { Gmodal } from 'path-to-your-component/Gmodal';

const ExampleComponent = () => {
  const [modalOpen, setModalOpen] = useState(false);
  const [subscription, setSubscription] = useState(false);

  const handleModalClose = () => {
    // Handle modal close logic
    setModalOpen(false);
  };

  return (
    <div>
      {/* Open modal button */}
      <button onClick={() => setModalOpen(true)}>Open Modal</button>

      {/* Gmodal component */}
      <Gmodal isOpen={modalOpen} onClose={handleModalClose} subscription={subscription} />
    </div>
  );
};