{"id":14976304,"url":"https://github.com/dokmic/webpack-redis-plugin","last_synced_at":"2026-02-09T03:31:15.204Z","repository":{"id":143862454,"uuid":"135491700","full_name":"dokmic/webpack-redis-plugin","owner":"dokmic","description":"Webpack Redis Integration","archived":false,"fork":false,"pushed_at":"2021-10-14T21:13:23.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T19:02:43.845Z","etag":null,"topics":["redis","webpack","webpack-plugin","webpack2","webpack3","webpack4","webpack5"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/webpack-redis-plugin","language":"TypeScript","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/dokmic.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":"2018-05-30T20:02:21.000Z","updated_at":"2021-10-14T21:12:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"b28967c1-899b-44af-999d-12679c1edfd4","html_url":"https://github.com/dokmic/webpack-redis-plugin","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"6135522be70db54cf90564c1d39e6bbc77c1b389"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dokmic/webpack-redis-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dokmic%2Fwebpack-redis-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dokmic%2Fwebpack-redis-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dokmic%2Fwebpack-redis-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dokmic%2Fwebpack-redis-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dokmic","download_url":"https://codeload.github.com/dokmic/webpack-redis-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dokmic%2Fwebpack-redis-plugin/sbom","scorecard":{"id":349982,"data":{"date":"2025-08-11","repo":{"name":"github.com/dokmic/webpack-redis-plugin","commit":"6135522be70db54cf90564c1d39e6bbc77c1b389"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/24 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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/dokmic/webpack-redis-plugin/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/dokmic/webpack-redis-plugin/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/dokmic/webpack-redis-plugin/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/dokmic/webpack-redis-plugin/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/dokmic/webpack-redis-plugin/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/dokmic/webpack-redis-plugin/tests.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yaml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/dokmic/webpack-redis-plugin/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/dokmic/webpack-redis-plugin/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/dokmic/webpack-redis-plugin/tests.yaml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/publish.yaml:17","Warn: npmCommand not pinned by hash: .github/workflows/tests.yaml:54","Warn: npmCommand not pinned by hash: .github/workflows/tests.yaml:55","Warn: npmCommand not pinned by hash: .github/workflows/tests.yaml:17","Warn: npmCommand not pinned by hash: .github/workflows/tests.yaml:31","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   5 npmCommand 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish.yaml:1","Warn: no topLevel permission defined: .github/workflows/tests.yaml:1","Info: no jobLevel write permissions found"],"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":"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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"}}]},"last_synced_at":"2025-08-18T08:06:42.217Z","repository_id":143862454,"created_at":"2025-08-18T08:06:42.217Z","updated_at":"2025-08-18T08:06:42.217Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29255602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T03:07:45.136Z","status":"ssl_error","status_checked_at":"2026-02-09T03:07:24.123Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["redis","webpack","webpack-plugin","webpack2","webpack3","webpack4","webpack5"],"created_at":"2024-09-24T13:53:40.695Z","updated_at":"2026-02-09T03:31:15.191Z","avatar_url":"https://github.com/dokmic.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack Redis Plugin\n\n[![NPM](https://img.shields.io/npm/v/webpack-redis-plugin.svg)](https://www.npmjs.com/package/webpack-redis-plugin)\n[![Tests](https://github.com/dokmic/webpack-redis-plugin/actions/workflows/tests.yaml/badge.svg?branch=master)](https://github.com/dokmic/webpack-redis-plugin/actions/workflows/tests.yaml)\n[![Code Coverage](https://codecov.io/gh/dokmic/webpack-redis-plugin/badge.svg?branch=master)](https://codecov.io/gh/dokmic/webpack-redis-plugin?branch=master)\n\nThis Webpack plugin provides an ability to save your assets in [Redis](https://redis.io/). The plugin supports _all_ the Webpack versions and is [tested](https://github.com/dokmic/webpack-redis-plugin/actions/workflows/main.yaml) with Webpack 2, 3, 4, and 5.\n\n## Install\n```bash\nnpm install --save-dev webpack-redis-plugin\n```\n\n## Usage\nIn your `webpack.config.js`:\n```javascript\nconst { WebpackRedisPlugin } = require('webpack-redis-plugin');\nconst sha1 = require('sha1');\n\nmodule.exports = {\n  entry: {\n    page1: [\n      './src/page1/index.js',\n    ],\n    page2: [\n      './src/page2/index.js',\n    ],\n  },\n\n  output: {\n    filename: 'js/[name].js',\n  },\n\n  // ...\n\n  plugins: [\n    new WebpackRedisPlugin({\n      config: {\n        host: 'redis.example.com',\n        password: 'password',\n      },\n\n      filter: (key, asset) =\u003e key === 'js/page1.js' \u0026\u0026 asset.size(),\n\n      transform: (key, asset) =\u003e ({\n        key: `${key}.sha1`,\n        value: sha1(asset.source().toString()),\n      }),\n    }),\n  ],\n};\n```\n\nThis config tells the plugin to filter out everything except non-empty `js/page1.js` and save a hash sum of the contents at the `js/page1.js.sha1` key.\n\n## API\n\n### `options.config`\nRedis client configuration. All possible options can be found [here](https://www.npmjs.com/package/redis#options-object-properties).\n\n**Default:** `undefined`\n\n### `options.filter`\nThe callback function to filter keys/assets that will be set in Redis:\n\n```typescript\nfilter(key: string, asset: Source): boolean | Promise\u003cboolean\u003e;\n```\n\n- `key` - relative asset path.\n- `asset` - Webpack asset.\n\n**Default:** `() =\u003e true`\n\n### `options.transform`\nThe callback function transforms keys and values that will be set in Redis:\n\n```javascript\ntransform(key: string, asset: Source): KeyValuePair | Promise\u003cKeyValuePair\u003e\n```\n\n- `key` - relative asset path.\n- `asset` - Webpack asset.\n\n**Default:** `(key, asset) =\u003e ({ key, value: asset.source() })`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdokmic%2Fwebpack-redis-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdokmic%2Fwebpack-redis-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdokmic%2Fwebpack-redis-plugin/lists"}