{"id":17349501,"url":"https://github.com/umutbasal/whoami","last_synced_at":"2026-02-02T18:07:06.164Z","repository":{"id":189224862,"uuid":"680275354","full_name":"umutbasal/whoami","owner":"umutbasal","description":"request, system, environment info web service","archived":false,"fork":false,"pushed_at":"2024-11-18T16:21:48.000Z","size":52,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T21:12:26.542Z","etag":null,"topics":["container","cpu","debug","disk","environment","network","rust","sysinfo","system"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/umutbasal.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}},"created_at":"2023-08-18T19:20:56.000Z","updated_at":"2024-11-18T16:21:52.000Z","dependencies_parsed_at":"2023-08-18T22:01:40.579Z","dependency_job_id":"b2529ae5-d49a-49a1-8647-326059fedc3b","html_url":"https://github.com/umutbasal/whoami","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.30434782608695654","last_synced_commit":"f520aabe49eaf5b47fea125fc06da1990edb51ed"},"previous_names":["umutbasal/whoami"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/umutbasal/whoami","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutbasal%2Fwhoami","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutbasal%2Fwhoami/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutbasal%2Fwhoami/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutbasal%2Fwhoami/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umutbasal","download_url":"https://codeload.github.com/umutbasal/whoami/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutbasal%2Fwhoami/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261879271,"owners_count":23223736,"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","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":["container","cpu","debug","disk","environment","network","rust","sysinfo","system"],"created_at":"2024-10-15T16:56:17.295Z","updated_at":"2026-02-02T18:07:01.136Z","avatar_url":"https://github.com/umutbasal.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# whoami\n\n```sh\ndocker pull umutbasal/whoami:latest\n\ndocker run -p 8080:8080 --rm -it --name wh umutbasal/whoami:latest\n```\n\n## Output\n\n- Request Remote Address\n- Request Headers\n- Environment Variables\n- System Information\n  - CPU\n  - Disk\n  - Memory\n  - Network\n  - Hostname\n  - Users\n  - OS Information\n  - Boot Time\n  - ... (see [sysinfo](https://docs.rs/sysinfo/latest/sysinfo/) crate)\n- Isolation posture via [am-i-isolated](https://github.com/edera-dev/am-i-isolated)\n\n### Output types\n\n- JSON\n  - if `Accept: application/json` header is present\n  - if user agent is `curl`\n  - if path or query includes \"j\" (eg /j, /?j)\n- HTML\n  - default behavior when visiting from browser\n  - if path or query includes \"h\" (eg /h, /?h)\n\n### Example\n\n```sh\ncurl http://localhost:8080/ | jq '.sysinfo.host_name'\n\n\"ubuntu\"\n```\n\n```sh\n# best way to work with cli\ncurl http://localhost:8080/ | yq -P | less\n\nenvironment:\n  CARGO: /Users/user/.rustup/toolchains/nightly-aarch64-apple-darwin/bin/cargo\n  CARGO_HOME: /Users/user/.cargo\n  ....\n```\n\n```sh\n# same html view for cli\ncurl http://localhost:8080/h | less\n\n\u003ch1\u003eenvironment\u003c/h1\u003e\n\u003cpre\u003e\n+--------------------------------------+-------------------------------------------------------------------------+\n| CARGO                                |  /Users/user/.rustup/toolchains/nightly-aarch64-apple-darwin/bin/cargo  |\n+--------------------------------------+-------------------------------------------------------------------------+\n| CARGO_HOME                           |  /Users/user/.cargo                                                     |\n+--------------------------------------+-------------------------------------------------------------------------+\n...\n```\n\n![image](https://github.com/umutbasal/whoami/assets/21194079/0712ee8e-c63b-464f-be32-47b2d6bce258)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumutbasal%2Fwhoami","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumutbasal%2Fwhoami","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumutbasal%2Fwhoami/lists"}