Current collected state Current
Observed since 20 Oct, 19:58 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Generate beautiful 404 pages with animations in one line!
A zero-dependency package to generate beautiful, animated 404 pages with one line of JavaScript! Perfect for React, Vue, Next.js, and plain HTML projects.
npm install 404-creator
# or
yarn add 404-creator
# or
pnpm add 404-creator
import { create404 } from "404-creator";
// Minimal usage (default styling)
create404();
// With custom options
create404({
title: "Oops! Lost in Space",
message: "This page doesn't exist in our universe",
animation: "glitch",
color: "blue",
});
| Option | Type | Default | Description |
|---|---|---|---|
title | string | "404 - Page Not Found" | Main heading text |
message | string | "The page you're looking for doesn't exist." | Subtitle text |
animation | "floating" | "glitch" | "pulse" | "floating" | Animation style |
color | "purple" | "blue" | "red" | "green" | "purple" | Color theme |
import { useEffect } from "react";
import { create404 } from "404-creator";
function NotFoundPage() {
useEffect(() => {
create404({
title: "React 404",
animation: "pulse",
});
}, []);
return null; // This will replace the entire page
}
import { create404 } from "404-creator";
export default function Custom404() {
if (typeof window !== "undefined") {
create404();
}
return null;
}
You can override the default styles by adding your own CSS:
.container {
font-family: "Comic Sans MS", cursive;
}
.home-link {
background: #ff5722 !important;
}
This project is licensed under the MIT License.
Made with ❤️ by Manindra Bollam(manindra810@gmail.com)
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:58 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f30ba020ef66fe89504cf71dae8cfec28872499bc0568823f04ce0d147ccdbd6