Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
onmax avatar

Tresjs

  • 1k installs
  • 696 repo stars
  • Updated July 27, 2026
  • onmax/nuxt-skills

tresjs is an agent skill that adds production-ready 3D controls, loaders, and scene helpers to TresJS Vue applications via @tresjs/cientos and three-stdlib without writing boilerplate from scratch.

About

tresjs is an onmax/nuxt-skills agent skill for TresJS Vue 3D development using the @tresjs/cientos helper collection built on three-stdlib. Install with pnpm add @tresjs/cientos and import components such as OrbitControls directly inside TresCanvas without a Tres prefix. The skill documents camera orbit props including enableDamping, autoRotate, minDistance, and maxDistance plus change, start, and end events. Developers reach for tresjs when building interactive 3D dashboards, product viewers, or WebGL scenes in Vue/Nuxt apps and want prebuilt controls and loaders instead of raw Three.js setup code.

  • Ready-made components for OrbitControls, CameraControls, TransformControls, ScrollControls and more
  • useGLTF loader with Draco support for glTF/GLB models
  • No Tres prefix required - direct imports for all helpers
  • Built on three-stdlib for reliable Three.js utilities
  • Full event support including @change, @start, @end on controls

Tresjs by the numbers

  • 1,040 all-time installs (skills.sh)
  • +23 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #363 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/onmax/nuxt-skills --skill tresjs

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1k
repo stars696
Security audit3 / 3 scanners passed
Last updatedJuly 27, 2026
Repositoryonmax/nuxt-skills

How do you add 3D controls to TresJS Vue apps?

Quickly add production-ready 3D controls, loaders, and scene helpers to TresJS Vue applications without writing boilerplate from scratch.

Who is it for?

Vue or Nuxt developers building TresJS WebGL scenes who want prebuilt OrbitControls and Cientos helpers instead of raw Three.js boilerplate.

Skip if: React Three Fiber projects or 2D-only Vue apps with no WebGL or TresJS dependency.

When should I use this skill?

The developer works with TresJS, @tresjs/cientos, OrbitControls, or Vue 3D scene setup in Nuxt or Vue applications.

What you get

Vue TresCanvas scenes with @tresjs/cientos controls, loaders, and configured 3D camera interactions.

  • TresCanvas Vue components
  • OrbitControls configuration
  • 3D scene with Cientos helpers

Files

SKILL.mdMarkdownGitHub ↗

TresJS

Vue 3 framework for building 3D scenes with Three.js. Declarative components that wrap Three.js objects.

Packages: @tresjs/core (required), @tresjs/cientos (helpers), @tresjs/post-processing (effects)

Installation

# Core (required)
pnpm add three @tresjs/core

# Helpers - controls, loaders, materials, staging
pnpm add @tresjs/cientos

# Post-processing effects
pnpm add @tresjs/post-processing

Quick Reference

Working on...Load file
TresCanvas, useTres, useLoopreferences/core.md
Controls, loaders, materialsreferences/cientos.md
Bloom, glitch, DOF effectsreferences/effects.md
Common patterns, recipesreferences/cookbook.md

Loading Files

Load based on your task:

  • [ ] references/core.md - TresCanvas setup, composables, events, primitives
  • [ ] references/cientos.md - OrbitControls, useGLTF, Environment, materials
  • [ ] references/effects.md - EffectComposer, bloom, glitch, DOF
  • [ ] references/cookbook.md - Load models, camera setup, animations

DO NOT load all files at once. Load only what's relevant.

Core Concepts

TresCanvas

Root component that creates WebGL renderer and scene:

<script setup lang="ts">
import { TresCanvas } from '@tresjs/core'
</script>

<template>
  <TresCanvas shadows alpha>
    <TresPerspectiveCamera :position="[5, 5, 5]" />
    <TresMesh>
      <TresBoxGeometry />
      <TresMeshStandardMaterial color="orange" />
    </TresMesh>
    <TresAmbientLight :intensity="0.5" />
    <TresDirectionalLight :position="[3, 3, 3]" :intensity="1" />
  </TresCanvas>
</template>

Component Naming

All Three.js classes available as Vue components with Tres prefix:

  • THREE.PerspectiveCamera<TresPerspectiveCamera />
  • THREE.Mesh<TresMesh />
  • THREE.BoxGeometry<TresBoxGeometry />
  • THREE.MeshStandardMaterial<TresMeshStandardMaterial />

Constructor arguments via :args prop:

<TresPerspectiveCamera :args="[75, 1, 0.1, 1000]" />

Reactivity

Props are reactive - changes update the 3D scene:

<script setup>
const color = ref('orange')
const position = ref([0, 0, 0])
</script>

<template>
  <TresMesh :position="position">
    <TresMeshStandardMaterial :color="color" />
  </TresMesh>
</template>

Primitive Component

Inject existing Three.js objects directly:

<script setup>
import { useGLTF } from '@tresjs/cientos'
const { scene } = await useGLTF('/model.glb')
</script>

<template>
  <primitive :object="scene" />
</template>

Available Guidance

[references/core.md](references/core.md) - TresCanvas props, useTres, useLoop, useGraph, events, performance

[references/cientos.md](references/cientos.md) - OrbitControls, useGLTF, useTexture, Environment, Sky, materials, shapes

[references/effects.md](references/effects.md) - EffectComposer vs EffectComposerPmndrs, bloom, glitch, DOF, effect stacking

[references/cookbook.md](references/cookbook.md) - Load 3D model, camera with controls, animation loop, post-processing

Related skills

How it compares

Pick tresjs for Vue TresJS and Cientos shortcuts; use raw Three.js skills when not on Vue or when full low-level control is required.

FAQ

How do you install helpers for tresjs?

tresjs documents installing @tresjs/cientos with pnpm add @tresjs/cientos, then importing components like OrbitControls directly into TresCanvas Vue templates without a Tres prefix.

What does tresjs OrbitControls support?

tresjs covers OrbitControls props including enableDamping, autoRotate, autoRotateSpeed, zoom and pan toggles, min and max distance, polar angle limits, and change, start, and end events.

Is Tresjs safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Frontend Developmentfrontendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.