百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
3

3dsvg

> 编程语言
开源

将 SVG 转换为交互式 React 3D 组件的最简单方法

721 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

将 SVG 转换为交互式 React 3D 组件的最简单方法

3dsvg

The easiest way to turn SVGs into interactive 3D.

Overview

This is a monorepo with two packages:

Package Description
packages/engine Embeddable `` 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 `` 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";

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 `` JSX snippet with all props from the current editor state
  • Drag & drop — Drop SVG files anywhere on the page to load them

Project Structure

…

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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言