{"id":46905626,"url":"https://github.com/connected-web/web-component-js","last_synced_at":"2026-03-11T01:10:13.347Z","repository":{"id":33638751,"uuid":"37291119","full_name":"connected-web/web-component-js","owner":"connected-web","description":"A javascript library for very simply adding data driven web components to a HTML page, by defining your own domain specific, HTML language via templates.","archived":false,"fork":false,"pushed_at":"2020-07-19T09:07:13.000Z","size":254,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-09T18:57:47.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/connected-web.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-11T23:15:57.000Z","updated_at":"2020-07-19T09:07:14.000Z","dependencies_parsed_at":"2022-09-13T05:21:47.041Z","dependency_job_id":null,"html_url":"https://github.com/connected-web/web-component-js","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/connected-web/web-component-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fweb-component-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fweb-component-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fweb-component-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fweb-component-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/connected-web","download_url":"https://codeload.github.com/connected-web/web-component-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fweb-component-js/sbom","scorecard":{"id":302627,"data":{"date":"2025-08-11","repo":{"name":"github.com/connected-web/web-component-js","commit":"125b54abc33a83ead67b05f0f9d4329f5c7d1a79"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"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/28 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pr-check.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":"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/pr-check.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/connected-web/web-component-js/pr-check.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-check.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/connected-web/web-component-js/pr-check.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/pr-check.yml:22","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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: ISC License: LICENSE.md:0"],"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":"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":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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 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"}}]},"last_synced_at":"2025-08-17T21:06:59.808Z","repository_id":33638751,"created_at":"2025-08-17T21:06:59.808Z","updated_at":"2025-08-17T21:06:59.808Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30365051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"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":[],"created_at":"2026-03-11T01:10:12.755Z","updated_at":"2026-03-11T01:10:13.333Z","avatar_url":"https://github.com/connected-web.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Web Component JS\n================\nA javascript library for very simply adding data driven web components to a HTML page, by defining your own domain specific, HTML language via templates.\n\nRecent Releases\n\n**Version 1.2.8** (Stable?)\nAugust 23rd 2019\n* https://cdn.jsdelivr.net/gh/connected-web/web-component-js@1.2.8/lib/web-component.js\n\n**Version 1.2.7** (Buggy)\nDecember 4th 2015\n* https://cdn.rawgit.com/connected-web/web-component-js/1.2.7/lib/web-component.js\n\n**Version 1.2.6** (Stable)\nOctober 6th 2015\n* https://cdn.rawgit.com/connected-web/web-component-js/1.2.6/lib/web-component.js\n\n**Version 1.2.5** (Stable)\nJuly 11th 2015\n* https://cdn.rawgit.com/connected-web/web-component-js/1.2.5/lib/web-component.js\n\n**Version 1.2.4** (Stable, supports loading of its own dependencies)\nJuly 6th 2015\n* https://cdn.rawgit.com/connected-web/web-component-js/1.2.4/lib/web-component.js\n\n**Version 1.2.0** (Seems stable, old style depdendency errors)\n30th June 2015\n* https://cdn.rawgit.com/connected-web/web-component-js/1.2.0/lib/web-component.js\n\nDependencies\n------------\n- [jQuery](https://jquery.com/) - for remote calls to server to provide components with data\n- [Handlebars](http://handlebarsjs.com/) - for \"minimal templating on steroids\"\n\nWhat it can do\n--------------\nWeb Component is a javascript library that can convert custom HTML tags, like in this example...\n\n![Web Component Data Loading Example Source](images/data-loading-example-source.png)\n\n... into rendered content, using client side JavaScript, and template definitions:\n\n![Web Component Data Loading Example](images/data-loading-example.png)\n\nOnline Demos\n------------\n* `index.html` : [Web Component JS - Index of Examples](https://cdn.jsdelivr.net/gh/connected-web/web-component-js@1.2.8/tests/index.html)\n\nTools\n-----\nWeb Component JS Composer - with Live Editor and JS Packager:\n* `tools/composer.html` [Web Component Composer for Creating File Includes](https://cdn.jsdelivr.net/gh/connected-web/web-component-js@1.2.8/tools/composer.html)\n\nThe composer is a great way to play around with new templates and view the results in the live window. It also packs up your script, template and style tags into a JS packaged format which you can distribute via CDN or include by reference into local web pages.\n\n### Sample Data\nSome example JSON data to help with the examples:\n* `data/credits.json` : [Github Credits](https://cdn.jsdelivr.net/gh/connected-web/web-component-js@1.2.8/tests/data/credits.json)\n* `data/geoNames.json` : [Geo Names](https://cdn.jsdelivr.net/gh/connected-web/web-component-js@1.2.8/tests/data/geoNames.json)\n* `data/monitorStatus.json` : [Monitor Status](https://cdn.jsdelivr.net/gh/connected-web/web-component-js@1.2.8/tests/data/monitorStatus.json)\n* `data/navigation.json` : [Navigation for Examples](https://cdn.jsdelivr.net/gh/connected-web/web-component-js@1.2.8/tests/data/navigation.json)\n\nUsing Web Component JS\n----------------------\n1. Copy script tags for Web Component JS into the `\u003chead\u003e\u003c/head\u003e` of your HTML page\n2. Define a `\u003ctemplate for=\"your-custom-element\"\u003e\u003c/template\u003e` tag\n3. Insert your custom tags into the page\n4. Load the page in a web browser to see your custom tags render\n\nA complete example to get you started:\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n  \u003ctitle\u003eWeb Component Examples - Index\u003c/title\u003e\n  \u003cscript src=\"https://cdn.jsdelivr.net/gh/connected-web/web-component-js@1.2.8/lib/web-component.js\"\u003e\u003c/script\u003e\n\n  \u003cstyle for=\"page\"\u003e\n    body { padding: 20px; font-family: sans-serif; }\n  \u003c/style\u003e\n\n\u003c/head\u003e\n\u003cbody\u003e\n  \u003cgithub-repo user=\"Markavian\" repo=\"web-component\"\u003e\u003c/github-repo\u003e\n  \u003cgithub-repo user=\"johnbeech\" repo=\"product-monitor\"\u003e\u003c/github-repo\u003e\n\n  \u003ctemplate for=\"github-repo\"\u003e\n    \u003ch2\u003eRepository\u003c/h2\u003e\n    \u003cli\u003e\n      \u003ca href=\"https://github.com/{{user}}/{{repo}}/\"\u003e\n        \u003cb\u003e{{user}}\u003c/b\u003e/\u003cb\u003e{{repo}}\u003c/b\u003e\n      \u003c/a\u003e\n    \u003c/li\u003e\n  \u003c/template\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nBeyond this simple example, Web Component can be used for auto-loading data via jQuery AJAX calls, and re-rendering other components defined by your page template based on these events.\n\nProjects using Web Component\n----------------------------\n* [Product Monitor](https://github.com/johnbeech/product-monitor/) - for rendering pretty much everything client side.\n\nLocal development setup\n-------------------\n```\nnpm install http-server -g\nhttp-server\n```\nThen open http://localhost:8080 in a web-browser of your choice.\n\nEdits can be made to `lib/web-component.js` directly, and you can use the HTML files in `tests/` as harnesses for various situations. Preferred browser for debugging is Chrome.\n\n### Local tests\nTo run tests against the web-component-js compiler, use:\n```\nnpm test\n```\nThis will run a series of compilation tests that convert sample components into a compiled format, based on a dependency resolution template, and then diff them against an expected output.\n\nWeb Component Wiki\n------------------\n\nPlease see the wiki for documentation and examples on using the Web Component library and extending custom components with your own javascript.\n* [Web Component API] (https://github.com/Markavian/web-component/wiki/Web-Component-API)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnected-web%2Fweb-component-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnected-web%2Fweb-component-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnected-web%2Fweb-component-js/lists"}