{"id":30821112,"url":"https://github.com/tram-one/html-import-element","last_synced_at":"2025-09-06T10:15:05.977Z","repository":{"id":190922005,"uuid":"683604811","full_name":"Tram-One/html-import-element","owner":"Tram-One","description":"Custom Element for adding a super simple way to import external HTML!","archived":false,"fork":false,"pushed_at":"2023-09-30T02:04:06.000Z","size":10,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-04T00:20:49.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Tram-One.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}},"created_at":"2023-08-27T05:40:54.000Z","updated_at":"2023-12-26T06:26:44.000Z","dependencies_parsed_at":"2023-08-27T07:21:02.026Z","dependency_job_id":"87c74e3b-cc2b-4724-88a1-92e5c273ee7e","html_url":"https://github.com/Tram-One/html-import-element","commit_stats":null,"previous_names":["tram-one/html-import-element","jrjurman/html-import-element"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tram-One/html-import-element","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tram-One%2Fhtml-import-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tram-One%2Fhtml-import-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tram-One%2Fhtml-import-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tram-One%2Fhtml-import-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tram-One","download_url":"https://codeload.github.com/Tram-One/html-import-element/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tram-One%2Fhtml-import-element/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273888691,"owners_count":25185930,"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-06T02:00:13.247Z","response_time":2576,"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":[],"created_at":"2025-09-06T10:15:00.288Z","updated_at":"2025-09-06T10:15:05.965Z","avatar_url":"https://github.com/Tram-One.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html-import-element\nCustom Element for adding a super simple way to import external HTML!\n\n```html\n\u003c!-- 1. include the script in your project --\u003e\n\u003cscript src=\"https://unpkg.com/html-import-element@1\"\u003e\u003c/script\u003e\n\u003c!-- 2. point to your external HTML files --\u003e\n\u003chtml-import src=\"./title.html\"\u003e\u003c/html-import\u003e\n\u003c!-- 3. PROFIT! --\u003e\n```\n\n## Install\n\nJust include the following script in your page:\n```html\n\u003cscript src=\"https://unpkg.com/html-import-element@1\"\u003e\u003c/script\u003e\n```\n\n## Features\n- [x] Supports inline HTML\n- [x] Supports inline CSS (`\u003cstyle\u003e...\u003c/style\u003e`)\n- [x] Supports external CSS (`\u003clink rel=\"stylesheet\"\u003e`)\n- [x] Supports inline script (`\u003cscript\u003e...\u003c/script\u003e`)\n- [x] Supports external script (`\u003cscript src=\"...\"\u003e`)\n\n## Example\n\n```html\n\u003c!-- title.html --\u003e\n\u003ch1\u003eHTML Imports are super cool!\u003c/h1\u003e\n```\n\n```html\n\u003c!-- index.html --\u003e\n\u003chtml lang=\"en\"\u003e\n\t\u003chead\u003e\n\t\t\u003cscript src=\"https://unpkg.com/html-import-element@1\"\u003e\u003c/script\u003e\n\t\u003c/head\u003e\n\t\u003cbody\u003e\n\t\t\u003chtml-import src=\"./title.html\"\u003e\u003c/html-import\u003e\n\t\u003c/body\u003e\n\u003c/html\u003e\n```\n\nThat `\u003cbody\u003e` will turn into:\n```html\n\u003cbody\u003e\n\t\u003ch1\u003eHTML Imports are super cool!\u003c/h1\u003e\n\u003c/body\u003e\n```\n\nAnd that's it! Read the source code if you want to see what's going on, but we do a basic fetch, and then inject the content in the page.\n\n## Development\n\nYou can run `npm start`, and navigate to the `/test` or `/example` pages, which validate and show the project use-cases.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftram-one%2Fhtml-import-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftram-one%2Fhtml-import-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftram-one%2Fhtml-import-element/lists"}