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

@defu13/asthree-react

v0.1.2

Published

Asthree, 3D ASCII render component for React

Readme

asthree-react

A React component that renders 3D models with a real-time ASCII art effect. Drop it into any React project and get an interactive, customizable ASCII render of any .glb model — no configuration required.

npm license


Installation

npm i @defu13/asthree-react

Peer dependencies

Make sure these are installed in your project:

npm i react react-dom three @react-three/fiber @react-three/drei @react-three/postprocessing postprocessing

Quick start

You'll need two assets in your project's public folder:

  • HDR lighting file — download a free one from Poly Haven and place it at public/hdr/studio.hdr. I recommend this studio light.
  • 3D model — download a free .glb model from Sketchfab and place it at public/models/model.glb
import { AsthreeRender } from "@defu13/asthree-react";

export default function App() {
    return (
        <div className="h-screen w-screen">
            <AsthreeRender model="/models/model.glb" hdr="/hdr/studio.hdr" />
        </div>
    );
}

Props

| Prop | Type | Default | Description | |---|---|---|---| | model | string | "/models/model.glb" | Path or URL to a .glb model file | | hdr | string | /hdr/studio.hdr | Path or URL to a .hdr hdr light file | | preset | string | — | Preset code generated by the ASCII 3D Editor | | settings | object | — | Settings object (alternative to preset) | | width | string | "100%" | Canvas width | | height | string | "100%" | Canvas height | | enableOrbit | boolean | true | Allow rotating the model by dragging | | enableZoom | boolean | true | Allow zooming with the scroll wheel or pinch gesture |


Using presets

The easiest way to configure the render is through the ASCII 3D Editor — a visual tool that lets you adjust every parameter in real time and generates a short preset code you can copy and paste directly into the preset prop.

<AsthreeRender
    model="/models/model.glb"
    hdr="/hdr/studio.hdr"
    preset="AQQh_zNmGQwfAfQiANI"
/>

The preset encodes only the values that differ from the defaults, so codes stay short even with many customizations.


Manual settings

If you prefer to pass settings as an object instead of a preset string:

<AsthreeRender
    model="/models/model.glb"
    hdr="/hdr/studio.hdr"
    settings={{
        ascii: {
            cellSize: 12,
            tintColor: "#FF3366",
            glow: true,
            glowIntensity: 5,
        },
        model: {
            autoRotate: true,
            autoRotateSpeed: 0.3,
        },
    }}
/>

Partial objects are merged with the defaults, so you only need to specify what you want to change.


Disabling interaction

// Static render — no orbit, no zoom
<AsthreeRender
    model="/models/model.glb"
    hdr="/hdr/studio.hdr"
    preset="AQQh_zNmGQwfAfQiANI"
    enableOrbit={false}
    enableZoom={false}
/>

Tech stack


License

MIT © Yubal De Fuente