{"id":25600615,"url":"https://github.com/johnfacey/drowjs","last_synced_at":"2026-04-13T21:31:45.690Z","repository":{"id":42142599,"uuid":"215133658","full_name":"johnfacey/drowjs","owner":"johnfacey","description":"Web Component Wrapper for creating HTML Custom Components","archived":false,"fork":false,"pushed_at":"2024-04-10T06:36:43.000Z","size":2124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T06:16:53.754Z","etag":null,"topics":["component","component-based","component-library","html","javascript","nodejs","web-components"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnfacey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"johnfacey","ko_fi":"johnfacey"}},"created_at":"2019-10-14T19:56:57.000Z","updated_at":"2022-02-13T01:05:21.000Z","dependencies_parsed_at":"2024-04-10T07:43:11.902Z","dependency_job_id":null,"html_url":"https://github.com/johnfacey/drowjs","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":"0.21621621621621623","last_synced_commit":"42070bca51819dd6458603f6abc5e26ee736d96a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnfacey/drowjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfacey%2Fdrowjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfacey%2Fdrowjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfacey%2Fdrowjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfacey%2Fdrowjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnfacey","download_url":"https://codeload.github.com/johnfacey/drowjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfacey%2Fdrowjs/sbom","scorecard":{"id":528386,"data":{"date":"2025-08-11","repo":{"name":"github.com/johnfacey/drowjs","commit":"4c5a180d0aa4d15530bf18edbc10fcc8859116d6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"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/17 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":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":"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":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.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":"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/johnfacey/drowjs/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/johnfacey/drowjs/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/johnfacey/drowjs/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/johnfacey/drowjs/codeql-analysis.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction 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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"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":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 14 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":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6"],"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-20T05:03:37.915Z","repository_id":42142599,"created_at":"2025-08-20T05:03:37.915Z","updated_at":"2025-08-20T05:03:37.915Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31771813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","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":["component","component-based","component-library","html","javascript","nodejs","web-components"],"created_at":"2025-02-21T15:27:10.287Z","updated_at":"2026-04-13T21:31:45.676Z","avatar_url":"https://github.com/johnfacey.png","language":"HTML","funding_links":["https://github.com/sponsors/johnfacey","https://ko-fi.com/johnfacey"],"categories":[],"sub_categories":[],"readme":"[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/johnfacey/drowjs)\n\n# Drow.js 🎭\n\n**The Tiny, Object-Based Web Component Library.**\n\nDrow is a minimalist wrapper for the Web Components API. It replaces the boilerplate of JavaScript Classes with a clean, object-based configuration. Define your components as simple objects and let Drow handle the registration and rendering.\n\n## Why Drow?\n\n- 🚫 **Zero Dependencies**: No NPM, no build steps, no headaches.\n- 📉 **Microscopic Size**: Under 1kb gzipped.\n- 🧩 **Object-First API**: No more `class X extends HTMLElement` or `super()`.\n- ⚡ **Native Performance**: Uses the browser's built-in Custom Elements registry.\n\n\u003cdiv style=\"clear:both;padding-bottom:10px\"\u003e\n\u003cp\u003e\n\u003cimg src=\"res/Drow-Setup.png\"\n     alt=\"Drow - Simple Web Component Library for creating custom HTML Components.\" /\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\n## Updates\n\nConverted object references to Drow and drow internal elements instead of DrowJS\n## Setup\n\nInclude the drow.js in an html file:\n\n```\n\u003cscript src=\"drow.js\"\u003e\u003c/script\u003e\n```\n\nOr as an NPM Module\n```\nimport Drow from 'drow';\n```\n\n## Define a Drow Component\n\nDefine a Drow Object to setup a component. This \"JSON-like\" definition makes it easy to build components without dealing with complex class syntax.\n\nComponent needs to have a \u003cbr /\u003e\n- **name** : name of HTML Custom Component \u003cbr /\u003e\n- **props** : properties set on the Custom Component \u003cbr /\u003e\n- **state** : reactive state object \u003cbr /\u003e\n- **template** : standard html template \u003cbr /\u003e\n- **methods** : functions for event handling \u003cbr /\u003e\n- **css** : component-scoped CSS \u003cbr /\u003e\n- **templating** : You can now use handlebars/mustache style variables in templates there are applied by prop name \n    Ex: {{prop1}}\n\nHTML\n```\n\u003cmy-comp prop1=\"AAA\" prop2=\"BBB\"\u003e \u003c/my-comp\u003e\n```\nJavaScript \n```\nvar config = {\n    \"name\" : \"my-comp\",\n    \"props\": ['prop1','prop2'],\n    \"css\": \"b { color: blue; }\",\n    \"template\": `\u003cdiv\u003e\n                  \u003cdiv\u003eEvery time you click on timestamp it will update the time.\u003c/div\u003e\n            \u003cb\u003eClick for the timestamp\u003c/b\u003e\u003cdiv\u003e{{prop1}}\u003c/div\u003e\n            \u003c/div\u003e`,\n    \"init\" : function(config) {\n        let prop1 = this.getProp('prop1') ? this.getAttribute('prop1') : \"\";\n        //in the init this.getComp() is used to obtain the component\n\n      this.getComp().addEventListener('click', e =\u003e {\n\t\t\tthis.getComp().querySelector(\"b\").innerHTML = new Date();\n\t\t});\n    },\n    watch : function(attribute) {\n        if (attribute.name == 'name') { //in the watch this.comp is a reference to this component\n            attribute.comp.querySelector('b').innerHTML = `Hello, ${attribute.newValue}`;\n        }\n    }\n}\n\nDrow.register(config);\n\n```\n\n## Outline\n```\n//Define Component\n\u003cmy-comp title=\"Great Name\" link=\"https://something.com\"\u003e\n  \u003c!-- \n    Web Components must be in primary-secondary name separated by dash ie my-comp \n    Componets and other HTML elements in the comp will be automatically added to the {{bind}} of the components template.\n  --\u003e\n\u003c/my-comp\u003e\n\n//Template for Component\ntemplate = `\u003cdiv\u003e\n  \u003cdiv\u003eTitle: {{title}}\u003c/div\u003e\n  \u003cdiv\u003eLink: {{link}}\u003c/div\u003e\n\u003c/div\u003e`\n\n//Component Config\nvar myComp = {\n    \"name\" : \"my-comp\",\n    \"props\": ['title','link'],\n    \"template\": template,\n    \"init\" : function(config) {       //optional init    \n    },\n    watch : function(attribute) {    //optional watch -- hooks/useEffect\n    }\n}\n//Register Component\nDrow.register(myComp); //using the config created earlier\n```\n\n## Examples\n\nBasic Example:\n\n [Example 1](src/index.html)\n\n## Documentation\n\nSee the docs for usage and examples:\n\n- docs/README.md\n\n\n\n## Setup from npm\n\nFirst install dependencies:\n\n```\nnpm install\n```\n\nRun commands:\n```\nnpm run server\n```\n\n## Credits\n\nAuthor [johnfacey.dev](https://johnfacey.dev/)\n\nTwitter [twitter.com/johnfacey](https://twitter.com/johnfacey)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnfacey%2Fdrowjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnfacey%2Fdrowjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnfacey%2Fdrowjs/lists"}