{"id":18263136,"url":"https://github.com/vanillawc/wc-include","last_synced_at":"2025-10-08T04:40:43.879Z","repository":{"id":101920820,"uuid":"181816374","full_name":"vanillawc/wc-include","owner":"vanillawc","description":"A vanilla web component for including external media","archived":false,"fork":false,"pushed_at":"2021-05-15T18:42:21.000Z","size":127,"stargazers_count":20,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-20T18:11:15.439Z","etag":null,"topics":["htmlelement","javascript","vanillajs","web-components"],"latest_commit_sha":null,"homepage":"","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/vanillawc.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}},"created_at":"2019-04-17T04:21:23.000Z","updated_at":"2023-09-02T16:23:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1714d88-0ddb-4d6b-8a4e-457b5f6a0807","html_url":"https://github.com/vanillawc/wc-include","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanillawc%2Fwc-include","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanillawc%2Fwc-include/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanillawc%2Fwc-include/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanillawc%2Fwc-include/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanillawc","download_url":"https://codeload.github.com/vanillawc/wc-include/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247246256,"owners_count":20907757,"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":["htmlelement","javascript","vanillajs","web-components"],"created_at":"2024-11-05T11:09:56.860Z","updated_at":"2025-10-08T04:40:38.840Z","avatar_url":"https://github.com/vanillawc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u0026lt;wc-include\u0026gt; Include HTML from an External Source\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/vanillawc/wc-include/releases\"\u003e\u003cimg src=\"https://badgen.net/github/tag/vanillawc/wc-include\" alt=\"GitHub Releases\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@vanillawc/wc-include\"\u003e\u003cimg src=\"https://badgen.net/npm/v/@vanillawc/wc-include\" alt=\"NPM Releases\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/result?p=@vanillawc/wc-include\"\u003e\u003cimg src=\"https://badgen.net/bundlephobia/minzip/@vanillawc/wc-include\" alt=\"Bundlephobia\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/vanillawc/wc-include/actions\"\u003e\u003cimg src=\"https://github.com/vanillawc/wc-include/workflows/Latest/badge.svg\" alt=\"Latest Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/vanillawc/wc-include/actions\"\u003e\u003cimg src=\"https://github.com/vanillawc/wc-include/workflows/Release/badge.svg\" alt=\"Release Status\"\u003e\u003c/a\u003e\n\n  \u003ca href=\"https://discord.gg/aSWYgtybzV\"\u003e\u003cimg alt=\"Discord\" src=\"https://img.shields.io/discord/723296249121603604?color=%23738ADB\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.webcomponents.org/element/vanillawc/wc-include\"\u003e\u003cimg src=\"https://img.shields.io/badge/webcomponents.org-published-blue.svg\" alt=\"Published on WebComponents.org\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n## Installation\n\n*Installation*\n```sh\nnpm i @vanillawc/wc-include\n```\n\n*Import from NPM*\n```html\n\u003cscript type=\"module\" src=\"node_modules/@vanillawc/wc-include/index.js\"\u003e\u003c/script\u003e\n```\n\n*Import from CDN*\n```html\n\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/gh/vanillawc/wc-include@1/index.js\"\u003e\u003c/script\u003e\n```\n\n## Demo\n\nTry it on [WebComponents.dev](https://webcomponents.dev/edit/zNPKE4KD6k8Lz8wVfHne?sv=1\u0026pm=1)\n\n## Usage\n\n**Attributes**\n\n- shadow - if present the contents are contained in a shadowDOM\n\n### Basic Usage\n\nThe `src` attribute imports the contents of the file into the lightDOM.\n\n```html\n\u003cwc-include src=\"./sample.html\"\u003e\u003c/wc-include\u003e\n```\n\n### 'shadow' Attribute Usage\n\nWhen the `shadow` attribute is specified, the imported contents will be encapsulated in a shadowDOM.\n\n```html\n\u003cwc-include src=\"./sample.html\" shadow\u003e\u003c/wc-include\u003e\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://github.com/vanillawc/vanillawc/blob/main/CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanillawc%2Fwc-include","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanillawc%2Fwc-include","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanillawc%2Fwc-include/lists"}