{"id":47404995,"url":"https://github.com/ayo-run/wcb","last_synced_at":"2026-04-03T21:00:51.629Z","repository":{"id":273607648,"uuid":"696146270","full_name":"ayo-run/wcb","owner":"ayo-run","description":"  Web Components in Easy Mode","archived":false,"fork":false,"pushed_at":"2026-03-18T10:35:28.000Z","size":2408,"stargazers_count":80,"open_issues_count":13,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-30T20:41:25.619Z","etag":null,"topics":["webcomponent","webcomponents"],"latest_commit_sha":null,"homepage":"https://WebComponent.io","language":"JavaScript","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/ayo-run.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-25T07:20:37.000Z","updated_at":"2026-03-18T10:35:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"bbe8991c-86ac-417c-915e-0d146e265245","html_url":"https://github.com/ayo-run/wcb","commit_stats":null,"previous_names":["ayoayco/wcb","ayoayco/web-component-base","ayo-run/wcb"],"tags_count":105,"template":false,"template_full_name":null,"purl":"pkg:github/ayo-run/wcb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayo-run%2Fwcb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayo-run%2Fwcb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayo-run%2Fwcb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayo-run%2Fwcb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayo-run","download_url":"https://codeload.github.com/ayo-run/wcb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayo-run%2Fwcb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31377101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:53:18.093Z","status":"ssl_error","status_checked_at":"2026-04-03T17:53:17.617Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["webcomponent","webcomponents"],"created_at":"2026-03-20T17:00:27.607Z","updated_at":"2026-04-03T21:00:51.623Z","avatar_url":"https://github.com/ayo-run.png","language":"JavaScript","readme":"# Web Component Base\n\n[![Package information: NPM version](https://img.shields.io/npm/v/web-component-base)](https://www.npmjs.com/package/web-component-base)\n[![Package information: NPM license](https://img.shields.io/npm/l/web-component-base)](https://www.npmjs.com/package/web-component-base)\n[![Package information: NPM downloads](https://img.shields.io/npm/dt/web-component-base)](https://www.npmjs.com/package/web-component-base)\n[![Bundle Size](https://img.shields.io/bundlephobia/minzip/web-component-base)](#library-size)\n\n🤷‍♂️ zero-dependency, 🤏 tiny JS base class for creating reactive [custom elements](https://developer.mozilla.org/en-US/docs/Web/API/Web_Components/Using_custom_elements) easily ✨\n\n![counter example code snippet](https://git.sr.ht/~ayoayco/wcb/blob/main/assets/IMG_0682.png)\n\nWhen you extend the `WebComponent` class for your component, you only have to define the `template` and `properties`. Any change in any property value will automatically cause just the component UI to render.\n\nThe result is a reactive UI on property changes.\n\n## Links\n\n- [Documentation](https://webcomponent.io)\n- [Read a blog explaining the reactivity](https://ayos.blog/reactive-custom-elements-with-html-dataset/)\n- [View demo on CodePen](https://codepen.io/ayoayco-the-styleful/pen/ZEwoNOz?editors=1010)\n\n## Want to get in touch?\n\nThere are many ways to get in touch:\n\n1. Open a [GitHub issue](https://github.com/ayoayco/wcb/issues/new) or [discussion](https://github.com/ayoayco/wcb/discussions)\n1. Submit a ticket via [SourceHut todo](https://todo.sr.ht/~ayoayco/wcb)\n1. Email me: [hi@ayo.run](mailto:hi@ayo.run)\n\n## Inspirations and thanks\n\n1. [htm](https://github.com/developit/htm) - I use it for the `html` function for tagged templates, and take a lot of inspiration in building the rendering implementation. It is highly likely that I will go for what Preact is doing... but we'll see.\n1. [fast](https://github.com/microsoft/fast) - When I found that Microsoft has their own base class I thought it was super cool!\n1. [lit](https://github.com/lit/lit) - `lit-html` continues to amaze me and I worked to make `wcb` generic so I (and others) can continue to use it\n\n---\n\n_Just keep building._\u003cbr\u003e\n_A project by [Ayo](https://ayo.ayco.io)_\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayo-run%2Fwcb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayo-run%2Fwcb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayo-run%2Fwcb/lists"}