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

@gee-ui/react

v1.0.0-beta.5

Published

Single source of truth react component library for all things shadcn/ui.

Downloads

13

Readme

@gee-ui/react

React (TypeScript) component library which serves as a wrapper library around shadcn/ui. Unlock the same ease of use and customization for all components but with a single source of truth library.

shadcn has been the go-to choice for a ton of React applications, after using it within multiple projects I came across 3 problems which this library aims to solve:

1. Dependency management

There are a lot of times where you have to install dependencies like Radix to get the components working end-to-end. These dependencies can quickly add up leaving you with the responsibility to maintain these dependencies over time. Instead of maintaining 10+ dependencies wouldn't it be nice to just maintain one?

Before

"@radix-ui/react-accordion": "...",
"@radix-ui/react-alert-dialog": "...",
"@radix-ui/react-aspect-ratio": "...",
"@radix-ui/react-avatar": "...",
"@radix-ui/react-checkbox": "...",
"@radix-ui/react-collapsible": "...",
"@radix-ui/react-context-menu": "...",
"@radix-ui/react-dialog": "...",
"@radix-ui/react-dropdown-menu": "...",
"@radix-ui/react-hover-card": "...",
"@radix-ui/react-label": "...",
"@radix-ui/react-menubar": "...",
"@radix-ui/react-navigation-menu": "...",
"@radix-ui/react-popover": "...",
"@radix-ui/react-progress": "...",
"@radix-ui/react-radio-group": "...",
"@radix-ui/react-scroll-area": "...",
"@radix-ui/react-select": "...",
"@radix-ui/react-slider": "...",
"@radix-ui/react-slot": "...",
"@radix-ui/react-switch": "...",
"@radix-ui/react-tabs": "...",
"@radix-ui/react-toggle": "...",
"@radix-ui/react-toggle-group": "...",
"@radix-ui/react-tooltip": "...",
"clsx": "...",
"cmdk": "...",
"cva": "...",
"embla-carousel-react": "...",
"input-otp": "...",
"lucide-react": "...",
"react-day-picker": "...",
"react-resizable-panels": "...",
"sonner": "...",
"tailwind-merge": "...",
"tailwindcss-animate": "..."
... that's 36 dependencies and counting! hopefully you get my point

After

"@gee-ui/react": "^1.0.0"

2. Duplication of the same work in multiple projects

The problem above multiplies over time especially if you use it in multiple projects.

A big inspiration for this library is the React 19 release ref as a prop change. This is a long awaited change especially for someone who uses react-hook-form which relies on refs to coordinate form changes. The only thing I dread about these changes is the amount of components I will have to remove forwardRef from.

Before

Large Github pull request

After

"@gee-ui/react": "^1.0.0"" -> "@gee-ui/react": "^2.0.0"

3. Additional opt-in functionality & features

For good reason shadcn keeps most components minimal giving users the flexibility to build on top of them. This library aims to not only provide those minimal components but also opt-in batteries included components as well.