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

dcl-catalyst-client

v23.0.0

Published

A client to query and perform changes on Decentraland's catalyst servers

Readme

Decentraland Catalyst Client

The Catalyst Client library allows you to interact with Decentraland's Catalyst servers. It enables fetching data and deploying new entities to the Catalyst server of your choice.

Coverage Status

Installation

Install the package via npm:

npm install dcl-catalyst-client

Examples

Please check the examples repository

Partial (batched) deployments

For entities too large to upload in a single request, use deployPartial. It splits the content into size-bounded batches and uploads them across several POST /entities requests; the entity only becomes live once the server has all of it (the server finalizes automatically on the completing request).

const result = await client.deployPartial(
  { entityId, authChain, files },
  {
    // default: 100 MiB per request — requests larger than ~200MB are timed out by the
    // infrastructure in front of the content servers, so keep a margin under that.
    maxBatchSizeBytes: 100 * 1024 * 1024,
    concurrency: 2, // default: 2 parallel batch uploads (after the first)
    maxResumeAttempts: 3, // default: 3 — resumes on network/5xx failures
    onProgress: ({ uploadedBytes, totalBytes }) => console.log(`${uploadedBytes}/${totalBytes}`),
    // byte-level progress, also accepted by deploy()
    onUploadProgress: ({ phase, sentBytes, totalBytes }) => console.log(phase, `${sentBytes}/${totalBytes}`)
  }
)
console.log(result.creationTimestamp)

Notes:

  • Use the regular deploy() for normal-sized deployments; it accepts onUploadProgress too.
  • onUploadProgress reports file bytes handed to the HTTP client across every request, in the phases checking (asking the server which files it has), uploading and processing (every scheduled byte sent, waiting for the server). Events are throttled to one every 200 ms, plus every phase change and the latest count at the end of each window. A resolved deployment ends with processing and every byte sent. Re-sent content (retries, the server's missing list) grows totalBytes.
  • By default a request's bytes count when its response arrives. For live progress, create the client with streamingUploads: true: on Node the body is then streamed with an exact Content-Length, at the cost of memory: each request in flight holds its form plus an encoded copy of it, about twice the batch size, so deployPartial with the default concurrency (2) and 100 MiB batches holds up to ~400 MiB on top of the scene's files. Only set it when the fetcher passes the body to the global (undici) fetch, forwards the duplex option and headers unchanged, and never retries a POST with the same options (the stream can only be read once). @dcl/fetch-component qualifies; node-fetch does not.
  • The target server must support partial deployments. Against an older server that does not, a single-batch deployment still succeeds, but a multi-batch one rejects with PartialDeploymentNotSupportedError — fall back to deploy() in that case.
  • A validation failure on the finalizing request (e.g. exceeding the size budget) rejects with PartialDeploymentValidationError.
  • Files are never split across requests: a single file larger than the batch cap is sent alone in its own request. Per-file server caps still apply to it, and a request beyond ~200MB may be timed out by the infrastructure regardless of the configured cap.