$ cd ~/projects shadcn-3d-viewer A 3D model viewer whose source lives in your application ──────────────────────────────────────────────────── A source-owned 3D model viewer for shadcn/ui with orbit, split, and fly cameras, animation playback, scene inspection, screenshots, and composable React Three Fiber controls. tags: TypeScript, Web Development, React, 3D ──────────────────────────────────────────────────── ## Inspect, animate, and capture models Open a GLB model and switch between orbit, split views, and a first-person fly camera. Choose lighting and shading modes, play animation clips, inspect the scene hierarchy, and select meshes. The inspector reports dimensions and geometry, material, and texture counts. Copy a PNG capture or download it. The live demo accepts local GLB files that stay in your browser. Storybook shows the viewer and its controls in different configurations, including loading and error states. shadcn-3d-viewer demo https://shadcn-3d-viewer.vercel.app shadcn-3d-viewer Storybook https://shadcn-3d-viewer.vercel.app/storybook/ shadcn-3d-viewer on GitHub https://github.com/michidk/shadcn-3d-viewer ──────────────────────────────────────────────────── ## Add it to a shadcn application Install the component with `bunx shadcn@latest add @3d-viewer/model-viewer` in a compatible Base UI shadcn project. The installer copies viewer source and adds its dependencies. You can edit that source and keep your application's theme and local primitives. Use the complete ModelViewer, compose its parts, or connect your own controls through useModelViewer. Separate core, controls, and inspector registry items support smaller source installations. Lazy loading and demand-driven rendering avoid keeping an unseen model continuously active. I use the viewer in [Sticks & Clay](/projects/sticks-clay) to inspect generated 3D assets. You can use it independently in another application. Installation and composition guide https://github.com/michidk/shadcn-3d-viewer#-add-the-component ──────────────────────────────────────────────────── $ ls ~/pages > about curl -L lohr.dev > projects curl -L lohr.dev/projects > blog curl -L lohr.dev/blog > stats curl -L lohr.dev/stats > contact curl -L lohr.dev/contact ──────────────────────────────────────────────────── https://lohr.dev