{"id":15099397,"url":"https://github.com/karesztrk/webcomponent-base","last_synced_at":"2026-02-16T01:04:49.823Z","repository":{"id":249392493,"uuid":"831411214","full_name":"karesztrk/webcomponent-base","owner":"karesztrk","description":"A Web Component base class","archived":false,"fork":false,"pushed_at":"2024-07-27T14:15:47.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T04:33:41.366Z","etag":null,"topics":["baseclass","dom","shadowdom","webcomponent"],"latest_commit_sha":null,"homepage":"","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/karesztrk.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":"2024-07-20T13:22:56.000Z","updated_at":"2024-07-27T14:15:25.000Z","dependencies_parsed_at":"2024-07-20T13:45:15.384Z","dependency_job_id":"899815df-ab9a-4c55-9b8e-febf466681fe","html_url":"https://github.com/karesztrk/webcomponent-base","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"2b806cf073eb727695a5f0e7851ff256f9acfcaa"},"previous_names":["karesztrk/webcomponent-base"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karesztrk%2Fwebcomponent-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karesztrk%2Fwebcomponent-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karesztrk%2Fwebcomponent-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karesztrk%2Fwebcomponent-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karesztrk","download_url":"https://codeload.github.com/karesztrk/webcomponent-base/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246516789,"owners_count":20790295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["baseclass","dom","shadowdom","webcomponent"],"created_at":"2024-09-25T17:12:12.916Z","updated_at":"2025-09-25T21:05:09.225Z","avatar_url":"https://github.com/karesztrk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Component\n\nMy own Base class for all my Web Components. There are two versions: light and shadow.\n\n## How to use\n\n### Light component\n\nUse if you want to encapsulate your logic within a special section of the HTML document.\n\n```js\nclass YourComponent extends LightElement {\n  static {\n    this.register(\"your-component\", YourComponent);\n  }\n\n  render() {\n    // Regular DOM manipulation here here 😐\n  }\n}\n```\n\n### Shadow component\n\nUseful if you want to encapsulate and completely detach your logic from the document. Neither the cascade, nor any other component will access it.\n\n```js\nclass YourComponent extends ShadowElement {\n  static {\n    this.register(\"your-component\", YourComponent);\n  }\n\n  render() {\n    return \"\u003cdiv\u003e👋 from the Shadow DOM\u003c/div\u003e\";\n  }\n}\n```\n\n## References\n\n- https://developer.mozilla.org/en-US/docs/Web/API/Web_components\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaresztrk%2Fwebcomponent-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaresztrk%2Fwebcomponent-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaresztrk%2Fwebcomponent-base/lists"}