Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md
Frame Icon

Motion GPU

License: MIT Svelte React Vue WebGPU TypeScript npm

Motion GPU is a focused WebGPU library for fullscreen WGSL shaders. It gives you a framework-neutral runtime and first-class adapters for Svelte, React, and Vue, without the scene graph and 3D tooling of a general-purpose engine.

Use it for shader-driven visuals, generative art, procedural textures, post-processing, feedback effects, and GPU compute. Motion GPU handles the canvas, render loop, scheduling, and GPU resources while your application owns the shaders and interaction.

Install

npm install @motion-core/motion-gpu

Import from the entry point that matches your application:

ApplicationEntry point
Framework-independent@motion-core/motion-gpu
Svelte@motion-core/motion-gpu/svelte
React@motion-core/motion-gpu/react
Vue@motion-core/motion-gpu/vue

What you get

  • Validated WGSL materials for fullscreen rendering
  • Runtime updates for uniforms, textures, and storage buffers
  • Render, feedback, and compute passes for multi-step GPU work
  • Explicit render modes and a scheduler for frame-level control
  • The same core API across Svelte, React, and Vue

Before you start

Motion GPU needs WebGPU and a secure context such as HTTPS or localhost. It is built for fullscreen shader and compute workflows. If your project needs meshes, cameras, lighting, or a scene graph, a 3D engine will be a better fit.

Documentation

Start with the installation guide, then use the full documentation for materials, shaders, passes, runtime behavior, and API contracts. You can also explore complete applications in the playground.

AI tools can access the documentation through Context7.

License

Motion GPU is available under the MIT License.

关于 About

Minimalist framework for modern WebGPU visuals.
javascriptnextjsreactshadershaderssveltesvelte5sveltejssveltekittypescriptvuevue3vuejswebwebgpuwgslwgsl-lang

语言 Languages

TypeScript65.9%
Svelte16.2%
WGSL5.3%
Vue5.1%
mdsvex4.3%
JavaScript2.5%
CSS0.4%
HTML0.3%
Shell0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
651
Total Commits
峰值: 102次/周
Less
More

核心贡献者 Contributors