{"id":17164692,"url":"https://github.com/haroldtreen/show-code","last_synced_at":"2026-02-19T07:02:02.203Z","repository":{"id":57358868,"uuid":"48664969","full_name":"haroldtreen/show-code","owner":"haroldtreen","description":":computer: Using the source code of a container as the background for the container.","archived":false,"fork":false,"pushed_at":"2016-09-06T20:40:47.000Z","size":425,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-31T04:08:53.035Z","etag":null,"topics":["animation","npm","parallax","scroll","web"],"latest_commit_sha":null,"homepage":"http://haroldtreen.github.io/show-code","language":"JavaScript","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/haroldtreen.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}},"created_at":"2015-12-27T23:48:02.000Z","updated_at":"2023-07-15T09:39:52.000Z","dependencies_parsed_at":"2022-09-06T22:21:52.383Z","dependency_job_id":null,"html_url":"https://github.com/haroldtreen/show-code","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/haroldtreen/show-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haroldtreen%2Fshow-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haroldtreen%2Fshow-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haroldtreen%2Fshow-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haroldtreen%2Fshow-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haroldtreen","download_url":"https://codeload.github.com/haroldtreen/show-code/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haroldtreen%2Fshow-code/sbom","scorecard":{"id":456048,"data":{"date":"2025-08-11","repo":{"name":"github.com/haroldtreen/show-code","commit":"83c70bcd8cf58800e56779942cf8d84ff330a3ff"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"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":"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":"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":"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":"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":"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":"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":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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.1.0 not signed: https://api.github.com/repos/haroldtreen/show-code/releases/3169875","Warn: release artifact 1.1.0 does not have provenance: https://api.github.com/repos/haroldtreen/show-code/releases/3169875"],"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"}}]},"last_synced_at":"2025-08-19T09:42:34.969Z","repository_id":57358868,"created_at":"2025-08-19T09:42:34.969Z","updated_at":"2025-08-19T09:42:34.969Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29605799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"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":["animation","npm","parallax","scroll","web"],"created_at":"2024-10-14T22:52:33.237Z","updated_at":"2026-02-19T07:02:02.161Z","avatar_url":"https://github.com/haroldtreen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# show-code\n[![npm](https://img.shields.io/npm/v/show-code.svg?maxAge=2592000)](https://www.npmjs.com/package/show-code)\n[![npm](https://img.shields.io/npm/dt/show-code.svg?maxAge=2592000)](https://www.npmjs.com/package/show-code)\n\nUsing the source code in a container as the background for the container.\n\n## Usage\n\n1. Install the npm package\n  ```bash\n  npm install show-code --save\n  ```\n\n2. Include the show-code js/css in your HTML\n  ```html\n  \u003chead\u003e\n        \u003c!-- Head contents --\u003e\n        \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"node-modules/show-code/build/show-code.min.css\"\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n        \u003c!-- Body contents --\u003e\n        \u003cscript type=\"text/javascript\" src=\"node-modules/show-code/build/show-code.min.js\"\u003e\u003c/script\u003e\n        \u003cscript\u003e\n            window.showCode(); // Run when your container is ready\n        \u003c/script\u003e\n  \u003c/body\u003e\n  ```\n\n3. The add `sc-container` ID to a container\n  ```html\n  \u003cdiv id='sc-container'\u003e\n        \u003cspan\u003eAll your content!\u003c/span\u003e\n  \u003c/div\u003e\n  ```\n\n4. **Bonus:** Add external libraries like [Prism](http://prismjs.com/index.html) for syntax highlighting.\n  ```html\n  \u003chead\u003e\n        \u003c!-- Head contents --\u003e\n        \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"prism.css\"\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n        \u003c!-- Body contents --\u003e\n        \u003cscript type=\"text/javascript\" src=\"prism.js\"\u003e\u003c/script\u003e\n  \u003c/body\u003e\n  ```\n\n## Customization\n\nWhen the background is injected it will have the `sc-background` ID. Using this selector, you can apply custom styles to your background.\n\n```css\n#sc-background {\n    border-radius: 5px;\n}\n```\n\n## Example:\nSee it in action [here](https://haroldtreen.github.io/show-code/)\n\n**OR**\n\n```bash\nnpm install -g serve\ngit clone git@github:haroldtreen/show-code --branch gh-pages\nserve show-code\nopen http://127.0.0.1:3000/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharoldtreen%2Fshow-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharoldtreen%2Fshow-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharoldtreen%2Fshow-code/lists"}