{"id":14990168,"url":"https://github.com/daviddarnes/component-template","last_synced_at":"2025-04-12T02:05:26.310Z","repository":{"id":212170270,"uuid":"729319175","full_name":"daviddarnes/component-template","owner":"daviddarnes","description":"Template for kicking off a new Web Component","archived":false,"fork":false,"pushed_at":"2024-07-03T15:36:52.000Z","size":36,"stargazers_count":145,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-12T02:05:20.617Z","etag":null,"topics":["component","components","customelement","customelements","template","template-repository","webcomponent","webcomponents"],"latest_commit_sha":null,"homepage":"https://daviddarnes.github.io/component-template/demo.html","language":"HTML","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/daviddarnes.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}},"created_at":"2023-12-08T22:20:59.000Z","updated_at":"2025-03-03T19:21:34.000Z","dependencies_parsed_at":"2023-12-20T18:29:46.092Z","dependency_job_id":"8f36de4a-c26f-4a7b-88a7-7d77020ea480","html_url":"https://github.com/daviddarnes/component-template","commit_stats":null,"previous_names":["daviddarnes/component-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daviddarnes%2Fcomponent-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daviddarnes%2Fcomponent-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daviddarnes%2Fcomponent-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daviddarnes%2Fcomponent-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daviddarnes","download_url":"https://codeload.github.com/daviddarnes/component-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505863,"owners_count":21115354,"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":["component","components","customelement","customelements","template","template-repository","webcomponent","webcomponents"],"created_at":"2024-09-24T14:19:38.925Z","updated_at":"2025-04-12T02:05:26.284Z","avatar_url":"https://github.com/daviddarnes.png","language":"HTML","readme":"# `component-name`\n\nA Web Component for…\n\n**[Demo](https://daviddarnes.github.io/component-template/demo.html)** | **[Further reading](https://darn.es/web-component-github-starter-template/)**\n\n[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/~/github.com/daviddarnes/component-template?file=component-name.js\u0026initialPath=/demo.html)\n\n## Examples\n\nGeneral usage example:\n\n```html\n\u003cscript type=\"module\" src=\"component-name.js\"\u003e\u003c/script\u003e\n\n\u003ccomponent-name\u003e\n  \u003cbutton\u003eButton\u003c/button\u003e\n\u003c/component-name\u003e\n```\n\nExample using a fallback method:\n\n```html\n\u003cscript type=\"module\" src=\"component-name.js\"\u003e\u003c/script\u003e\n\n\u003ccomponent-name\u003e\n  \u003cbutton\u003eButton\u003c/button\u003e\n  \u003ca href=\"#\"\u003eAnchor\u003c/a\u003e\n\u003c/component-name\u003e\n\u003cstyle\u003e\n  component-name:not(:defined) button,\n  component-name:defined a {\n    display: none;\n  }\n\u003c/style\u003e\n```\n\nExample using options or additional fallback method:\n\n```html\n\u003cscript type=\"module\" src=\"component-name.js\"\u003e\u003c/script\u003e\n\n\u003ccomponent-name attribute=\"value\"\u003e\n  \u003cbutton\u003eButton\u003c/button\u003e\n\u003c/component-name\u003e\n\u003cstyle\u003e\n  component-name[attribute=\"value\"] {\n    outline: 1px solid red;\n  }\n\u003c/style\u003e\n```\n\n## Features\n\nThis Web Component allows you to:\n\n- Check for…\n\n## Installation\n\nYou have a few options (choose one of these):\n\n1. Install via [npm](https://www.npmjs.com/package/@daviddarnes/component-name): `npm install @daviddarnes/component-name`\n1. [Download the source manually from GitHub](https://github.com/daviddarnes/component-name/releases) into your project.\n1. Skip this step and use the script directly via a 3rd party CDN (not recommended for production use)\n\n### Usage\n\nMake sure you include the `\u003cscript\u003e` in your project (choose one of these):\n\n```html\n\u003c!-- Host yourself --\u003e\n\u003cscript type=\"module\" src=\"component-name.js\"\u003e\u003c/script\u003e\n```\n\n```html\n\u003c!-- 3rd party CDN, not recommended for production use --\u003e\n\u003cscript\n  type=\"module\"\n  src=\"https://www.unpkg.com/@daviddarnes/component-name@1.0.0/component-name.js\"\n\u003e\u003c/script\u003e\n```\n\n```html\n\u003c!-- 3rd party CDN, not recommended for production use --\u003e\n\u003cscript\n  type=\"module\"\n  src=\"https://esm.sh/@daviddarnes/component-name@1.0.0\"\n\u003e\u003c/script\u003e\n```\n\n## Credit\n\nWith thanks to the following people:\n\n- [Zach Leatherman](https://zachleat.com) for inspiring this [Web Component repo template](https://github.com/daviddarnes/component-template)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaviddarnes%2Fcomponent-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaviddarnes%2Fcomponent-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaviddarnes%2Fcomponent-template/lists"}