{"id":21334982,"url":"https://github.com/hunchcloud/live-element","last_synced_at":"2026-05-15T12:09:07.157Z","repository":{"id":57116826,"uuid":"242668587","full_name":"hunchcloud/live-element","owner":"hunchcloud","description":"A custom element to live edit other custom elements","archived":false,"fork":false,"pushed_at":"2020-03-03T08:18:51.000Z","size":344,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T08:53:55.209Z","etag":null,"topics":["custom-element","live-editing","playground","web-components"],"latest_commit_sha":null,"homepage":"https://live-element.glitch.me","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hunchcloud.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}},"created_at":"2020-02-24T07:02:29.000Z","updated_at":"2021-09-08T04:08:26.000Z","dependencies_parsed_at":"2022-08-22T22:20:19.907Z","dependency_job_id":null,"html_url":"https://github.com/hunchcloud/live-element","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/hunchcloud/live-element","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunchcloud%2Flive-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunchcloud%2Flive-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunchcloud%2Flive-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunchcloud%2Flive-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hunchcloud","download_url":"https://codeload.github.com/hunchcloud/live-element/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunchcloud%2Flive-element/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269458202,"owners_count":24420378,"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-08-08T02:00:09.200Z","response_time":72,"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":["custom-element","live-editing","playground","web-components"],"created_at":"2024-11-21T23:37:07.484Z","updated_at":"2026-05-15T12:09:02.133Z","avatar_url":"https://github.com/hunchcloud.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `\u003clive-element\u003e`\n\n[![npm](https://img.shields.io/npm/v/@hunchcloud/live-element.svg)](https://www.npmjs.com/package/@hunchcloud/live-element)\n\nA custom element to live edit other custom elements. Like react-live, but for web components (custom elements).\n\n💫️ [Demos](https://live-element.glitch.me/)\n\n![demo.gif](demo.gif)\n\n## Usage\n\nInstall by\n\n```\nyarn add @hunchcloud/live-element\n```\n\nInsert the following HTML\n\n```html\n\u003clive-element\u003e\n  \u003ctextarea\u003e\n    \u003cyour-custom-element\u003e\u003c/your-custom-element\u003e\n  \u003c/textarea\u003e\n\u003clive-element\u003e\n```\n\nThen you will get a playground to live edit `\u003cyour-custom-element\u003e`.\n\nNotice the `\u003ctextarea\u003e` wrapper is required to prevent `\u003cyour-custom-element\u003e` rendering before being passed to `\u003clive-element\u003e`.\n\n## Customize editor styles\n\nUse `style-template-id` to pass in customized styles.\n\n```html\n\u003ctemplate id=\"prism-solarized\"\u003e\n  \u003clink rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/prism/1.19.0/themes/prism-solarizedlight.min.css\" /\u003e\n  \u003cstyle\u003e\n    #live-editor {\n      color: #657b83;\n      background: #073642;\n    }\n    ::slotted(*) {\n      background: lightcyan;\n    }\n  \u003c/style\u003e\n\u003c/template\u003e\n\n\u003clive-element style-template-id=\"prism-solarized\"\u003e\n  \u003ctextarea\u003e\n    \u003cyour-custom-element\u003e\u003c/your-custom-element\u003e\n  \u003c/textarea\u003e\n\u003clive-element\u003e\n```\n\n## Development\n\n```\nyarn start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunchcloud%2Flive-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhunchcloud%2Flive-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunchcloud%2Flive-element/lists"}