{"id":17434732,"url":"https://github.com/tqma113/koa-webpack-dev-middleware","last_synced_at":"2026-04-13T16:36:00.599Z","repository":{"id":122930726,"uuid":"212509260","full_name":"tqma113/koa-webpack-dev-middleware","owner":"tqma113","description":"Webpack dev middleware for koa2.x with typescript. ","archived":false,"fork":false,"pushed_at":"2020-06-11T12:23:54.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-17T04:30:08.241Z","etag":null,"topics":["koa","webpack","webpack-dev-middleware"],"latest_commit_sha":null,"homepage":null,"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/tqma113.png","metadata":{"files":{"readme":"README.md","changelog":"HIstory.md","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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-03T06:15:46.000Z","updated_at":"2020-06-11T12:23:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"86917aec-1fc1-48ae-8702-1a50dbfaa6b6","html_url":"https://github.com/tqma113/koa-webpack-dev-middleware","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":0.02857142857142858,"last_synced_commit":"1dab03ff8f4e015dd93425277f35609df121a52c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tqma113/koa-webpack-dev-middleware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tqma113%2Fkoa-webpack-dev-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tqma113%2Fkoa-webpack-dev-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tqma113%2Fkoa-webpack-dev-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tqma113%2Fkoa-webpack-dev-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tqma113","download_url":"https://codeload.github.com/tqma113/koa-webpack-dev-middleware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tqma113%2Fkoa-webpack-dev-middleware/sbom","scorecard":{"id":896269,"data":{"date":"2025-08-11","repo":{"name":"github.com/tqma113/koa-webpack-dev-middleware","commit":"1dab03ff8f4e015dd93425277f35609df121a52c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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/node.js.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/tqma113/koa-webpack-dev-middleware/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/tqma113/koa-webpack-dev-middleware/node.js.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:28","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml: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":"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":"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":"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-24T13:49:33.763Z","repository_id":122930726,"created_at":"2025-08-24T13:49:33.763Z","updated_at":"2025-08-24T13:49:33.763Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31761986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"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":["koa","webpack","webpack-dev-middleware"],"created_at":"2024-10-17T09:08:56.788Z","updated_at":"2026-04-13T16:36:00.575Z","avatar_url":"https://github.com/tqma113.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# koa-webpack-dev-middleware\n\nA development middleware for koa2.x with typescript for use with webpack bundles. \n\n## Requirements\n\nThis module requires a minimum of Node v10.16.3 and Webpack v4.41.0, and must be used with a server that accepts koa2.x-style middleware.\n\n## Get started\n\nFirst thing's first, install the module.\n\nnpm:\n\n```console\nnpm install --save-dev koa-wdm\n```\n\nyarn:\n\n```console\nyarn add -D koa-wdm\n```\n\n## Usage\n\n```js\nimport Koa from 'koa'\nimport webpack from 'webpack'\n\nimport webpackConfig from './webpack.config'\nimport getMiddleware from '../src/index'\n\nconst app = new Koa()\n\nconst compiler = webpack(webpackConfig)\n\napp.use(getMiddleware(compiler))\n\napp.listen(8080, () =\u003e {\n  console.log('start at 8080')\n})\n```\n\n## Options\n\nThe middleware accept a object to change some behavior.\nIt also support zero config.\n\n### index\n\nThe index path for web server, defaults to \"index.html\".\n\nType: string  \nDefault: index.html\n\n### log\n\nIn the rare event that a user would like to provide a custom logging interface, this property allows the user to assign one. Created with [ansi-colors](https://github.com/doowb/ansi-colors)\n\nType: Out(An object consist of 5 function attributes, log, info, debug, warn, error)  \nDefault: [Logger](https://github.com/tqma113/koa-webpack-dev-middleware/blob/master/src/utils/logger/index.ts)\n\n### displayStats\n\nIt controller if ouput the log message.\n\nType: boolean  \nDefault: true\n\n### stats\n\nOptions for formatting statistics displayed during and after compile. For more information and property details, please see the [webpack documentation](https://webpack.js.org/configuration/stats/#stats).\n\nType: boolean  \nDefault:  \n```js\n{\n  context: process.cwd(),\n  colors: true,\n}\n ```\n\n## License\n\n[MIT](https://github.com/tqma113/koa-webpack-dev-middleware/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftqma113%2Fkoa-webpack-dev-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftqma113%2Fkoa-webpack-dev-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftqma113%2Fkoa-webpack-dev-middleware/lists"}