A Fun Terminal
For Your Website
Add an interactive terminal easter egg to your portfolio or website. Fully customizable themes, commands, and behaviors.
npm install one-terminalEverything You Need
A feature-rich terminal component that's easy to integrate and customize for any project.
Fully Themeable
Five built-in themes, or set your own colors, fonts and cursor to match your site.
Built-in Commands
Ships with essential commands like ls, cd, cat, tree, grep, head, tail, neofetch, history and more, with pipes, &&, quotes and tab completion out of the box.
Window Chrome Options
Choose between macOS, Windows, Linux styles, or no chrome at all.
Customizable Cursor
Block, underline, or beam cursor styles with optional blinking animation.
Add Custom Commands
Easily extend with your own commands. Full TypeScript support included.
Lightweight & Fast
Zero dependencies and about 16 KB gzipped. All you need is React 18 or newer.
Built-in Commands
Everything you need for a realistic terminal experience, ready to use out of the box.
Highly Customizable
Personalize every aspect of the terminal to match your design. Try it below!
Open Source MIT Component
one-terminal is licensed under an MIT License and it can be used everywhere for free. Contribution and feedback are always welcome in the one-terminal repository. Go leave me a star there!
Open GitHub1Install
npm install one-terminal2Usage
1import { Terminal } from "one-terminal";2 3// Define your virtual file system4const vfs = {5 kind: "directory",6 entries: {7 "readme.txt": {8 kind: "file",9 fileType: "text",10 content: "Welcome to One Terminal 👋",11 },12 },13} as const;14 15export default function App() {16 return <Terminal fileStructure={vfs} />;17}Quick Start
Get up and running in minutes. The only required prop is fileStructure which defines your virtual file system.
Learn more usage cases and explore advanced configurations in the full documentation.
View Documentation