{"id":18941580,"url":"https://github.com/bahrus/be-definitive","last_synced_at":"2026-03-04T02:02:39.839Z","repository":{"id":143853453,"uuid":"334915729","full_name":"bahrus/be-definitive","owner":"bahrus","description":"Define a web component declaratively.","archived":false,"fork":false,"pushed_at":"2025-05-31T12:27:30.000Z","size":929,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"baseline","last_synced_at":"2025-09-01T03:37:56.174Z","etag":null,"topics":["custom-element","custom-elements","declarative-custom-element","web-component","web-components"],"latest_commit_sha":null,"homepage":"","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/bahrus.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,"zenodo":null}},"created_at":"2021-02-01T10:42:08.000Z","updated_at":"2025-05-31T12:27:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a3af3e5-9cdb-43fc-8577-b8476c3d0d56","html_url":"https://github.com/bahrus/be-definitive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bahrus/be-definitive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fbe-definitive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fbe-definitive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fbe-definitive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fbe-definitive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahrus","download_url":"https://codeload.github.com/bahrus/be-definitive/tar.gz/refs/heads/baseline","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fbe-definitive/sbom","scorecard":{"id":223633,"data":{"date":"2025-08-11","repo":{"name":"github.com/bahrus/be-definitive","commit":"d2261bb0694d79ca4e7829d68070bf5171ebedcb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"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":"Maintained","score":5,"reason":"6 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/CI.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":"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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/bahrus/be-definitive/CI.yml/baseline?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/bahrus/be-definitive/CI.yml/baseline?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 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":"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":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":"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 'baseline'"],"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":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j"],"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-17T03:10:12.166Z","repository_id":143853453,"created_at":"2025-08-17T03:10:12.166Z","updated_at":"2025-08-17T03:10:12.166Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30069234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T01:03:42.280Z","status":"online","status_checked_at":"2026-03-04T02:00:07.464Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["custom-element","custom-elements","declarative-custom-element","web-component","web-components"],"created_at":"2024-11-08T12:28:38.159Z","updated_at":"2026-03-04T02:02:39.813Z","avatar_url":"https://github.com/bahrus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# be-definitive () [TODO]\n\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/be-definitive)\n[![NPM version](https://badge.fury.io/js/be-definitive.png)](http://badge.fury.io/js/be-definitive)\n[![Playwright Tests](https://github.com/bahrus/be-definitive/actions/workflows/CI.yml/badge.svg?branch=baseline)](https://github.com/bahrus/be-definitive/actions/workflows/CI.yml)\n[![How big is this package in your project?](https://img.shields.io/bundlephobia/minzip/be-definitive?style=for-the-badge)](https://bundlephobia.com/result?p=be-definitive)\n\u003cimg src=\"http://img.badgesize.io/https://cdn.jsdelivr.net/npm/be-definitive?compression=gzip\"\u003e\n\n\nExample 1:  Inferred props\n\n```html\n\u003ctable\u003e\n    \u003cthead\u003e\u003cth\u003eName\u003c/th\u003e\u003cth\u003eSSN Number\u003c/th\u003e\u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr data-ld='{\"@type\": \"Person\"}' id=temp\u003e\n            \u003ctd itemprop=name\u003eBurt\u003c/td\u003e\n            \u003ctd itemprop=ssn\u003e123-45-6789\u003c/td\u003e\n            \u003cscript be-definitive='{\"inferProps\": true}'\u003e\u003c/script\u003e\n        \u003c/tr\u003e\n        \u003ctr data-ld='{\"@type\": \"Person\", \"name\": \"Sally\", \"ssn\": \"987-65-4321\"}'\u003e\n            \u003ctemplate href=#temp\u003e\u003c/template\u003e\n        \u003c/tr\u003e\n        \u003ctr data-ld='{\"@type\": \"Person\", \"name\": \"Sally\", \"ssn\": \"987-65-4321\"}'\u003e\n            \u003ctemplate href=#temp\u003e\u003c/template\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n```\n\nOnly clone the template for other tr's if innerHTML is empty.\n\n\n```html\n\u003ctable\u003e\n    \u003cthead\u003e\u003cth\u003eName\u003c/th\u003e\u003cth\u003eSSN Number\u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctemplate be-definitive 🫚 itemscope=my-item itemref=\"a13245 b39596\"\u003e\u003c/template\u003e\n        \u003ctr id=a13245 be-definitive\u003e\n            \u003ctd\u003e\n                \u003cmy-item\u003e\u003c/my-item\u003e\n                \u003cspan itemprop=name\u003eBurt\u003c/span\u003e\n            \u003c/td\u003e\n            \u003ctd itemprop=ssn\u003e123-45-6789\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr id=b39596\u003e\n            \u003ctd itemprop=address\u003e654 Penny Lane\u003c/td\u003e\n            \u003ctd itemprop=cellphone\u003e345-25-2686\u003c\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctemplate itemscope=my-item\u003e\u003c/template\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n```\n\nautomatically captures the template based on itemref's.  Auto expands others\n\n## Viewing this element locally\n\n1.  Install git.\n2.  Fork/clone this repo.\n3.  Install node.\n4.  Open command window to folder where you cloned this repo.\n5.  \u003e npm install\n6.  \u003e npm run serve\n7.  Open http://localhost:3030/demo/dev in a modern browser.\n\n## Running Tests\n\n```\n\u003e npm run test\n```\n\n## Importing in ES Modules:\n\n```JavaScript\nimport 'be-definitive/be-definitive.js';\n```\n\n## Using from CDN:\n\n```html\n\u003cscript type=module crossorigin=anonymous\u003e\n    import 'https://esm.run/be-definitive';\n\u003c/script\u003e\n```\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahrus%2Fbe-definitive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahrus%2Fbe-definitive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahrus%2Fbe-definitive/lists"}