npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-three-lite

v0.9.0

Published

Readme

English | 🇨🇳中文

React Three Lite

Documentation

Visit r3l.sunquakes.com.

Features

  • Scene — Core 3D scene container with camera, renderer, lights, and controls
  • Model Loaders — GLTFLoader / FBXLoader / OBJLoader components and async function loaders with Draco compression support
  • Bloom — Post-processing glow effect
  • HeightFog — Screen-space exponential height fog
  • Fireworks — Shader-driven firework launch with gravity-bent burst trails
  • TextFireworks — Fireworks that assemble a text glyph from particles
  • Rain / Snow — Particle effects with custom GLSL shaders
  • Water — Cinematic shallow ocean with planar reflection and refraction, plus an optional irregular outline for lakes and shorelines
  • WaterPool — Interactive ray-traced water pool you can ripple by dragging (water surface only; add SkyDome for the sky and sun)
  • SandyBeach — Walkable dawn beach island with footprints in the sand
  • SkyBox — Skybox background support
  • SkyDome — Gradient sky dome with a low sun
  • Global Parameters — Shared sun direction that keeps SkyDome, Water, WaterPool and HeightFog in sync
  • SweepLight — Model sweep light animation
  • LightGradient — Dynamic lighting gradient effect
  • LightPillar — Vertical light pillar effect
  • RadarSweep — Ground radar pulse ring
  • SignalWave — Billboarded broadcast ping wave
  • GlowSprite — Camera-facing halo sprite with optional pulse
  • NebulaGalaxy — Particle nebula galaxy
  • ForceShield — Hexagonal energy shield with impact rings and a dissolve animation
  • Callout — Leader line annotation with auto-anchor camera tracking
  • Popup — Interactive 3D popup dialogs
  • Movable — Draggable scene elements
  • Animation — Model animation playback
  • ModelRotator — Automatic model rotation utility
  • Picker — Hover and click picking for scene objects
  • FitCamera — Coordinate-system agnostic camera framing
  • WaveCircleMesh / FlowLineMesh — Custom visualization meshes
  • GeoObject — Anchors an Object3D at a geographic coordinate
  • GeoJsonLayer — Renders GeoJSON features as 3D geometry
  • TileLayer — XYZ / slippy-map raster tile layer
  • GIS helpers — GeoReference, datum conversion (WGS84 / GCJ-02 / BD-09) and tile selection utilities

Renderer Support

react-three-lite works with both modern 3D renderers:

| Renderer | Default | Notes | |----------|---------|-------| | WebGPU | ✅ | WebGPURenderer from three/webgpu. The default renderer. Automatically falls back to the WebGL2 backend when WebGPU is unavailable. | | WebGL | | Classic THREE.WebGLRenderer. TSL shaders are compiled to GLSL via WebGLNodesHandler. |

Switch renderers per scene with the rendererType prop:

import { Scene } from 'react-three-lite'

function App() {
  // WebGPU (default)
  return <Scene style={{ width: '100%', height: '300px' }} />
}

function AppWebGL() {
  // WebGL
  return <Scene rendererType="webgl" style={{ width: '100%', height: '300px' }} />
}

The docs site shows every example under both renderers with a WebGPU / WebGL tab switch.

Install

Install Three.js

pnpm i three

Install react-three-lite

pnpm i react-three-lite

Getting Started

  • Import the desired components from react-three-lite in main.js.
import { Scene } from 'react-three-lite'

function App() {
  return <Scene style={{ width: '100%', height: '300px' }} />
}

License

Apache-2.0 license