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

@rohansm14/react-pages

v1.2.0

Published

A React library for building pages with a simple and intuitive API.

Readme

react-pages

A lightweight React component library for common utility pages.



Installation

npm install @rohansm14/react-pages

Peer dependencies: Make sure you have react and react-dom installed in your project.


Getting Started

Import the component you need and drop it into your app.

<LostPage404 />

A plug-and-play 404 page with sensible defaults. Every aspect is customizable via props.

Basic Usage

import { LostPage404 } from "@rohansm14/react-pages";

<LostPage404 />

With Custom Props

<LostPage404
  bgcolor="linear-gradient(135deg, #667eea, #764ba2, red)"
  color="#ffffff"
  title="Oops! Wrong Turn"
  message="The page you're looking for has vanished into the void."
  homelink="/home"
  buttonmessage="Take me home"
  buttonbgcolor="#6366f1"
  buttoncolor="#ffffff"
  scaleonhover={true}
/>

<Forbidden403 />

A plug-and-play 403 page with sensible defaults. Every aspect is customizable via props.

Basic Usage

import { Forbidden403 } from "@rohansm14/react-pages";

<Forbidden403 />

With Custom Props

<Forbidden403
  bgcolor="linear-gradient(135deg, darkblue, blue, skyblue, skyblue, skyblue)"
  color="#ffffff"
  title="Aaah! Introuder Alert"
  message="You are not alolowed to wonder in here. Get out!!"
  homelink="/home"
  buttonmessage="Retreat to home"
  buttonbgcolor="#6366f1"
  buttoncolor="#ffffff"
  scaleonhover={true}
/>

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | bgcolor | string | "#ffffff" or "linear-gradient(135deg, red, blue, green)" | Background of the page | | color | string | "#000000" | Text color | | scaleonhover | bool | false | Enables a scale + translate animation on the 404 heading on hover | | codesize | string | "4rem" | Font size of the 404 code | | title | string | "Page Not Found" | Heading below the error code | | titlesize | string | "2rem" | Font size of the title | | message | string | "Sorry, the page you are looking for does not exist" | Subtext below the title | | messagesize | string | "1rem" | Font size of the message | | homelink | string | "/" | URL the button navigates to | | buttonmessage | string | "Go back Home" | Label on the button | | buttonbgcolor | string | "#000000" | Background color of the button | | buttoncolor | string | "#ffffff" | Text color of the button | | buttonsize | string | "1rem" | Font size of the button text |


Contributing

Contributions are welcome! Please read the Contributing Guide before submitting a PR.


License

MIT © Rohan S Mirjankar