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