composable-svelte-graphics

Create declarative 3D scenes in Svelte with WebGPU/WebGL rendering.

3|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/jonathanbelolo/composable-svelte --skill composable-svelte-graphics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: composable-svelte-graphics
Source: https://github.com/jonathanbelolo/composable-svelte/tree/main/.claude/skills/composable-svelte-graphics
Command: npx skills add https://github.com/jonathanbelolo/composable-svelte --skill composable-svelte-graphics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables developers to create declarative, store-driven 3D graphics in Svelte, simplifying the construction and rendering of scenes with cameras, lights, and meshes using WebGPU or WebGL.

Core Features & Use Cases

  • Scene, Camera, Light, and Mesh components for building interactive 3D UIs
  • Geometry types (box, sphere, cylinder, torus, plane) with configurable materials
  • Automatic renderer selection between WebGPU and WebGL via Babylon.js integration
  • Centralized graphics state management with a pure reducer pattern
  • Suitable for interactive demos, 3D product visuals, and educational graphics apps

Quick Start

Create a minimal graphics store and render a Scene with a Camera, Lights, and a Mesh to visualize a simple object.

Frequently Asked Questions about composable-svelte-graphics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build 3D scenes with WebGPU in Svelte?

You can build 3D scenes with WebGPU in Svelte using declarative Scene, Camera, Light, and Mesh components. The skill handles graphics state management with a pure reducer pattern and automatically selects the best available renderer.

Can I render different geometry types like spheres and cylinders in a Svelte application?

Yes, you can render geometry types like boxes, spheres, cylinders, toruses, and planes in a Svelte application. These meshes support configurable materials and integrate directly into the declarative scene component hierarchy.

Does this approach support automatic renderer selection between WebGPU and WebGL?

Yes, this approach supports automatic renderer selection between WebGPU and WebGL. It integrates with Babylon.js to detect and leverage WebGPU when available, falling back to WebGL for broader browser compatibility.

What is the best way to manage graphics state in a Svelte 3D visualization?

The best way to manage graphics state in a Svelte 3D visualization is a centralized, store-based pattern using a pure reducer. This store drives the declarative Scene, Camera, Light, and Mesh components for interactive rendering.

Are there limitations when using store-driven 3D graphics for educational applications?

Store-driven 3D graphics for educational applications are suitable for interactive demos and visualizations. The primary consideration is ensuring target browsers support WebGPU or WebGL, as the automatic renderer selection relies on Babylon.js integration.

Do I need Babylon.js to render 3D meshes in Svelte?

Babylon.js is used optionally for renderer selection and advanced 3D capabilities. The skill provides declarative Scene, Camera, Light, and Mesh components that configure geometry and materials, handling the WebGPU or WebGL rendering pipeline automatically.