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

puchitto

v0.1.3

Published

A framework for making multiplayer 3d experiences.

Readme

A tiny framework for building interactive multiplayer 3D websites. This is the client equivalent to Puchitto.Server.

Why?

While I was building my personal website (prefetcher.net), I started working on a thin framework on top of THREE.js that could support building multiplayer worlds, with easy level bundling and extending. It grew a bit in scope, so I've decided to split it into its own thing.

It's very much tailor-built to fit my own needs, but I thought some people might benefit from it too, so here's that.

Features

  • Full client/server architecture over WebSockets, with the server-side written in C#.
  • Ability to define own objects and packets by extending the base Game class.
  • Loading and reconstructing levels from ALF (Agiriko Lump Format) bundle files.
  • Tiny LISP-based scripting language (called MiniAntics) for scripting interactions within the level.
  • An event stream for most framework-related happenings, like loading or object creation.
  • Tweening.

How to start?

You can create your own project by extending the abstract Game class. Custom entities can then be defined within the registerCustomEntities method, whilst custom packets can be registered by extending the registerCustomPacketHandlers method.

An example game can be seen below:

import { Game } from 'puchitto'

export default class PrefetcherGame extends Game {
    protected registerCustomEntities(factory: EntityFactory): void {
        factory.registerEntity<AtaObject>("ata", AtaObject)
    }

    protected registerCustomEventStreamHandlers(): void {
        this.eventStream.on("loading", (percent) => {
            console.log(`${percent * 100}%...`)
        })
    }

    protected registerCustomPacketHandlers(): void {
        this._networkManager.addPacketHandler(PrefetcherPacketTypes.MOVE_ATA, async (nr, game) => {
            const packet = readMoveAtaPacket(nr)
            
            const entity = game.getObjectById(packet.id) as AtaObject
            if (entity === undefined) {
                return
            }

            entity.doMove(packet.to)
        }) 
    }
}

To then create an instance of the game, you instantiate a new object of your game class, and call run on it. You must also pass the address of the server, and the element where the THREE.js renderer will bind.

import PrefetcherGame from "./prefetcherGame";
 
const game = new PrefetcherGame()
game.run({
    element: document.getElementById("game")!,
    server: "http://localhost:8080/"
})

The game will then autoconnect to the server and fetch the currently present level to load into it.

Configuration

This project utilizes ECMAScript Stage 3 decorators. Because modern environments are still rolling out native support, you must configure your build toolchain to target es2022 (or newer) to process the syntax correctly.

Astro

Update your astro.config.mjs to pass the es2022 target down to Vite and esbuild:

// @ts-check
import { defineConfig } from 'astro/config';

export default defineConfig({
  vite: {
    esbuild: {
      target: 'es2022'
    },
    build: {
      target: 'es2022'
    }
  }
});

Vite

If you are using standard Vite, configure the targets directly in your vite.config.js or vite.config.ts:

import { defineConfig } from 'vite';

export default defineConfig({
  esbuild: {
    target: 'es2022'
  },
  build: {
    target: 'es2022'
  }
});

TypeScript

If you are relying on tsc for compilation or type-checking, update your tsconfig.json. You must set the target to ES2022 (or newer) and ensure that legacy experimental decorators are disabled:

{
  "compilerOptions": {
    "target": "ES2022",
    "experimentalDecorators": false 
  }
}

Note: experimentalDecorators defaults to false in modern TypeScript versions, but if it is enabled elsewhere in your config, it will override the modern Stage 3 standard and cause errors.

Contributing

If you'd really want to contribute to this project (thank you!) please adhere to the Conventional Commits commit format as much as you can.