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

@glyphcss/react

v0.0.3

Published

React components for the glyphcss ASCII polygon mesh rendering engine

Readme

Status: pre-1.0. APIs may still change before a stable 1.0 release.

@glyphcss/react

React components for glyphcss — an ASCII polygon mesh renderer that projects 3D scenes into a single <pre> element. Loads OBJ, glTF, GLB, and MagicaVoxel .vox files; renders the result as monospace text in the browser.

Install

npm install @glyphcss/react

Requires React 18 or 19 as a peer dependency.

Quickstart

import {
  GlyphCamera,
  GlyphScene,
  GlyphMesh,
  GlyphOrbitControls,
} from "@glyphcss/react";

export function App() {
  return (
    <GlyphCamera rotX={0.4} zoom={0.32}>
      <GlyphScene cols={80} rows={40}>
        <GlyphOrbitControls />
        <GlyphMesh src="/cottage.glb" />
      </GlyphScene>
    </GlyphCamera>
  );
}

Component reference

<GlyphCamera> / <GlyphOrthographicCamera>

Orthographic camera. GlyphCamera is the ergonomic default alias. Wraps <GlyphScene> — the camera is always the outermost element.

| Prop | Type | Default | Description | |---|---|---|---| | rotX | number | 0 | Tilt in radians | | rotY | number | 0 | Azimuth in radians | | zoom | number | 0.4 | Mesh fraction of min(cols, rows) |

<GlyphPerspectiveCamera>

Perspective (foreshortened) camera. Required for <GlyphFirstPersonControls>.

| Prop | Type | Default | Description | |---|---|---|---| | rotX | number | 0 | Tilt in radians | | rotY | number | 0 | Azimuth in radians | | distance | number | 3 | Perspective distance in world units | | zoom | number | 0.4 | Mesh fraction of min(cols, rows) |

<GlyphScene>

Root of every React glyphcss render tree. Owns the <pre> output element and rasterizes all meshes on camera or state change. Must be a child of a camera component.

| Prop | Type | Default | Description | |---|---|---|---| | cols | number | 80 | Grid width in character cells | | rows | number | 40 | Grid height in character cells | | mode | "wireframe" \| "solid" \| "voxel" | "solid" | Render mode | | className | string | — | CSS class on the <pre> container |

<GlyphMesh>

Loads and displays a 3D mesh. Supports .obj, .glb, .gltf, .vox.

| Prop | Type | Description | |---|---|---| | src | string | URL of the mesh file | | color | string | Override mesh color |

<GlyphOrbitControls> / <GlyphMapControls>

Mouse/touch/keyboard camera controls.

Hooks

  • useGlyphCamera() — access the camera context
  • useGlyphSceneContext() — access scene state
  • useGlyphMesh(handle) — mesh state and imperative API
  • useGlyphAnimation(clips, controller) — three.js-style animation mixer

License

MIT