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

@gaussforge/wasm

v0.3.0

Published

GaussForge WASM library for Gaussian Splatting format conversion

Downloads

680

Readme

GaussForge WASM

WebAssembly version of GaussForge, providing TypeScript wrapper library for use in browsers and Node.js.

Features

  • Support for multiple Gaussian splatting formats: PLY, Compressed PLY, Splat, KSplat, SPZ
  • Format conversion functionality
  • TypeScript type support
  • Browser and Node.js compatible

Installation

npm install @gaussforge/wasm

Usage

Browser

import { createGaussForge } from '@gaussforge/wasm';

async function handleFileUpload(file: File) {
    // Initialize
    const gaussForge = await createGaussForge();
    
    // Read file
    const fileData = await file.arrayBuffer();
    const result = await gaussForge.read(fileData, 'ply');
    console.log(`Loaded ${result.data.numPoints} points`);
    
    // Convert format
    const converted = await gaussForge.convert(fileData, 'ply', 'splat');
    
    // Download the result
    const blob = new Blob([converted.data], { type: 'application/octet-stream' });
    const url = URL.createObjectURL(blob);
    const a = document.createElement('a');
    a.href = url;
    a.download = 'output.splat';
    a.click();
    URL.revokeObjectURL(url);
}

// Usage with file input
const fileInput = document.querySelector('input[type="file"]');
fileInput.addEventListener('change', (e) => {
    const file = (e.target as HTMLInputElement).files?.[0];
    if (file) {
        handleFileUpload(file);
    }
});

Node.js

import { createGaussForge } from '@gaussforge/wasm';
import fs from 'fs';

async function convertFile() {
    const gaussForge = await createGaussForge();
    
    // Read file
    const inputData = fs.readFileSync('input.ply');
    const result = await gaussForge.read(inputData, 'ply');
    console.log(`Loaded ${result.data.numPoints} points`);
    
    // Convert format
    const converted = await gaussForge.convert(inputData, 'ply', 'splat');
    
    // Save file
    fs.writeFileSync('output.splat', converted.data);
}

convertFile().catch(console.error);

API

createGaussForge(moduleFactory?)

Create and initialize a GaussForge instance.

read(data, format, options?)

Read Gaussian splatting data.

  • data: ArrayBuffer | Uint8Array - Input data
  • format: SupportedFormat | string - File format
  • options.strict: boolean - Whether to use strict mode

Returns: Promise<ReadResult>

write(ir, format, options?)

Write Gaussian splatting data.

  • ir: GaussianCloudIR - Gaussian splatting intermediate representation
  • format: SupportedFormat | string - Output format
  • options.strict: boolean - Whether to use strict mode

Returns: Promise<WriteResult>

convert(data, inFormat, outFormat, options?)

Convert file format.

  • data: ArrayBuffer | Uint8Array - Input data
  • inFormat: SupportedFormat | string - Input format
  • outFormat: SupportedFormat | string - Output format
  • options.strict: boolean - Whether to use strict mode

Returns: Promise<ConvertResult>

getSupportedFormats()

Get the list of supported formats.

Returns: SupportedFormat[]

isFormatSupported(format)

Check if a format is supported.

  • format: string - Format name to check

Returns: boolean

Supported Formats

  • ply - PLY format
  • compressed.ply - Compressed PLY format
  • splat - Splat format
  • ksplat - KSplat format
  • spz - SPZ format
  • sog - SOG format

Development

Build WASM

cd wasm
npm install
npm run build:wasm

Build TypeScript

npm run build:ts

Full Build

npm run build

Error Handling

All methods may throw errors. It's recommended to wrap API calls in try-catch blocks:

try {
    const result = await gaussForge.read(fileData, 'ply');
    // Handle success
} catch (error) {
    console.error('Error reading file:', error.message);
    // Handle error
}

Requirements

  • Emscripten SDK (for building WASM)
  • Node.js 18+ (for development)
  • TypeScript 5+ (for development)