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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-gfg

v1.1.8

Published

A React component library to display detailed profile information of Geeks for Geeks users.

Downloads

31

Readme

React-GFG

eact-GFG is a comprehensive React component library designed to easily showcase detailed profile information for Geeks for Geeks users. Ideal for embedding in portfolios or web applications.

Full Blog Post

Key Features

  • 📈 Profile Stats: Clean and detailed profile stats presented as reusable components.
  • 🎨 Customizable: Tailor themes and styles to match your application's design.
  • 🍀 Open Source: Released under the MIT License for flexibility and community contributions.

Installation

  • Install via npm:
npm install react-gfg
  • With Yarn:
yarn add react-gfg

Usage

Here’s a quick example of how to integrate the GFGProfile component into your application:

Example

import { GFGProfile } from "react-gfg";

function App() {
  return (
    <div className="w-full flex justify-center items-center">
      <GFGProfile username="bamacharan" />
    </div>
  );
}

export default App;

Alt text

Advanced Customization

You can change the profile picture using the img prop:

import { GFGProfile } from "react-gfg";

function App() {
  return (
    <div className="w-full flex justify-center items-center">
      <GFGProfile username="bamacharan" img={"imageURL.png"}/>
    </div>
  );
}

export default App;

Custom Profile Image Example

Or remove the profile picture entirely with the showImg prop:

import { GFGProfile } from "react-gfg";

function App() {
  return (
    <div className="w-full flex justify-center items-center">
      <GFGProfile username="bamacharan" ShowImg={"none"}/>
    </div>
  );
}

export default App;

No Profile Image Example

Custom CSS

The GFGProfile component uses the following customizable CSS classes:

Base Styles

  • .card:Main container for the profile card.
  • .profile-container: Contains the profile image and information.
  • .profile-image: The profile image itself.
  • .info-container: Holds the user's profile details.

Customizable Styles

  • body: Font family for the entire component.
  • .card: Background color and gradient of the card.
  • .username: Username text color and font weight.
  • .info-row: Styles for the information rows (e.g., institute rank, streaks).

For detailed information, check the here

Development

  • Clone the repository and install dependencies:
git clone https://github.com/BamaCharanChhandogi/react-gfg.git
  • Install the packages
npm install
#or
yarn install
  • To run example website
cd example

npm run dev
#or
yarn dev
  • Run the test
npm run test
#or
yarn test

Contributing

If you would like to contribute to this project, please follow these steps:

  • Fork the repo
  • Clone the repo git clone https://github.com/BamacharanChhandogi/react-gfg.git
  • Create your feature branch (git checkout -b feature/YourFeature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin feature/YourFeature)
  • Create a new Pull Request

License

react-gfg is released under the MIT license.

Thank You

Your contributions and feedback are what make React-GFG better! Thank you for being a part of this project.