🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@kjanat/404-page

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kjanat/404-page

Custom 404 error page for KajKowalski Edge.

latest
Source
npmnpm
Version
2.4.0
Version published
Maintainers
1
Created
Source

404 - This host is not configured

NPM Version

Custom 404 error page for KajKowalski Edge.

Preview of the 404 page
View opposite theme preview Preview of the 404 page (opposite theme)

A storm-themed page that displays "404 - This host is not configured" when a visitor reaches an unconfigured hostname.
The page dynamically inserts the current hostname, features animated lightning bolts over a dark atmospheric background, and automatically activates a calm mode for users who prefer reduced motion.

add 404 page to a github pages deployment
- run: curl -fsSLo dist/404.html https://esm.sh/@kjanat/404-page/index.html

or use the composite action (writes 404.html into directory):

- uses: kjanat/404@master
  with: { directory: dist/site }

The action bakes in mode: path by default, so the page reads as "this link is broken, the site is fine" with climb-up links — the right voice for Pages, where a 404 means the path is missing, not the whole host. Set mode: domain for an unconfigured-host page, or mode: auto to detect at runtime instead.

- uses: kjanat/404@master
  with: { directory: dist/site, mode: auto }

Note that mode: auto is weaker than the default on Pages: runtime detection only upgrades to the path voice when it can prove the site is live — a same-host referrer or a *.github.io host. A direct hit on a custom Pages domain (or traffic arriving from another site) falls back to domain voice, which is why path is baked in by default.

FAQs

Package last updated on 29 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts