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

reusekit

v0.0.1-h

Published

Opensource-Reusable NextJS & NodeJS Components

Readme

ReuseKit

Version License Downloads

A modern, flexible, and accessible component library for Next.js applications. ReuseKit provides pre-built sections and components to help you build beautiful websites faster.

Features

  • 🎨 Pre-built Sections: Hero, Features, Testimonials, and more
  • 📝 Form Components: Input fields, validation, and form handling
  • 🔐 Authentication Components: Login, Registration, and Password Reset
  • 🎯 TypeScript Support: Full TypeScript support with comprehensive types
  • 📱 Responsive Design: Mobile-first and fully responsive components
  • Accessibility: WCAG compliant with ARIA attributes
  • 🎭 Customizable: Easy to customize with TailwindCSS or your own styles

Installation

npm install reusekit
# or
yarn add reusekit
# or
pnpm add reusekit

Quick Start

import { Hero, Testimonials } from 'reusekit';

export default function HomePage() {
  return (
    <>
      <Hero
        title="Welcome to My Site"
        subtitle="MODERN DESIGN"
        description="A beautiful hero section for your landing page."
        image={{
          src: "/hero-bg.jpg",
          alt: "Hero background"
        }}
        cta={{
          primary: {
            text: "Get Started",
            href: "#"
          },
          secondary: {
            text: "Learn More",
            href: "#"
          }
        }}
        overlay={true}
      />

      <Testimonials
        title="What Our Users Say"
        subtitle="Hear from our satisfied customers"
        variant="grid"
        testimonials={[
          {
            content: "Amazing components that saved us weeks of development time!",
            author: {
              name: "Jane Smith",
              title: "CTO",
              company: "Tech Corp"
            },
            rating: 5
          }
        ]}
      />
    </>
  );
}

Available Components

Section Components

Hero Section

The Hero component creates engaging landing sections with various layouts.

import { Hero } from 'reusekit';

<Hero
  title="Your Title"
  subtitle="Optional Subtitle"
  description="Your description here"
  image={{
    src: "/image.jpg",
    alt: "Description"
  }}
  variant="center" // 'left' | 'right' | 'center'
  overlay={true}
  backgroundColor="bg-gray-900"
  textColor="text-white"
/>

Props:

  • `title`: string (required) - Main heading text
  • `subtitle`: string - Optional subtitle above the title
  • `description`: string - Additional text content
  • `image`: { src: string; alt: string } - Background image configuration
  • `variant`: 'left' | 'right' | 'center' - Content alignment
  • `overlay`: boolean - Enable dark overlay on background image
  • `backgroundColor`: string - Background color class when no image
  • `textColor`: string - Text color class

Testimonials Section

Display customer testimonials in various layouts.

import { Testimonials } from 'reusekit';

<Testimonials
  title="Testimonials"
  subtitle="What our customers say"
  variant="grid"
  testimonials={[
    {
      content: "Great product!",
      author: {
        name: "John Doe",
        title: "CEO",
        company: "Company Inc",
        image: {
          src: "/john.jpg",
          alt: "John Doe"
        }
      },
      rating: 5
    }
  ]}
/>

Props:

  • `testimonials`: TestimonialItem[] (required) - Array of testimonial items
  • `variant`: 'grid' | 'slider' | 'single' - Layout variant
  • `title`: string - Section title
  • `subtitle`: string - Section subtitle
  • `backgroundColor`: string - Background color class
  • `textColor`: string - Text color class

Authentication Components

Login Component

A customizable login form component with email/password authentication.

import { LoginWithEmailPassword } from 'reusekit';

<LoginWithEmailPassword
  onSubmit={(email, password) => {
    // Handle login
  }}
  loginTitle="Welcome Back"
  emailLabel="Email Address"
  passwordLabel="Password"
  loginLabel="Sign In"
  colorScheme="blue"
/>

Props:

  • `onSubmit`: (email: string, password: string) => void - Handler for form submission
  • `loginTitle`: string - Form title
  • `emailLabel`: string - Email input label
  • `passwordLabel`: string - Password input label
  • `loginLabel`: string - Submit button text
  • `colorScheme`: string - Color theme for the form

Customization

Styling

ReuseKit components use TailwindCSS by default but can be customized using:

  1. TailwindCSS classes via className prop
  2. CSS variables for theming
  3. Direct CSS overrides

Example:

<Hero
  className="my-custom-hero"
  title="Custom Hero"
  backgroundColor="bg-brand-primary"
/>

Theme Customization

You can customize the default theme by adjusting your TailwindCSS configuration:

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'brand-primary': '#0066cc',
        'brand-secondary': '#2ec4b6',
      },
    },
  },
}

Browser Support

ReuseKit supports all modern browsers:

  • Chrome (and Chromium based browsers) 60+
  • Firefox 60+
  • Safari 12+
  • Edge 79+

TypeScript

ReuseKit is written in TypeScript and includes comprehensive type definitions. No additional installation is needed.

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

MIT © ReuseKit