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

chorama

v0.0.0

Published

A rendering library

Downloads

139

Readme

Chorama

A modular WebGL2 rendering library built in JavaScript.

Features

  • Rendering architecture

    • Modular, plugin-driven rendering pipeline
    • Multi-pass/view rendering support
    • Render-time resource and state caching to reduce redundant GPU work
    • Extensible shader include/define system
  • Scene and transforms

    • Hierarchical scene graph for parent-child object relationships
    • Local/world transform propagation
    • Traversal utilities for update and render preparation flows
    • Support for static and skinned scene objects
  • Geometry and mesh creation

    • Ready-to-use procedural geometry builders:
      • Plane
      • Circle
      • Cylinder
      • Cuboid
      • UV sphere
      • Wireframe conversion
    • Attribute-based mesh data model (positions, normals, UVs, tangents, skinning data)
    • Flexible vertex/index data handling for custom mesh pipelines
  • Materials and shading

    • Multiple built-in shading styles:
      • Unlit/basic shading
      • Lambert diffuse shading
      • Phong shading
      • Standard physically based shading
      • Normal/depth debug shading
      • Raw/custom shader paths
    • Material properties for color, texture mapping, emissive, metallic and roughness workflows
    • Shared shader code modules for common math, color and lighting logic
  • Lighting and shadows

    • Supported light types:
      • Ambient
      • Directional
      • Point
      • Spot
    • Shadow rendering support integrated into the render pipeline
    • Lighting/material integration for lit and physically based workflows
  • Textures and sampling

    • Multiple texture formats and usage patterns
    • Sampler controls for filtering and wrapping behavior
  • Render targets and offscreen rendering

    • Direct rendering to canvas
    • Offscreen/image render target support
    • Framebuffer-based workflows for multi-step rendering
    • Foundations for post-process and texture-to-texture pipelines
  • Asset loading

    • Built-in loaders for:
      • Image textures
      • OBJ models
      • glTF scenes/assets
    • Async loading with default placeholders while assets stream in
    • Asset reuse and clone/copy loading strategies
    • glTF material/texture/skeleton parsing paths
  • Camera and interaction

    • Perspective and orthographic camera projections
    • Orbit-style interaction controls for inspection/navigation
    • Camera-aware rendering integration through the plugin system
  • Math and low-level utilities

    • Core math types and operations for:
      • Vectors
      • Quaternions
      • Matrices/affine transforms
    • Buffer/type conversion helpers for GPU upload workflows
    • WebGL mapping helpers for vertex formats, attachments and texture formats

Who This Is For

Use this library if you want lower-level control than full game engines, but still want reusable rendering building blocks for WebGL2 projects.

Getting Started

Requirements

  • Node.js 18+
  • npm
  • A browser with WebGL2 support

Install dependencies

npm install

Build library bundles

npm run build

Build output:

  • dist/index.umd.js
  • dist/index.module.js

Run demos

npx vite .

Then open:

  • http://localhost:5173/examples/index.html

Core Usage Flow

  1. Create a WebGLRenderDevice from a canvas.
  2. Create a render target (CanvasTarget or ImageTarget).
  3. Create a WebGLRenderer with the plugins needed by your scene.
  4. Build scene objects (meshes, lights, camera).
  5. Call renderer.render(objects, renderDevice) each frame.