Current collected state Current
Observed since 20 Oct, 19:58 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
404-creator
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.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"integrity": "sha512-8LofFuYmOc5hD/7Yvd+UYr7Cy7u7alagesD+DW1R2JYXEUtbdJ8BPzd26T8mSi7fx4YE+aRxr8PUgjrnlYvmAA==",
"shasum": "383edd42b023f7cda1631ae2462a636b08a4059d",
"tarball": "https://registry.npmjs.org/404-creator/-/404-creator-1.0.1.tgz",
"fileCount": 3,
"unpackedSize": 5008,
"signatures": [
{
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
"sig": "MEUCIQCrCpJR82BfwjD9fxbISNybc4guoMgb8tbRtp+vfgYS6AIgRwETXwCOBYo5aWP6NHoQ4Wy5fZNGiSkD65w14Gb+By0="
}
]
}Observed since 20 Oct, 19:58 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:3fb33703b9dc85ab8334f3fe6dafff719ada6e6ddf62ca6984db47a8f9e29029