{"id":21192968,"url":"https://github.com/cloudfour/lite-model-viewer","last_synced_at":"2026-03-06T07:03:12.878Z","repository":{"id":207824888,"uuid":"720178311","full_name":"cloudfour/lite-model-viewer","owner":"cloudfour","description":"A lazy-loaded model-viewer web component","archived":false,"fork":false,"pushed_at":"2024-02-01T23:38:25.000Z","size":95,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-26T17:49:36.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://lite-model-viewer.netlify.app","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/cloudfour.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-17T18:49:09.000Z","updated_at":"2024-04-15T11:54:18.000Z","dependencies_parsed_at":"2025-10-26T17:44:35.255Z","dependency_job_id":null,"html_url":"https://github.com/cloudfour/lite-model-viewer","commit_stats":null,"previous_names":["cloudfour/lite-model-viewer"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cloudfour/lite-model-viewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfour%2Flite-model-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfour%2Flite-model-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfour%2Flite-model-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfour%2Flite-model-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfour","download_url":"https://codeload.github.com/cloudfour/lite-model-viewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfour%2Flite-model-viewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30164902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-20T19:12:15.966Z","updated_at":"2026-03-06T07:03:12.856Z","avatar_url":"https://github.com/cloudfour.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lite Model-Viewer\n\n[![NPM version](http://img.shields.io/npm/v/@cloudfour/lite-model-viewer.svg)](https://www.npmjs.org/package/@cloudfour/lite-model-viewer)\n\nLite Model-Viewer is a web component to lazy-load `\u003cmodel-viewer\u003e` for improved performance.\n\n- [Demo](https://lite-model-viewer.netlify.app/)\n\n## How Does It Work?\n\nThe `\u003clite-model-viewer\u003e` web component accepts all the same attributes as `\u003cmodel-viewer\u003e`, and will display a poster image if provided. When `\u003clite-model-viewer\u003e` is clicked, it will inject the `\u003cmodel-viewer\u003e` element into the page, which will immediately activate and load the 3D file.\n\n## Installation\n\n```shell\nnpm install @cloudfour/lite-model-viewer\n```\n\n## Usage\n\n```html\n\u003clite-model-viewer\n  src=\"your-asset.glb\"\n  poster=\"your-poster.webp\"\n  ar\n  camera-controls\n  shadow-intensity=\"1\"\n\u003e\n  \u003cbutton\u003eView Model\u003c/button\u003e\n\u003c/lite-model-viewer\u003e\n\n\u003cscript type=\"module\" src=\"lite-model-viewer.js\"\u003e\u003c/script\u003e\n```\n\nNote that although we're adding a `\u003cbutton\u003e` element, it's just a visual indicator. There is a click event listener applied to the entire `\u003clite-model-viewer\u003e` element, so the user can click anywhere on the poster image to trigger the load event.\n\n## Features\n\n- Any attributes on `\u003clite-model-viewer\u003e` will be applied to `\u003cmodel-viewer\u003e`.\n  - See `\u003cmodel-viewer\u003e` docs for [more info on available attributes](https://modelviewer.dev).\n- Provide an optional `\u003ctemplate\u003e` element to pass content into `\u003cmodel-viewer\u003e`, to set a custom progress bar, etc.\n- Set an optional `height` and `width` attribute, which will apply to both the `\u003clite-model-viewer\u003e` preview and the lazy-loaded `\u003cmodel-viewer\u003e` element.\n- By default, Lite Model-Viewer will load the Model-Viewer script from [Google's CDN](https://developers.google.com/speed/libraries#model-viewer). If you'd prefer to self-host the script, you can do so by including the script in your page with the `id=\"model-viewer-script\"` attribute. If Lite Model-Viewer detects this script, it will not load the script from Google's CDN.\n- See [Demo](https://lite-model-viewer.netlify.app/) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfour%2Flite-model-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfour%2Flite-model-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfour%2Flite-model-viewer/lists"}