{"id":20485313,"url":"https://github.com/runnable/libra","last_synced_at":"2026-05-27T13:37:46.789Z","repository":{"id":70964840,"uuid":"41883492","full_name":"Runnable/libra","owner":"Runnable","description":"white magic spell which displays information about a process from /proc","archived":false,"fork":false,"pushed_at":"2015-10-27T00:59:40.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-05T16:27:06.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Runnable.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}},"created_at":"2015-09-03T20:58:55.000Z","updated_at":"2015-09-04T00:30:21.000Z","dependencies_parsed_at":"2023-03-11T09:33:28.919Z","dependency_job_id":null,"html_url":"https://github.com/Runnable/libra","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Runnable/libra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Runnable%2Flibra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Runnable%2Flibra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Runnable%2Flibra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Runnable%2Flibra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Runnable","download_url":"https://codeload.github.com/Runnable/libra/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Runnable%2Flibra/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33568857,"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-05-27T02:00:06.184Z","response_time":53,"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":[],"created_at":"2024-11-15T16:29:22.089Z","updated_at":"2026-05-27T13:37:46.762Z","avatar_url":"https://github.com/Runnable.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libra\nwhite magic spell which displays information about a process from /proc\nlibra will look up information on a _single_ process based on name.\nIf more then one process share the same name, libra will return an error\n\n# inputs\ninputs into libra are environment variables\n\n## LOOKUP_CMD\ncommand to search on.\n\nexample: if `ps` returns\n```\n36916 ttys000    0:00.08 bash\n39588 ttys001    0:00.05 node\n```\nif you want to get information on `node` set `LOOKUP_CMD=node`\n\n\n## LOOKUP_ARGS\nany additional arguments on the command to also search for\n\nexample: if `ps` returns\n```\n36916 ttys000    0:00.08 node -a\n39588 ttys001    0:00.05 node -d\n```\nif you want to get information on `node -a` set `LOOKUP_CMD=node` and  `LOOKUP_ARGS=-a`\n\n\n# usage\n\n```\ndocker run -it --pid=host --privileged --rm -e LOOKUP_CMD='/docker' -e LOOKUP_ARGS='-d' runnable/libra\n```\n\n# output\n## on success\n```\n{\"info\":{\"FDSize\":2048,\"VmPeak\":\"33373208 kB\",\"VmSize\":\"33373208 kB\",\"VmHWM\":\"503816 kB\",\"VmRSS\":\"375808 kB\",\"VmData\":\"33359456 kB\",\"VmStk\":\"136 kB\",\"VmExe\":\"13444 kB\",\"VmPTE\":\"9756 kB\",\"Threads\":1980,\"voluntary_ctxt_switches\":444,\"nonvoluntary_ctxt_switches\":623,\"rchar\":229278009179,\"wchar\":164334551263,\"syscr\":176566383,\"syscw\":48958240,\"read_bytes\":268124160,\"write_bytes\":74151432192,\"cancelled_write_bytes\":38762946560}}\n```\n\n## on error\n```\n{\"error\":\"unable to get process\"}\n```\n\n# notes\nthis container must be run with `--pid=host` if you want to inspect processes on the host\nif process is privileged you will also need `--privileged`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunnable%2Flibra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunnable%2Flibra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunnable%2Flibra/lists"}