{"id":51357170,"url":"https://github.com/imichaelnorris/image-3d","last_synced_at":"2026-07-02T20:35:33.673Z","repository":{"id":357588622,"uuid":"1237578635","full_name":"imichaelnorris/image-3d","owner":"imichaelnorris","description":"A drop-in web component that turns a 2D image URL into an interactive 3D embed. Drag to rotate, pinch to zoom.","archived":false,"fork":false,"pushed_at":"2026-06-08T01:17:27.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-08T01:21:18.912Z","etag":null,"topics":["3d","component","gaussian","image","splat","web"],"latest_commit_sha":null,"homepage":"https://mukba.ng/image-3d/docs/","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/imichaelnorris.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":"2026-05-13T10:04:48.000Z","updated_at":"2026-06-08T01:17:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/imichaelnorris/image-3d","commit_stats":null,"previous_names":["imichaelnorris/image-3d"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imichaelnorris/image-3d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imichaelnorris%2Fimage-3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imichaelnorris%2Fimage-3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imichaelnorris%2Fimage-3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imichaelnorris%2Fimage-3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imichaelnorris","download_url":"https://codeload.github.com/imichaelnorris/image-3d/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imichaelnorris%2Fimage-3d/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35062689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"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":["3d","component","gaussian","image","splat","web"],"created_at":"2026-07-02T20:35:33.455Z","updated_at":"2026-07-02T20:35:33.607Z","avatar_url":"https://github.com/imichaelnorris.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `\u003cimage-3d\u003e`\n\n[\u003cimg alt=\"mukba.ng\" src=\"https://mukba.ng/assets/image-3d-badge.svg\" height=\"28\"\u003e](https://mukba.ng/?ref=image-3d-embed)\n\nA drop-in web component that turns a photo into an interactive 3D Gaussian splat. Drag to rotate, pinch to zoom. Runs entirely in the browser — no server required.\n\n[**Live demo \u0026 docs →**](https://mukba.ng/image-3d/docs/)\n\n## Install\n\n```html\n\u003cscript src=\"https://mukba.ng/image-3d/embed.js\" defer\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```html\n\u003c!-- Drop zone: user picks a photo --\u003e\n\u003cimage-3d\u003e\u003c/image-3d\u003e\n\n\u003c!-- Auto-infer on load --\u003e\n\u003cimage-3d src=\"/photo.jpg\"\u003e\u003c/image-3d\u003e\n\n\u003c!-- Load a pre-generated MSPZ, no inference --\u003e\n\u003cimage-3d model=\"/model.mspz\"\u003e\u003c/image-3d\u003e\n```\n\n### `src=\"photo.jpg\"` ⚠️ resource-intensive\n\nRuns depth estimation automatically when the element loads.\n\n- Downloads a ~30 MB int8-quantized ONNX model on first visit (cached after that)\n- Expands to **~1 GB RAM** at runtime during inference\n- Takes a few seconds on fast hardware (Apple Silicon, modern GPU); slower devices may take 10–30s\n- The model is a singleton — multiple elements on the same page share one instance\n\nIf you have a pre-generated splat, use `model=\"...\"` instead.\n\n## Attributes\n\n| Attribute | Description |\n|---|---|\n| `src=\"photo.jpg\"` | Auto-run inference on this photo on load. ⚠️ See above. |\n| `model=\"file.mspz\"` | Load a pre-generated MSPZ directly. No inference, no model download. |\n| `width` / `height` | Explicit dimensions. Bare numbers → px; CSS values (`50%`, `40vw`) work too. |\n| `nobrand` | Hide the mukba.ng attribution pill. |\n| `nosway` | Disable the intro rotation animation. |\n| `no-download` | Hide the download button. |\n\n## CSS custom properties\n\n| Property | Default | Notes |\n|---|---|---|\n| `--image-3d-max-width` | `600px` | Cap on rendered width. |\n| `--image-3d-max-height` | `80vh` | Cap on height. |\n| `--image-3d-radius` | `8px` | Corner radius. `0` for sharp. |\n| `--image-3d-width` / `--image-3d-height` | `auto` | Also settable via `width`/`height` attributes. |\n\n## Lifecycle events\n\n```js\nconst el = document.querySelector('image-3d');\nel.addEventListener('image-3d:loading',  (e) =\u003e console.log('start'));\nel.addEventListener('image-3d:progress', (e) =\u003e console.log('progress', e.detail));\nel.addEventListener('image-3d:ready',    ()  =\u003e console.log('ready'));\nel.addEventListener('image-3d:error',    (e) =\u003e console.warn('error', e.detail.error));\n```\n\n## Behavior notes\n\n- **Controls.** Drag to orbit, pinch or scroll to zoom.\n- **Long-press to reset.** Hold without dragging → blue scrim; release to recenter the camera.\n- **Shadow DOM.** Use the documented CSS custom properties to restyle; host-page CSS can't bleed in.\n- **Singleton model.** The depth model is shared across all `\u003cimage-3d\u003e` elements on the page — downloaded once, loaded once.\n- **Graceful failure.** If inference fails, an `image-3d:error` event fires. The drop zone stays interactive so the user can try again.\n\n---\n\nMade by [mukba.ng](https://mukba.ng/) · © [Fncore, Inc.](https://fncore.com/about)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimichaelnorris%2Fimage-3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimichaelnorris%2Fimage-3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimichaelnorris%2Fimage-3d/lists"}