skip to content
mpkcn

~/docs/introduction

Introduction

A terminal-flavoured React UI kit you install by copying source, not by adding a package.

What is mpkcn?

mpkcn is a set of 35 React components with a terminal feel: a login-style boot screen, terminal windows and shells, a command palette, a tmux status bar, and quiet effects like grain, spotlight and scroll reveals. Browse them all, running live, in the gallery. They come from the portfolio of MpK and are now packaged so anyone can use them.

It is not a library you install from npm. Like shadcn/ui, you run one command and the component's source is copied into your project:

terminal
npx mpkcn add boot-screen

From then on the code is yours. Read it, change the timings, rename the props, delete what you don't need. There is no package to upgrade and no API to fight.

Principles

  • You own the code. Every component is one readable file (plus a helper when needed), styled with Tailwind classes.
  • Tokens, not colors. Components only use eight --mpk-* CSS variables, so a theme change is a few lines of CSS. See Theming.
  • Dark first, light ready. Dark is the default; every token has a light value too, switched with next-themes.
  • Quiet details. Square corners, hairline borders, no shadows, amber and blue accents, monospace where it means something.
  • Accessible by default. Visible focus, labelled icon buttons, and prefers-reduced-motion respected everywhere.

Components

ComponentWhat it doesExtra npm deps
Arch DiagramA small architecture diagram of boxes on a grid joined by right-angled lines; pick a box to light up its links and print its details.none
ASCII ImageAn image that starts as a wall of flickering code glyphs and decodes into the real picture in a left-to-right sweep.none
Back to TopA small square button that appears after the first screen and scrolls back up, with a reduced-motion jump and optional focus target.none
Boot ScreenA tuigreet-style login screen with a typed username, password dots and optional matrix rain that plays before your page appears.none
Case CardA project case study card: name, one-liner, tags, links and a screenshot beside a spec-sheet list of features.none
Command PaletteA terminal-style Ctrl+K command palette with groups, fuzzy word filtering and full keyboard control, as a dialog or inline.none
CursorA terminal-style pointer follower, a block caret with a trailing square ring and magnetic buttons, that steps aside for touch, text fields, the keyboard and reduced motion.none
Env CardContact or config details shown as a syntax-colored .env file, with links, copy buttons and masked secrets.none
EyebrowA small mono label for above a heading that types itself out, with a block cursor, as it scrolls into view.none
Feature ListA spec-sheet list of label and value rows between hairlines, sliding in one by one.framer-motion
Fetch CardA neofetch-style info card: ASCII art, a user@host header, key / value rows and a palette strip, with lines that slide in and art that tilts towards the pointer.framer-motion
File ExplorerA ranger-style file browser with Miller columns, a preview pane, a path bar and a / filter, driven entirely from the keyboard.none
GrainA static film-grain overlay in two blend layers that stays visible on both the dark and the light theme, at no per-frame cost.none
Image PlaceholderA framed image slot that shows a striped placeholder with a mono label until the image exists or when it fails to load.none
KbdA keyboard key badge with a thick bottom edge, for single keys or combos like Ctrl + K.none
KonamiA useKonami hook and an easter-egg component that fires a callback and plays matrix rain when someone types the Konami code.none
Letter RevealSplits a heading into letters that spring up and flip into place one after another.framer-motion
Media LightboxAn accessible image and video lightbox with arrows, keyboard and swipe navigation, thumbnails, click-to-zoom and a focus trap.none
Parallax ImageAn image in a viewfinder frame that drifts with the pointer and with scroll, and holds still under reduced motion.framer-motion
Prompt FooterA site footer laid out as a shell session: ls prints your link columns, date the copyright and an optional live clock, and the last prompt blinks.none
RevealFades and slides content in as it scrolls into view, and keeps still under reduced motion.framer-motion
RoadmapA roadmap of milestones joined by a path that draws itself as you scroll, with a marker travelling along it and stops that light up when reached.none
Scene CanvasA slow wave rippling through a grid of dots on a canvas, capped at 30fps and paused off screen, in hidden tabs, on weak devices and under reduced motion.none
Scroll HintAn animated scroll-down indicator (line, chevron or mouse) that fades out as you scroll and can jump to the next section.framer-motion
Scroll ProgressA thin accent bar that fills as the page or a scroll container is scrolled.none
Section DividerA terminal-style break between sections: hairlines grow out and a linked label types "EOF about $ cd ../work".none
Section RailA slim side rail of numbered dots that tracks the section in view and jumps to a section on click.none
Shortcuts DialogA keyboard-shortcut cheat sheet in a terminal-style dialog that opens with "?".none
Site HeaderA sticky terminal-style top bar with a logo slot and block cursor, numbered links with a sliding active marker, an actions slot and a drop-down mobile menu.framer-motion
SpotlightA panel with a soft accent glow that follows the pointer while it hovers, drawn in CSS without re-rendering.none
Tech StackA tech stack grouped by category, as a stack.json file or a chip grid, with optional icons and a jq-style detail panel for the picked item.framer-motion
Terminal FormA form that runs like a terminal prompt: one question at a time, editable answers, then a confirm step that hands the values to your callback.none
Terminal ShellAn interactive fake shell: you pass the commands, it handles the prompt, history, tab completion, help, clear and Ctrl+L.none
Terminal WindowA terminal window with title bar and dots that types out commands and their output line by line, then shows your content.none
Theme ToggleA dark and light switch for next-themes, as a round icon button or a mono text flag, with no hydration flash.next-themes
Tmux BarA tmux-style status bar with a session block, clickable windows, custom segments, a clock, uptime and scroll position.none

Next steps