{"id":15578481,"url":"https://github.com/maxzz/gluehtml","last_synced_at":"2026-02-05T13:33:39.263Z","repository":{"id":42822877,"uuid":"267223957","full_name":"maxzz/gluehtml","owner":"maxzz","description":"Glue HTML local external files into solid HTML","archived":false,"fork":false,"pushed_at":"2025-09-11T00:27:36.000Z","size":3117,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-23T06:23:56.846Z","etag":null,"topics":["css","html","javascript","typescript","utility"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gluehtml","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-05-27T04:53:26.000Z","updated_at":"2025-09-11T00:27:41.000Z","dependencies_parsed_at":"2024-06-25T02:52:01.517Z","dependency_job_id":"f94bc42b-2ae7-406b-94a4-80a275079b6a","html_url":"https://github.com/maxzz/gluehtml","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/maxzz/gluehtml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxzz%2Fgluehtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxzz%2Fgluehtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxzz%2Fgluehtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxzz%2Fgluehtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxzz","download_url":"https://codeload.github.com/maxzz/gluehtml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxzz%2Fgluehtml/sbom","scorecard":{"id":630199,"data":{"date":"2025-08-11","repo":{"name":"github.com/maxzz/gluehtml","commit":"e8349aa5c0cdeddaeecc255598f20b55d71c85a6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/20 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":"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":-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/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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 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":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr"],"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-21T07:41:18.739Z","repository_id":42822877,"created_at":"2025-08-21T07:41:18.740Z","updated_at":"2025-08-21T07:41:18.740Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29122622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T10:47:47.471Z","status":"ssl_error","status_checked_at":"2026-02-05T10:45:08.119Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["css","html","javascript","typescript","utility"],"created_at":"2024-10-02T19:10:45.794Z","updated_at":"2026-02-05T13:33:39.242Z","avatar_url":"https://github.com/maxzz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/gluehtml.svg)](https://badge.fury.io/js/gluehtml)\r\n\r\n#### Overview\r\n\r\ngluehtml packs HTML file includes into a single self-contained HTML file with no references to the local .js or .css files. The output can be used in some restricted systems or quickly copied to a different locations.\r\n\r\n![](assets/preview.png)\r\n\r\n#### Install\r\n\r\n```bash\r\nyarn global add gluehtml\r\n```\r\n\r\n#### Refs\r\n\r\n* [Vite build.polyfillModulePreload](https://vitejs.dev/config/build-options.html#build-polyfillmodulepreload)\r\n    * [ES Module Preloading \u0026 Integrity](https://guybedford.com/es-module-preloading-integrity#modulepreload-polyfill)\r\n        * [Preloading modules](https://developer.chrome.com/blog/modulepreload)\r\n        * [es-module-shims](https://github.com/guybedford/es-module-shims)\r\n\r\n\r\n\u003c!-- \r\n    \"scripts\": {\r\n        \"dev\": \"parcel build src/index.ts --target node --no-optimize\",\r\n        \"build-ts\": \"parcel build src/cli.ts --no-source-maps --no-optimize\",\r\n        \"build\": \"rm -rf dist \u0026\u0026 yarn build-ts \u0026\u0026 cp src/cli.js dist\",\r\n        \"prepublish\": \"yarn build\"\r\n    },\r\n--\u003e\r\n \r\n\u003c!-- \r\n    \"main\": \"dist/cli.js\",\r\n--\u003e\r\n\r\n\u003c!-- \r\n    \"targets\": {\r\n        \"main\": {\r\n            \"includeNodeModules\": true,\r\n            \"source\": \"src/main.ts\",\r\n            \"distDir\": \"./dist\"\r\n        }\r\n    },\r\n\r\n    \"outputFormat\": \"commonjs\"\r\n\r\nconst main = require(src);\r\nconsole.log('\\ntm', main);\r\n--\u003e\r\n\r\n\u003c!--\r\nfunction isLocalUrl(item: Item) {\r\n    // const rel = item?.rel?.trim().toLowerCase() || '';\r\n    // let isLocal: boolean | number = !item.rel || ~rel.indexOf('stylesheet'); // skip 'rel=icon' but handle =stylesheet and =\"stylesheet\"\r\n    // isLocal \u0026\u0026 (isLocal = !item.url.match(/^https?|^data:/));\r\n    // return isLocal;\r\n\r\n    // \u003clink rel=\"icon\" type=\"image/svg+xml\" href=\"./assets/favicon.5917fe4c.svg\" /\u003e\r\n\r\n    // \u003cscript type=\"module\" crossorigin src=\"./assets/index.f4f1edf6.js\"\u003e\u003c/script\u003e\r\n    // \u003clink rel=\"modulepreload\" crossorigin href=\"./assets/radix-ui.c22f7705.js\"\u003e\r\n    //      Uncaught SyntaxError: Cannot use import statement outside a module\r\n\r\n    // gluehtml utility for gluing js and css into html files. version 0.2.9\r\n    // HTML file: C:\\Y\\w\\2-web\\8-websites-ideas\\4-react\\dropzone\\dist\\index.html\r\n    //   document links 5 (5 of them are local links):\r\n    //       url: ./assets/favicon.5917fe4c.svg\r\n    //       url: ./assets/vendor.cdd975c5.js\r\n    //       url: ./assets/radix-ui.c22f7705.js\r\n    //       url: ./assets/index.4e8ccc0c.css\r\n    //       url: ./assets/index.f4f1edf6.js\r\n    //   merging local files:\r\n    //       C:\\Y\\w\\2-web\\8-websites-ideas\\4-react\\dropzone\\dist\\assets\\favicon.5917fe4c.svg\r\n    //       C:\\Y\\w\\2-web\\8-websites-ideas\\4-react\\dropzone\\dist\\assets\\vendor.cdd975c5.js\r\n    //       C:\\Y\\w\\2-web\\8-websites-ideas\\4-react\\dropzone\\dist\\assets\\radix-ui.c22f7705.js\r\n    //       C:\\Y\\w\\2-web\\8-websites-ideas\\4-react\\dropzone\\dist\\assets\\index.4e8ccc0c.css\r\n    //       C:\\Y\\w\\2-web\\8-websites-ideas\\4-react\\dropzone\\dist\\assets\\index.f4f1edf6.js\r\n    // tag style link {\"rel\":\"icon\",\"type\":\"image/svg+xml\",\"href\":\"./assets/favicon.5917fe4c.svg\"}\r\n    // tag style link {\"rel\":\"modulepreload\",\"crossorigin\":\"\",\"href\":\"./assets/vendor.cdd975c5.js\"}\r\n    // tag style link {\"rel\":\"modulepreload\",\"crossorigin\":\"\",\"href\":\"./assets/radix-ui.c22f7705.js\"}\r\n    // tag style link {\"rel\":\"stylesheet\",\"href\":\"./assets/index.4e8ccc0c.css\"}\r\n    // tag script script {\"type\":\"module\",\"crossorigin\":\"\",\"src\":\"./assets/index.f4f1edf6.js\"}\r\n    //   new file saved to: C:\\Y\\w\\2-web\\8-websites-ideas\\4-react\\dropzone\\dist\\index--single.html\r\n    \r\n    return !item.url?.match(/^https?|^data:/);\r\n}\r\n--\u003e\r\n\r\n\u003c!--\r\nTODO:\r\n  \u003cscript\u003e\r\n  /*\u003c!--*/\r\n  ...\r\n  /*-- \u003e*/\r\n  \u003c/script\u003e\r\n--\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxzz%2Fgluehtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxzz%2Fgluehtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxzz%2Fgluehtml/lists"}