{"id":33242438,"url":"https://github.com/udhos/hpademo","last_synced_at":"2025-11-16T20:04:17.311Z","repository":{"id":321138108,"uuid":"1084626961","full_name":"udhos/hpademo","owner":"udhos","description":"hpademo is a simple demo for Kubernetes Horizontal Pod Autoscaler (HPA), written in Go and compiled to WebAssembly in order to run in a web browser.","archived":false,"fork":false,"pushed_at":"2025-11-12T21:01:23.000Z","size":6991,"stargazers_count":13,"open_issues_count":12,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-12T23:11:15.802Z","etag":null,"topics":["go","golang","hpa","kubernetes","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/udhos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-28T00:00:21.000Z","updated_at":"2025-11-12T21:01:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"054a5e56-eb5c-4c7f-80c6-2e7a09aeb28d","html_url":"https://github.com/udhos/hpademo","commit_stats":null,"previous_names":["udhos/hpademo"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/udhos/hpademo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fhpademo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fhpademo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fhpademo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fhpademo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/udhos","download_url":"https://codeload.github.com/udhos/hpademo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fhpademo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284767943,"owners_count":27060132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"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":["go","golang","hpa","kubernetes","wasm","webassembly"],"created_at":"2025-11-16T20:04:15.586Z","updated_at":"2025-11-16T20:04:17.298Z","avatar_url":"https://github.com/udhos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/udhos/hpademo/blob/main/LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/udhos/hpademo)](https://goreportcard.com/report/github.com/udhos/hpademo)\n[![Go Reference](https://pkg.go.dev/badge/github.com/udhos/hpademo.svg)](https://pkg.go.dev/github.com/udhos/hpademo)\n\n# hpademo\n\n`hpademo` is a simple demo for Kubernetes Horizontal Pod Autoscaler (HPA), written in Go and compiled to WebAssembly in order to run in a web browser.\n\nOnline demo: [https://udhos.github.io/hpademo/www/](https://udhos.github.io/hpademo/www/)\n\n# features\n\n- Simulate HPA based on CPU.\n- Chart for number of replicas.\n- Chart for per-pod CPU usage.\n- Chart for total unmet CPU load.\n- Dark/light modes.\n- Customizable:\n  - Inject total CPU usage.\n  - POD CPU request.\n  - POD CPU limit.\n  - HPA min replicas.\n  - HPA max replicas.\n  - HPA targe cpu utilization percentage.\n  - Chart data history size (300s default).\n  - Scale down stabilization window (300s default).\n  - POD startup time.\n  - POD stop time.\n- Non-customizable:\n  - 10% HPA Scale Tolerance.\n  - 15s HPA Scale Period.\n\n# clone\n\n```bash\ngit clone https://github.com/udhos/hpademo\ncd hpademo\n```\n\n# edit\n\nSet `GOOS=js GOARCH=wasm` before starting your editor/IDE.\n\n```bash\nexport GOOS=js GOARCH=wasm\ncode .\n```\n\n# test\n\n```bash\n./test.sh\n```\n\n# build\n\n```bash\n./build.sh\n```\n\n# run\n\n```bash\n./run-serve-www.sh\n```\n\nThen open your web browser at http://localhost:8080\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Fhpademo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudhos%2Fhpademo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Fhpademo/lists"}