▶ Open Source Component

GlitchTerminal

Retro CRT terminal · React / Next.js · TypeScript · Zero dependencies
glitch-terminal — classic
    type any text + Enter to submit trigger word glows green as you type 📱 tap terminal to open keyboard on mobile
    // 1. Copy GlitchTerminal.tsx + GlitchTerminal.module.css into your project // 2. Add VT323 font to your layout import { GlitchTerminal } from "@/components/GlitchTerminal"; // Classic (default) <GlitchTerminal /> // Custom preset <GlitchTerminal triggerWords={["hack", "root"]} color="#00ffee" alertText="INTRUSION DETECTED" soundSrc="/glitch.mp3" onGlitch={() => console.log("glitched!")} /> // Embedded (not full-screen) <GlitchTerminal height="400px" style={{ borderRadius: "8px" }} />
    PropTypeDefaultDescription
    triggerWordsstring[]["glitch"]Words that trigger the effect (case-insensitive)
    bootMessagesstring[]See READMELines shown on mount
    promptPrefixstring">_"Prefix before user input
    glitchDurationnumber3000Screen-shake duration in ms
    colorstring#66ff66Text & glow color
    backgroundstringDark green radialCSS background value
    alertTextstring"ABORT..."Overlay text on glitch
    soundSrcstringPath to audio file in /public
    soundVolumenumber1Volume 0–1
    glitchCharactersstringA–Z 0–9 + blockChars used for scramble
    onGlitch() => voidCallback on trigger
    onCommand(s: string) => voidCallback on Enter (non-trigger)
    showAlertbooleantrueShow overlay on glitch
    allowHTMLbooleantrueAllow HTML in boot messages
    heightstring"100vh"Terminal height
    classNamestringExtra class on wrapper