{"id":20181787,"url":"https://github.com/substrate-system/template-web-component","last_synced_at":"2025-09-07T06:38:26.982Z","repository":{"id":246103990,"uuid":"820108862","full_name":"substrate-system/template-web-component","owner":"substrate-system","description":"A template for web components","archived":false,"fork":false,"pushed_at":"2025-08-04T18:04:28.000Z","size":189,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-04T21:35:12.245Z","etag":null,"topics":["template","web-component"],"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/substrate-system.png","metadata":{"files":{"readme":"README.example.md","changelog":"CHANGELOG.md","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":"2024-06-25T20:21:16.000Z","updated_at":"2025-08-04T18:04:31.000Z","dependencies_parsed_at":"2025-05-16T19:40:00.594Z","dependency_job_id":"f63af48a-c76e-4288-9575-f4467b040613","html_url":"https://github.com/substrate-system/template-web-component","commit_stats":null,"previous_names":["nichoth/template-web-component","substrate-system/template-web-component"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/substrate-system/template-web-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Ftemplate-web-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Ftemplate-web-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Ftemplate-web-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Ftemplate-web-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/substrate-system","download_url":"https://codeload.github.com/substrate-system/template-web-component/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Ftemplate-web-component/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274005337,"owners_count":25205934,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"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":["template","web-component"],"created_at":"2024-11-14T02:36:44.889Z","updated_at":"2025-09-07T06:38:26.969Z","avatar_url":"https://github.com/substrate-system.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# package name here\n![tests](https://github.com/{{gh-namespace}}/{{repo-name}}/actions/workflows/nodejs.yml/badge.svg)\n[![types](https://img.shields.io/npm/types/{{package-name}}?style=flat-square)](README.md)\n[![module](https://img.shields.io/badge/module-ESM%2FCJS-blue?style=flat-square)](README.md)\n[![install size](https://flat.badgen.net/packagephobia/install/@bicycle-codes/keys?cache-control=no-cache)](https://packagephobia.com/result?p=@bicycle-codes/keys)\n[![GZip size](https://img.badgesize.io/https%3A%2F%2Fesm.sh%2F%40{{gh-namespace}}%2F{{repo-name}}%2Fes2022%2Ffile.mjs?style=flat-square\u0026compression=gzip)](https://esm.sh/@substrate-system/{{repo-name}}/es2022/{{repo-name}}.mjs)\n[![dependencies](https://img.shields.io/badge/dependencies-zero-brightgreen.svg?style=flat-square)](package.json)\n[![semantic versioning](https://img.shields.io/badge/semver-2.0.0-blue?logo=semver\u0026style=flat-square)](https://semver.org/)\n[![Common Changelog](https://nichoth.github.io/badge/common-changelog.svg)](./CHANGELOG.md)\n[![license](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n\n`\u003cpackage description goes here\u003e`\n\n[See a live demo](https://{{gh-namespace}}.github.io/{{repo-name}}/)\n\n\u003c!-- toc --\u003e\n\n## install\n\nInstallation instructions\n\n```sh\nnpm i -S {{package-name}}\n```\n\n## API\n\nThis exposes ESM and common JS via [package.json `exports` field](https://nodejs.org/api/packages.html#exports).\n\n### ESM\n```js\nimport '{{package-name}}'\n```\n\n### Common JS\n```js\nrequire('{{package-name}}')\n```\n\n## CSS\n\n### Import CSS\n\n```js\nimport '{{package-name}}/css'\n```\n\nOr minified:\n```js\nimport '{{package-name}}/css/min'\n```\n\n### Customize CSS via some variables\n\n```css\n{{component-name}} {\n    --example: pink;\n}\n```\n\n## use\nThis calls the global function `customElements.define`. Just import, then use\nthe tag in your HTML.\n\n### JS\n```js\nimport '{{package-name}}'\n```\n\n### HTML\n```html\n\u003cdiv\u003e\n    \u003c{{component-name}}\u003e\u003c/{{component-name}}\u003e\n\u003c/div\u003e\n```\n\n### pre-built\nThis package exposes minified JS and CSS files too. Copy them to a location that is\naccessible to your web server, then link to them in HTML.\n\n#### copy\n```sh\ncp ./node_modules/{{package-name}}/dist/index.min.js ./public/{{component-name}}.min.js\ncp ./node_modules/{{package-name}}/dist/style.min.css ./public/{{component-name}}.css\n```\n\n#### HTML\n```html\n\u003chead\u003e\n    \u003clink rel=\"stylesheet\" href=\"./{{component-name}}.css\"\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003c!-- ... --\u003e\n    \u003cscript type=\"module\" src=\"./{{component-name}}.min.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubstrate-system%2Ftemplate-web-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubstrate-system%2Ftemplate-web-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubstrate-system%2Ftemplate-web-component/lists"}