This is a simple implementation of the top
command, which provides a dynamic real-time view of a running system. It is built using the GoTTH Stack for fun.
- Go: The backend language used for server-side logic and handling requests.
- Templ: A templating language for generating HTML templates in Go format.
- Tailwind CSS: A utility-first CSS framework for styling the application.
- HTMX: A library for adding interactivity and dynamic updates to web pages without relying heavily on JavaScript.
- gopsutil: A Go port of psutil (process and system utilities). GoTTH top relies heavily on this.
- Echo: A high-performance, extensible web framework for Go.
- daisyUI: A plugin for Tailwind CSS that adds a set of beautiful components and utilities.
- Alpine.js: A minimal JavaScript framework for building interactive web interfaces.
go install github.com/rangzen/gotth-top/cmd/gotth-top@latest
go install github.com/a-h/templ/cmd/templ@latest # CLI tool to watch templates
go mod tidy # Update dependencies
npm install -g onchange # Files Watcher