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

@mundobobba/mbroom

v0.2.0

Published

Renderer + pipeline de assets do Habbo Hotel. Fork mantido do shroom com suporte a <remove>, <avatar ink>, <override>, staticY, ink=33 PMA inverse e CLI de download/extract/build/fix dos SWFs.

Readme

MBroom — Renderer + pipeline de assets do Mundo Bobba

Fork interno do shroom de @jankuss (LGPL-3.0). Duas funções: renderer (avatar/furni/room em PIXI) e CLI de pipeline (download, extract, build, fix de assets do Habbo).

Publicado no npm como @mundobobba/mbroom. Consumido pelo front-mundobobba (renderer) e pelo cdn-mundobobba (CLI de pipeline).

CLI — pipeline de assets

npx mbroom <comando> [opções]

| Comando | O que faz | |---|---| | gamedata | baixa external_variables.txt, external_flash_texts.txt, HabboAvatarActions.xml | | dump | baixa SWFs do Habbo + extrai em .mbroom (formato ShroomAssetBundle) | | build | pós-processa .mbroom (ícones, walkability, figure libs, meta.json) | | extract-furni | gera WebP animado por furni (precisa ffmpeg no PATH) | | fix-effects | corrige offsets corrompidos de Splash/Swimming via diff bbox + <fx> dx/dy | | run | atalho: gamedatadumpbuildfix-effectsextract-furni |

Flags úteis

# Pipeline completa
npx mbroom run

# Só restaurar effects específicos (pula download/extract de figure+furniture)
npx mbroom dump --effects=TotemMan,TotemMerdragon,SunnyDelight

# Re-gerar só meta.json
npx mbroom build --only=meta

# Re-gerar webp de um furni só
npx mbroom extract-furni --only=throne --force

--location=<DIR> (ou env RESOURCES_DIR) muda o destino — default ./public/resources.

fix-effects (porquê existe)

Habbo distribui Splash/Swimming com <param key="offset" value="0,0"/> corrompido no manifest. Existem variantes SplashEvil/SwimEvil com offsets corretos e PNGs trimados. O comando calcula offsets do par "uniforme" via diff de bbox + dx/dy do <fx>, depois reescreve o manifest.bin solto e o .mbroom bundle (que é o que o front carrega).

Fórmula validada (mesma do script antigo fix-splash-swimming-offsets.mjs):

target.offset.x = source.offset.x + (sourceFx.dx - targetFx.dx) + bbox.left
target.offset.y = source.offset.y + (targetFx.dy - sourceFx.dy) + bbox.top

Build / dev

npm install         # node 18+ — deps nativas (canvas, swf-extract) são optional
npm run build       # tsc → dist/
npm run dev         # tsc --watch

tsconfig.json usa module: "node16" + moduleResolution: "node16" + rootDir: "./src". Augmentations de tipo (ex.: bin-pack, *.png) ficam em .d.ts puro.

Após qualquer rebuild — invalidar cache do Vite no front

O Vite pre-bundleia node_modules em node_modules/.vite/deps e não invalida quando o symlink do file: aponta pra novo dist:

cd front-mundobobba
Remove-Item -Recurse -Force node_modules/.vite
npm run dev -- --force

Front consume

npm install @mundobobba/mbroom
import { Shroom, Room, Avatar, AvatarLoader, FurnitureLoader } from '@mundobobba/mbroom';

Para desenvolvimento local com mudanças no fonte do mbroom, é possível apontar via path em vez do registry:

"@mundobobba/mbroom": "file:../mbroom"

CDN consume

cdn-mundobobba instala o pacote como dependência e roda o CLI na pipeline de assets (cron diária + endpoint protegido pra trigger manual):

npm install @mundobobba/mbroom
npx mbroom run

Compatibilidade Node

Node 18 / 20 / 22 / 24. Deps com binários nativos (canvas, swf-extract) estão em optionalDependencies e não falham o install em versões onde o pré-build não cobre.

Crédito upstream

Licença LGPL-3.0 preservada — toda modificação aqui também é LGPL.