{"id":13809150,"url":"https://github.com/obukhov/redis-inventory","last_synced_at":"2026-01-17T14:20:28.058Z","repository":{"id":38242383,"uuid":"358390288","full_name":"obukhov/redis-inventory","owner":"obukhov","description":"CLI tool to see redis memory usage by keys in hierarchical way. Think of disk inventory but for redis.","archived":false,"fork":false,"pushed_at":"2024-05-19T14:12:51.000Z","size":7059,"stargazers_count":244,"open_issues_count":16,"forks_count":33,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:34:43.058Z","etag":null,"topics":["devops","infrastructure","redis","tools","usage"],"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/obukhov.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}},"created_at":"2021-04-15T20:55:13.000Z","updated_at":"2025-02-13T08:58:43.000Z","dependencies_parsed_at":"2024-01-07T09:37:25.481Z","dependency_job_id":"c96ff801-be9a-4d59-885c-243ade751b63","html_url":"https://github.com/obukhov/redis-inventory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/obukhov/redis-inventory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obukhov%2Fredis-inventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obukhov%2Fredis-inventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obukhov%2Fredis-inventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obukhov%2Fredis-inventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obukhov","download_url":"https://codeload.github.com/obukhov/redis-inventory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obukhov%2Fredis-inventory/sbom","scorecard":{"id":701267,"data":{"date":"2025-08-11","repo":{"name":"github.com/obukhov/redis-inventory","commit":"7fab37a7411f66eced19bc56e8c474dd76e089bc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/2 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:14","Info:   0 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T05:15:51.089Z","repository_id":38242383,"created_at":"2025-08-22T05:15:51.089Z","updated_at":"2025-08-22T05:15:51.089Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["devops","infrastructure","redis","tools","usage"],"created_at":"2024-08-04T01:02:03.588Z","updated_at":"2026-01-17T14:20:28.034Z","avatar_url":"https://github.com/obukhov.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"Redis Inventory\n===============\n\n[![Build Status](https://travis-ci.com/obukhov/redis-inventory.svg?branch=master)](https://travis-ci.com/obukhov/redis-inventory)\n[![Coverage Status](https://coveralls.io/repos/github/obukhov/redis-inventory/badge.svg?branch=master)](https://coveralls.io/github/obukhov/redis-inventory?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/obukhov/redis-inventory)](https://goreportcard.com/report/github.com/obukhov/redis-inventory)\n[![Docker Pulls](https://img.shields.io/docker/pulls/dclg/redis-inventory)](https://hub.docker.com/repository/docker/dclg/redis-inventory)\n\nRedis inventory is a tool to analyse Redis memory usage by key patterns and displaying it hierarchically. The name is\ninspired by \"Disk Inventory X\" tool doing similar analysis for disk usage.\n\n[Blog post explaining how it works](https://blog.dclg.net/redis-inventory-analyzing-memory-usage-in-redis-by-key-pattern)\n\nExample:\n\n```bash\n$ redis-inventory inventory \u003credis-url\u003e --output=table --output-params=\"padSpaces=2\u0026depth=2\u0026human=1\"\n```\n\n`\u003credis-url\u003e` can be provided in [one of two formats](docs/redis-url.md)\n\nOutputs it as a nice table\n\n```bash\n12:39PM INF Start scanning\n+---------------------+----------+-----------+\n| KEY                 | BYTESIZE | KEYSCOUNT |\n+---------------------+----------+-----------+\n|   dev:              |     2.9M |     4,555 |\n|     article:        |   413.7K |       616 |\n|     blogpost:       |   408.5K |       630 |\n|     collections:    |   426.7K |       627 |\n|     events:         |   391.2K |       614 |\n|     friends:foobar: |   501.1K |       745 |\n|     news:           |   388.8K |       593 |\n|     user:           |     481K |       730 |\n|   prod:             |     2.9M |     4,531 |\n|     article:        |   397.1K |       614 |\n|     blogpost:       |   409.4K |       627 |\n|     collections:    |   374.7K |       560 |\n|     events:         |   384.2K |       588 |\n|     friends:foobar: |     503K |       755 |\n|     news:           |   407.9K |       618 |\n|     user:           |   492.3K |       769 |\n+---------------------+----------+-----------+\n12:39PM INF Finish scanning\n```\n\nIt also can render sunburst diagrams to visualize it:\n```bash\n$ redis-inventory inventory \u003credis-url\u003e --output=chart --maxChildren=100\n```\n\n\n[![Full sunburst diagram](docs/images/diagram1000.png)](docs/images/diagram.png)\n\nRead more about [usage](docs/usage.md)\n\n## Installation\n\nThere are two ways to install the tool:\n\n- use docker image\n- build binary from sources\n\n### Using docker\n\nTo run the tool from a docker image, run the command:\n\n```bash\ndocker run --rm dclg/redis-inventory inventory \u003credis-url\u003e\n```\n\nRead more about [installation](docs/installation.md)\n\n### Kudos\n\n- [Radix](https://github.com/mediocregopher/radix) — Redis client for Go,\n- [Cobra](https://github.com/spf13/cobra) — CLI applications framework,\n- [Go-Pretty](https://github.com/jedib0t/go-pretty) — tools to render tables and progress bars,\n- [AnyChart](https://www.anychart.com/) — beautiful sunburst diagrams.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobukhov%2Fredis-inventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobukhov%2Fredis-inventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobukhov%2Fredis-inventory/lists"}