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

@holoscript/r3f-renderer

v6.1.4

Published

Shared React Three Fiber renderer components for HoloScript

Readme

@holoscript/r3f-renderer

Shared React Three Fiber renderer components for HoloScript.

Overview

Provides reusable R3F (React Three Fiber) components that render HoloScript compositions in the browser. Used by HoloScript Studio and the preview command.

Key Components

| Component | Purpose | | --------------------- | ---------------------------------------------------------- | | HoloSceneIRRenderer | Renders compiled SceneIR from .holo / compile_to_r3f | | MeshNode | Individual mesh rendering with trait/material mapping | | RuntimeTraitHost | Ticks compiled runtime traits inside an R3F render loop | | CompiledTraitMesh | Mesh fully driven by compiled HoloScript material/behavior |

Hologram & quilt (2D → 3D)

| Component | Purpose | | --------------- | --------------------------------------- | | HologramImage | Still image as depth-displaced hologram | | HologramGif | Animated GIF holographic sprite | | HologramVideo | Video texture on displaced surface | | QuiltViewer | Looking Glass–style quilt image viewer |

All are exported from @holoscript/r3f-renderer (see src/index.ts). Studio /playground wires drag-and-drop media to generated HoloScript via HologramDropZone.

Usage

npm install @holoscript/r3f-renderer
import { Canvas } from '@react-three/fiber';
import { HoloSceneIRRenderer } from '@holoscript/r3f-renderer';

function Preview({ sceneIR }) {
  return (
    <Canvas>
      <HoloSceneIRRenderer node={sceneIR} />
    </Canvas>
  );
}

For product scenes, author .holo and generate TSX with hs compile scene.holo --target r3f -o scene.tsx or MCP compile_to_r3f. Do not hand-write perceivable scene .tsx; the generated file embeds SceneIR and delegates to this package.

Features

  • PBR material rendering
  • Particle system support
  • Post-processing effects (bloom, SSAO, DOF)
  • GPU instancing for large scenes
  • LOD management

Advanced Rendering Caps

  • Gaussian Splatting (WebGPU): For splat rendering, always use the useGpuSplatSort hook from @holoscript/engine/gpu to bypass CPU bottlenecking during camera rotations.
  • Volumetric CRDT Caps: Spatial history for splats and dense point clouds is hard-capped at 12MiB per frame delta via the @holoscript/crdt transport protocol to prevent sync lag. Exceeding this cap will drop sync batches. See @holoscript/crdt for buffer tuning.

Related

Package boundary & release posture

Audience. @holoscript/r3f-renderer targets external and internal consumers building custom React Three Fiber viewers on top of HoloScript compositions — HoloScript Studio is the primary internal consumer, but the components are public API for any operator embedding a 3D preview surface.

Caller-owned scene data. Every renderer takes the composition, camera, and material data as props supplied by the caller; the package does not assume a specific asset CDN or backend. Where GPU/CRDT transport limits are tunable (see the volumetric CRDT cap above), tuning is configured by the operator via props or environment variables, not hardcoded.

Package boundary. This package does not ship founder-local paths, private workspace fixtures, or a bundled dev server — src/components/holoshell/scenes/* are example scenes shipped as reference content, not a network dependency.

Release posture. Known limitations: the volumetric CRDT cap (12MiB/frame) and GPU splat sort hook assume a WebGPU-capable browser and will silently drop batches over the cap rather than error; validate target hardware before shipping. If a renderer regression appears after upgrading, rollback to the prior minor version.

License

MIT