{"id":19528435,"url":"https://github.com/x4trm/top-go","last_synced_at":"2026-06-11T18:31:21.167Z","repository":{"id":254002319,"uuid":"845150783","full_name":"x4trm/top-go","owner":"x4trm","description":"Unix Top program clone","archived":false,"fork":false,"pushed_at":"2024-09-12T15:53:39.000Z","size":1772,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T02:32:36.002Z","etag":null,"topics":["golang","unix"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/x4trm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-20T17:19:33.000Z","updated_at":"2024-09-12T15:53:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"49a1676c-6799-4da3-a5fe-7feebba47b73","html_url":"https://github.com/x4trm/top-go","commit_stats":null,"previous_names":["x4trm/top-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/x4trm/top-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4trm%2Ftop-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4trm%2Ftop-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4trm%2Ftop-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4trm%2Ftop-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x4trm","download_url":"https://codeload.github.com/x4trm/top-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4trm%2Ftop-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34213180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","unix"],"created_at":"2024-11-11T01:18:49.484Z","updated_at":"2026-06-11T18:31:21.128Z","avatar_url":"https://github.com/x4trm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go System Monitor\n\n## Overview\n\nThis project is a simple system monitor tool implemented in Go inspired by the `top` command in Linux. It provides real-time monitoring of system resources, displaying the 20 most CPU-intensive processes along with various system statistics such as CPU usage, memory usage, and load average.\n\n## Features\n\n- **Top Processes:** Displays the top 20 processes by CPU usage.\n- **System Information:** Shows uptime, load average, CPU usage breakdown, memory usage, and swap usage.\n- **Process Details:** Each process is shown with details including PID, user, priority, CPU usage, memory usage, command line, and CPU time.\n- **Real-Time Update:** The monitor refreshes every second to provide real-time updates.\n\n## Installation\n\nTo install the Go System Monitor, make sure you have Go installed, then clone this repository and build the project:\n\n```bash\n$ git clone https://github.com/x4trm/top-go.git\n$ cd top-go/cmd/top-go\n$ go build\n```\n\n## Usage\n\nRun the compiled binary\n\n```bash\n$ ./top-go\n```\n\n## Dependencies\n\nThis project uses the following Go libraries:\n`github.com/shirou/gopsutil/v3`: For retrieving system and process information.\n\n## Project Structure\n\n`main.go`: The main entry point of the application.  \n`internal/monitor/`: Contains the logic for collecting system and process information.  \n`internal/display/`: Contains the logic for rendering the collected data to the terminal.\n\n## Example Output\n\n![screen](./screen.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx4trm%2Ftop-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx4trm%2Ftop-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx4trm%2Ftop-go/lists"}