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

@manycore/aholo-viewer

v1.16.0

Published

A compact TypeScript renderer core used by the Aholo Viewer website and examples.

Readme

@manycore/aholo-viewer

@manycore/aholo-viewer is the full-featured npm package for building browser-based Aholo Viewer applications. It includes the rendering runtime and TypeScript declarations for rendering 3D Gaussian Splatting (3DGS) and mesh content in WebGL/WebGL2-capable browsers.

Install

npm install --save @manycore/aholo-viewer

The package is ESM-only and ships TypeScript declarations through dist/index.d.ts.

Quick Start

Follow the Getting Started guide to create a Vite app, initialize a viewer, load a 3DGS splat, and render the first frame.

Splat Loading

From 1.15.0, SplatLoader.parseSplatData() defaults to stream: true. Calling await SplatUtils.createSplat(data) collects the samplers on the CPU. To edit or cache the parsed data directly, pass { stream: false } as the fourth argument or call await data.collect() before data.serialize().

Decoded splats use Morton order by default. Set mortonSort: false when file indices matter, including in custom chunk LOD loaders. With stream: true, passing the streaming result to await SplatUtils.createSplat(data, renderer) uploads it to an initialized backend renderer and releases its CPU buffers. If you subsequently enable splat.autoFreeResourceOnGpuPacked and the GPU source textures are freed, reloading the original asset is necessary to pack it again. See Getting Started for the 1.15.0 migration.

For CPU-backed splats, splat.autoFreeResourceOnGpuPacked defaults to true. With camera-relative packing off, WebGL can free source textures after packing to reduce GPU memory use. Set packing precision and SH precalculation with setViewerConfig() before loading the splat. Changing either later requires the source textures again. Direct GPU uploads and the demo Viewer keep automatic release disabled. See GPU source texture lifetime.

Splatting Configuration

Configure offscreen composition and tone mapping through pipeline.Splatting.composite:

import { setViewerConfig, ToneMapping } from '@manycore/aholo-viewer';

setViewerConfig(viewer, {
    pipeline: {
        Splatting: {
            enabled: true,
            composite: {
                enabled: true,
                highPrecisionEnabled: true,
                toneMapping: ToneMapping.Neutral,
                exposure: 1,
            },
        },
    },
});

When upgrading, move the former Splatting.toneMapping fields into Splatting.composite and remove pack.sortedLayoutEnabled. Set composite.highPrecisionEnabled: true to retain the floating-point intermediate buffer previously enabled by tone mapping. See the configuration migration guide and changelog for details.

Sorting and Texture Repacking

Two opt-in settings are available under pipeline.Splatting:

  • sort.radial: sort by distance from the camera instead of view-direction depth. Defaults to false.
  • pack.repackEnabled: repack WebGL rendering textures in sorted order to reduce indirect texture lookups. Defaults to false; it adds GPU memory and a repack pass, so measure it with the target scene and device.
setViewerConfig(viewer, {
    pipeline: {
        Splatting: {
            sort: { radial: true },
            pack: { repackEnabled: true },
        },
    },
});

From 1.14, WebGL always uses stable sorting on the upper 24 bits of float32 depth keys, matching WebGPU. Remove sort.highPrecisionEnabled from configuration and presets; it no longer has any effect.

From 1.16.0, the WebGL SIMD sorter shares point centers and sorted indices on cross-origin isolated pages and can use up to three helper workers. Set Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp on the host HTML. A separate CDN can serve the complete dist/ tree with ordinary module CORS headers. Without isolation the sorter uses transferable buffers. It falls back to JavaScript if WASM initialization fails. See Multithreaded WebGL Sorting.

WebGL reuses cached centers when the camera moves or LOD nodes share a source range, reads back changed rows, and overlaps sorting with sorted-index texture uploads. Compare radial sorting and texture repacking in the Splatting Basic example.

Custom source textures supplied to CompressedSplat or SuperCompressedSplat, including deserialized sampler data, must have power-of-two widths. Invalid widths now throw during construction. pack.repackEnabled is a new option; remove the former pack.sortedLayoutEnabled setting when upgrading.

Chunk LOD

For chunk LOD, SplatUtils.LodConfig.pixelLimitEnabled defaults to true. Set it to false to allow refinement beyond the viewport-based sampling limit while retaining the level and point-budget constraints.

Texture Loading

Use downloadTexture() to load standard images, DDS, or KTX2 textures. From 1.14, the bundled Basis Universal transcoder also supports XUASTC and XUBC7 KTX2 textures. XUASTC preserves the matching ASTC block size when transcoded to ASTC; XUBC7 prefers BC7 output when supported by the device.

Documentation

  • Website: https://aholojs.dev/
  • Getting Started: https://aholojs.dev/en-US/manual/getting-started/
  • API Reference: https://aholojs.dev/en-US/api/
  • Examples: https://aholojs.dev/en-US/examples/
  • AI-friendly docs: https://aholojs.dev/llms.txt
  • AI coding skill: https://github.com/manycoretech/aholo-viewer/blob/master/docs/ai/skills/use-aholo-viewer/SKILL.md

License

MIT