A simple, clean terminal-based CLI template with a web interface. Perfect for building command-line applications with a retro terminal aesthetic.
- 🖥️ Retro terminal interface
- ⌨️ Command-line interface
- 🎨 Customizable styling
- 📱 Responsive design
- 🚀 Built with Express.js
npm installnpm startOr for development with auto-reload:
npm run devThe application will be available at http://localhost:3000
/help- Show available commands/clear- Clear the terminal screen/time- Display current time/echo <text>- Echo back the text
Ctrl+L- Clear displayCtrl+C- Clear inputPage Up/Down- Scroll through outputCtrl+End- Scroll to bottomCtrl+Home- Scroll to top
Edit server.js and add your command handlers in the /api/command endpoint:
else if (command === '/mycommand') {
res.json({
type: 'response',
message: 'Your response here'
});
}Customize the terminal appearance by editing public/style.css:
- Change colors in the CSS variables
- Modify fonts and sizes
- Adjust terminal dimensions
├── server.js # Express server and command handlers
├── package.json # Dependencies and scripts
├── public/
│ ├── index.html # Terminal UI
│ ├── script.js # Client-side logic
│ └── style.css # Terminal styling
└── README.md # This file
MIT