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

@bluehat8/my-own

v0.5.0

Published

Customizable UI components library for React and Next.js

Downloads

40

Readme

@bluehat8/my-own

Customizable UI components for React/Next.js with automatic dark/light mode.

Storybook npm

Installation

npm install @bluehat8/my-own

Setup (3 steps)

1. Import styles in your App.tsx

import "@bluehat8/my-own/styles";

2. Add source/content for Tailwind

Tailwind v4+ (use @source in CSS):

/* global.css */
@source "../node_modules/@bluehat8/my-own/dist/**/*.js";

Tailwind v3.x (use content in config):

// tailwind.config.js
module.exports = {
  content: [
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/@bluehat8/my-own/dist/**/*.js"
  ],
}

3. Set theme (optional)

<!-- Light mode -->
<body data-theme="light">

<!-- Dark mode (default) -->
<body>

Auto-detect: The package automatically uses light/dark based on system preference.


Components

BirthDateSelect

import { BirthDateSelect } from '@bluehat8/my-own';

<BirthDateSelect
  value={date}
  onChange={setDate}
  minAge={18}
  maxAge={100}
/>

SearchableSelect

import { SearchableSelect } from '@bluehat8/my-own';

<SearchableSelect
  options={[{ value: 'us', label: 'United States' }]}
  value={selected}
  onChange={setSelected}
  placeholder="Select..."
/>

PhoneInput

import { PhoneInput } from '@bluehat8/my-own';

<PhoneInput
  value={phone}
  onChange={(e) => setPhone(e.target.value)}
  onRegionChange={setCode}
  defaultCountryCode="+1"
/>

CedulaInput

import { CedulaInput } from '@bluehat8/my-own';

<CedulaInput
  value={cedula}
  onChange={setCedula}
  format="NI"  // "NI", "CR", or "custom"
/>

FormField

import { FormField } from '@bluehat8/my-own';
import { Mail, Lock, User } from 'lucide-react'; // or any icon library

// With icon (ReactNode)
<FormField
  label="Email"
  placeholder="Enter email"
  type="email"
  icon={<Mail size={18} />}
  value={email}
  onChange={setEmail}
  error={errors.email}
/>

// With icon (image URL)
<FormField
  label="Username"
  placeholder="Enter username"
  icon="/icons/user.svg"
  value={username}
  onChange={setUsername}
/>

// Password with toggle and icon
<FormField
  label="Password"
  placeholder="Enter password"
  icon={<Lock size={18} />}
  showPasswordToggle
  value={password}
  onChange={setPassword}
/>

// Multiline with icon
<FormField
  label="Description"
  placeholder="Enter description"
  icon={<User size={18} />}
  multiline
  rows={4}
  value={description}
  onChange={setDescription}
/>

Customization

classNames prop

All components accept a classNames prop for granular styling:

<PhoneInput
  classNames={{
    container: '',
    inputContainer: 'bg-white',
    dialCode: 'text-gray-800',
    dropdown: 'bg-white',
    searchContainer: 'bg-gray-50',
    searchInput: 'bg-white text-gray-900',
    countryList: 'bg-white',
    countryOption: 'hover:bg-gray-100',
    countryName: 'text-gray-900',
    countryDialCode: 'text-gray-500',
    phoneInput: 'text-gray-900',
  }}
/>

CSS Variables

Override in your CSS:

:root {
  --my-primary: #your-brand-color;
  --my-bg-base: #ffffff;
  --my-border: #e5e7eb;
  --my-text: #111827;
  --my-radius: 0.5rem;
}

License

MIT