{"id":37712436,"url":"https://github.com/mirusresearch/catbox-disk","last_synced_at":"2026-01-16T13:20:58.526Z","repository":{"id":57147701,"uuid":"85864930","full_name":"mirusresearch/catbox-disk","owner":"mirusresearch","description":"Disk storage adapter for catbox","archived":false,"fork":false,"pushed_at":"2019-02-11T16:33:38.000Z","size":30,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-15T17:58:13.914Z","etag":null,"topics":["catbox","catbox-disk","disk-storage-adapter","hapijs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mirusresearch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-22T18:55:04.000Z","updated_at":"2019-11-17T17:52:26.000Z","dependencies_parsed_at":"2022-09-05T16:50:27.401Z","dependency_job_id":null,"html_url":"https://github.com/mirusresearch/catbox-disk","commit_stats":null,"previous_names":["eyepulp/catbox-disk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mirusresearch/catbox-disk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirusresearch%2Fcatbox-disk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirusresearch%2Fcatbox-disk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirusresearch%2Fcatbox-disk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirusresearch%2Fcatbox-disk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirusresearch","download_url":"https://codeload.github.com/mirusresearch/catbox-disk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirusresearch%2Fcatbox-disk/sbom","scorecard":{"id":113268,"data":{"date":"2025-08-04","repo":{"name":"github.com/mirusresearch/catbox-disk","commit":"a5453a079a3f516d501723d31661de7909f5068f"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":3,"checks":[{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T17:31:26.140Z","repository_id":57147701,"created_at":"2025-08-15T17:31:26.141Z","updated_at":"2025-08-15T17:31:26.141Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["catbox","catbox-disk","disk-storage-adapter","hapijs"],"created_at":"2026-01-16T13:20:57.848Z","updated_at":"2026-01-16T13:20:58.518Z","avatar_url":"https://github.com/mirusresearch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"catbox-disk [![Build Status](https://travis-ci.org/mirusresearch/catbox-disk.svg?branch=master)](https://travis-ci.org/mirusresearch/catbox-disk)\n=============\n\nDisk storage adapter for [catbox](https://github.com/hapijs/catbox).\n\nLead Maintainer - [Andrew Hughes](https://github.com/EyePulp)\n\nCode liberally cribbed from various other adapter examples, primarily\n  - [catbox-memory](https://github.com/hapijs/catbox-memory)\n  - [catbox-s3](https://github.com/fhemberger/catbox-s3)\n\n### Version Note:\n**Users of Hapi less than v17 should use the 2.x.x version of this plugin.  For Hapi v17 and above use version 3.x.x or greater.**\n\n### Example invocations:\n#### \u003e= Hapi v17.0.0:\n```javascript\nconst Hapi = require('hapi');\nconst Disk = require('catbox-disk');\n\nconst server = new Hapi.Server({\n    cache : [{\n            name      : 'diskCache',\n            engine    : new Disk({\n              cachePath: '/some/existing/dir',\n              cleanEvery: 3600000,\n              partition : 'cache'\n            }),\n    }]\n});\n```\n#### \u003c Hapi v17.0.0:\n```javascript\nconst Hapi = require('hapi');\nconst Disk = require('catbox-disk');\n\nconst server = new Hapi.Server({\n    cache : [{\n            name      : 'diskCache',\n            engine    : Disk,\n            cachePath: '/some/existing/dir',\n            cleanEvery: 3600000,\n            partition : 'cache'\n    }]\n});\n```\n\n### Opttions:\n\n  - `cachePath`      : `string` **required** - a pre-existing path you want to store your cache files in\n  - `cleanEvery`     : `integer \u003cdefault 1 hour\u003e` **optional** - number of milliseconds between each cache cleanup for disk space recovery. Set to 0 to deactivate entirely.\n\n### Notes:\n  - This cache backend stores everything in flat `.json` files with MD5 hashed filenames based off the keys to avoid encoding issues \u0026 length limits at the filesystem level.\n  - Initial hash character prefixes are used to split file storage into multiple sub directories to avoid excessive file counts in any one directory, e.g. `ABCD1234DEADBEEF.json` is stored in `.../AB/CD/ABCD1234DEADBEEF.json`\n  - **This cache doesn't set an upper limit on disk usage.**  Plan accordingly, and monitor your free drive space if you're not certain about behavior.\n  - Old, un-accessed files are automatically purged via the `cleanEvery` interval option, which is active by default. If you never access an old cached file, it will take up drivespace until deleted, which is why this option is important.  **Be mindful if you deactivate it**.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirusresearch%2Fcatbox-disk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirusresearch%2Fcatbox-disk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirusresearch%2Fcatbox-disk/lists"}