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

not-found-pages

v0.0.7

Published

A collection of tree-shakable not found pages web components

Readme

not-found-pages

A lightweight npm package for easily integrating customizable "not-found" web components into JavaScript applications.

License: MIT

🚀 Features

  • 🔹 Simple integration with any JavaScript framework or plain HTML
  • 🎨 Customizable styles and messages
  • ⚡ Lightweight and dependency-free
  • 📦 Works with modern browsers

📦 Installation

npm install not-found-pages

or with Yarn:

yarn add not-found-pages

🌟 Usage

Basic Example

<!DOCTYPE html>
<html lang="en">
  <head>
    <script type="module">
      import "not-found-pages";
    </script>
  </head>
  <body>
    <neon-404></neon-404>
  </body>
</html>

Customizing the Component

<neon-404 title="Oops!" text="Page not found."></neon-404>

📖 API

| Attribute | Description | Default | Available styles | | ----------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------------------- | | color | Main color of the page | "#000000" | neon, simple-gradient, simple-image | | secondary-color | Secondary color of the page | "#2d2d2d" | neon, simple-gradient, simple-image | | tertiary-color | Tertiary color of the page | "#555555" | neon, simple-gradient, simple-image | | button-label | CTA label | "Go Home" | neon, simple-gradient, simple-image | | href | URL to redirect using the CTA | "/" | neon, simple-gradient, simple-image | | title | Main title in the page | "Oops!" | neon, simple-gradient, simple-image | | text | Description of the error in the page | "The page you are looking for might have been removed, had its name changed or is temporarily unavailable." | neon, simple-gradient, simple-image | | is-dark-mode | Set if the not-found-page should be rendered in a dark mode | false | simple-gradient | | image | src of the background image | '' | simple-image |

🎨 Available 404 Page Styles

The package provides the following built-in 404 page styles:

  • Neon
  • Simple Gradient
  • Simple Image

🚀 Using with Frameworks

Next.js

Create a custom 404 page in pages/404.js:

import "not-found-pages";

export default function NotFoundPage() {
  return <not-found message="Oops! Page not found."></not-found>;
}

Astro

Create a src/pages/404.astro file:

---
import "not-found-pages";
---

<not-found message="This page is lost in space."></not-found>

Svelte

Create a src/routes/404.svelte file:

<script>
  import "not-found-pages";
</script>

<not-found message="Page not found!"></not-found>

Angular

Create a not-found.component.ts file:

import { Component } from "@angular/core";

@Component({
  selector: "app-not-found",
  template: '<not-found message="Oops! Page not found."></not-found>',
  styleUrls: ["./not-found.component.css"],
})
export class NotFoundComponent {}

Then add the component to your routing module:

const routes: Routes = [{ path: "**", component: NotFoundComponent }];

🛠️ Development

Clone the repository:

git clone https://github.com/FranciscoDiazPaccot73/404-pages.git
cd 404-pages
npm install

Run a local development server:

cp test.example.html test.html
npm run build
serve .

open http://localhost:3000/test.html

📄 Changelog

See the CHANGELOG for details on new features, improvements, and bug fixes.