惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
博客园_首页
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
B
Blog
D
DataBreaches.Net
腾讯CDC
C
Check Point Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
U
Unit 42
月光博客
月光博客
V
V2EX
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
The Cloudflare Blog
博客园 - 叶小钗
Y
Y Combinator Blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
<image-3d> — drop-in 3D photo embed
mnorris · 2026-06-08 · via Hacker News: Show HN

Web Component

A drop-in web component that turns any photo into a rotatable 3D scene — drag to orbit, pinch to zoom. Runs entirely in your browser, no server required.

Heads up: Inference mode (src=) downloads a ~30 MB depth model and uses ~1 GB RAM during processing. Use model= with a pre-built splat to avoid this on every page load.

Install

One script tag. Three modes — pick the one that fits.

<script src="https://mukba.ng/image-3d/embed.js" defer></script>

<!-- Drop zone: user supplies the photo; nothing loads until they do -->
<image-3d></image-3d>

<!-- src=: generates 3D from this photo on load (~30 MB download, ~1 GB RAM) -->
<image-3d src="/photo.jpg"></image-3d>

<!-- model=: loads a pre-built .mspz splat — no inference, no model download -->
<image-3d model="/model.mspz"></image-3d>

Add it with Claude Code

Paste this prompt into Claude Code in your project directory.

Add the <image-3d> web component to this project.

Reference docs: https://mukba.ng/image-3d/

Steps:
1. Add this script tag once, in the <head> of the main HTML template
   (or shared layout):
   <script src="https://mukba.ng/image-3d/embed.js" defer></script>
2. Pick the mode that fits:

   <!-- Drop zone: user supplies the photo; nothing loads until they do -->
   <image-3d></image-3d>

   <!-- src=: generates 3D from this photo on load
        (~30 MB model download, ~1 GB RAM during inference) -->
   <image-3d src="/photo.jpg"></image-3d>

   <!-- model=: loads a pre-built .mspz splat directly
        (no inference, no model download — fastest first load) -->
   <image-3d model="/model.mspz"></image-3d>

Attributes

Set on the <image-3d> element itself.

AttributeDescription
src="photo.jpg"Run depth inference on this photo when the element loads. Downloads ~30 MB model on first visit; uses ~1 GB RAM during inference.
model="file.mspz"Load a pre-built MSPZ splat (the compressed point-cloud format <image-3d> generates) directly. No inference, no model download.
width / heightExplicit pixel dimensions. Overrides the default 600px / 80vh caps. Bare numbers are interpreted as px; full CSS values (50%, 40vw) work too.
nobrandHide the "mukba.ng" attribution pill in the bottom-right corner.
noswayDisable the intro rotation that plays once when the splat loads.
no-downloadHide the download button.

CSS custom properties

The element uses shadow DOM, so the host page's CSS can't bleed in. Set these on the host element to restyle.

PropertyDefaultNotes
--image-3d-max-width600pxHard cap on rendered width.
--image-3d-max-height80vhHard cap on poster height (and thus overall height).
--image-3d-radius8pxHost corner radius. Set 0 for sharp.
--image-3d-width / --image-3d-heightautoSet by the corresponding attributes; you can also set these directly via CSS.

Lifecycle events

The element dispatches CustomEvents on itself. Listen the way you would on any DOM element.

const el = document.querySelector('image-3d');
el.addEventListener('image-3d:loading',  (e) => console.log('start'));
el.addEventListener('image-3d:progress', (e) => console.log('progress', e.detail));
el.addEventListener('image-3d:ready',    ()  => console.log('ready'));
el.addEventListener('image-3d:error',    (e) => console.warn('error', e.detail.error));

Behavior notes

  • Controls. Drag to orbit, pinch or scroll to zoom.
  • Long-press to reset. Hold without dragging for a blue scrim; release to recenter the camera.
  • Shadow DOM. Nothing on the host page can override the embed's internal styling unless you use the documented CSS custom properties.
  • Singleton model. The depth model is shared across all <image-3d> elements on the page — downloaded once, loaded once.
  • Graceful failure. If inference fails, an image-3d:error event fires. The drop zone stays interactive so the user can try again.