프로젝트
GitHub에서 보기
renatoworks/3dsvg
소개
SVG를 인터랙티브한 React 3D 컴포넌트로 변환하는 가장 쉬운 방법
웹 및 앱 개발What you can do
- 4 input methods — Text (10 Google Fonts), Pixel Editor, SVG Code, File Upload
- 10 material presets — Default, Plastic, Metal, Glass, Rubber, Chrome, Gold, Clay, Emissive, Holographic
- 7 animations — Spin, Float, Pulse, Wobble, Swing, Spin+Float, or static
- Textures — 10 procedural presets or upload your own
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +8
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original3dsvg

The easiest way to turn SVGs into interactive 3D.
Overview
This is a monorepo with two packages:
| Package | Description |
|---|---|
packages/engine |
Embeddable <SVG3D> React component — published to npm as 3dsvg |
packages/web |
Visual editor at 3dsvg.design — design 3D objects and export as images, video, 3D models, or embed code |
The web editor renders the engine's <SVG3D> component directly — what you see in the editor is exactly what you get with the embed.
Quick Start
npm install
npm run build:engine
npm run dev:web
Open http://localhost:3000.
Embed
npm install 3dsvg
import { SVG3D } from "3dsvg";
<SVG3D text="Hello" animate="spin" />
<SVG3D svg="/logo.svg" material="gold" />
See the full engine docs for all props.
Web Editor Features
- 4 input methods — Text (10 Google Fonts), Pixel Editor, SVG Code, File Upload
- 10 material presets — Default, Plastic, Metal, Glass, Rubber, Chrome, Gold, Clay, Emissive, Holographic
- 7 animations — Spin, Float, Pulse, Wobble, Swing, Spin+Float, or static
- Textures — 10 procedural presets or upload your own
- Configurable lighting — Key light position/intensity, ambient, shadows
- PNG export — Transparent or with background, up to 4K resolution
- Video export — 60fps capture with iOS-style trim UI, MP4 (via FFmpeg WASM) or WebM, quality control
- 3D model export — Download the scene as GLB (color + materials preserved), STL (3D printing), OBJ, or PLY
- Camera mode — iPhone-style shutter button, aspect ratio picker, viewfinder overlay
- Interactive canvas — Drag rotation with momentum, scroll zoom, cursor-follow orbit
- Responsive — Auto-zooms on narrow/portrait viewports to keep the 3D object visible
- Embed code export — Copy-ready
<SVG3D>JSX snippet with all props from the current editor state - Drag & drop — Drop SVG files anywhere on the page to load them
Project Structure
3dsvg/
├── packages/
│ ├── engine/ # npm package "3dsvg"
│ │ └── src/
│ │ ├── index.tsx # SVG3D component (public API)
│ │ ├── scene.tsx # 3D scene, ExtrudedSVG, Canvas
│ │ ├── controls.tsx # Animations, smooth controls
│ │ ├── materials.ts # 10 PBR material presets
│ │ ├── types.ts # SVG3DProps, defaults
│ │ └── use-font.ts # Google Font loading
│ └── web/ # Next.js editor app
│ └── src/
│ ├── app/ # Pages
│ ├── components/ # Editor UI, export bar
│ └── lib/ # Textures, FFmpeg, utilities
└── package.json # npm workspaces root
Tech Stack
| Library | Purpose |
|---|---|
| Next.js 16 | App framework (web) |
| React Three Fiber | Declarative Three.js |
| Three.js | 3D rendering |
| tsup | Engine bundler |
| opentype.js | Font to vector paths |
| FFmpeg WASM | Video conversion (web) |
| shadcn/ui | UI components (web) |
| Tailwind CSS v4 | Styling (web) |
License
MIT — Renato Costa
Made in Blueberry 🫐
관련 프로젝트 살펴보기
불러오는 중…