</>PackageGraphPackageGraph

pg-cloudflare

npmv1.4.0TypeScript

A socket implementation that can run on Cloudflare Workers using native TCP connections.

Safe to adopt

Yes — pg-cloudflare scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 114 days ago. 8 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 114 days ago. 8 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 23 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding pg-cloudflare to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

23 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the pg-cloudflare README.

  export default {
    ...,
    resolve: { conditionNames: [..., "workerd"] },
    plugins: [
      // ignore cloudflare:sockets imports
      new webpack.IgnorePlugin({
        resourceRegExp: /^cloudflare:sockets$/,
      }),
    ],
  }

Dependencies

Declared by pg-cloudflare v1.4.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (2)

ts-node ^8.5.4typescript ^6.0.3

Used by

Popular packages that depend on pg-cloudflare.

Relationship graph

Dependencies (left) and dependents (right) of pg-cloudflare.

pgpg-cloudflare
pg-cloudflare dependencies dependents

Frequently installed together

Release history

8 releases in the last two years, typically about 42 days apart.

Recent versions of pg-cloudflare
VersionPublishedSizeLicense
1.4.0latest3 months ago23 KBMIT
1.3.07 months ago23 KBMIT
1.2.71 year ago23 KBMIT
1.2.61 year ago22 KBMIT
1.2.51 year ago21 KBMIT
1.2.01 year ago21 KBMIT
1.1.2-alpha.11 year ago21 KBMIT
1.1.2-alpha.01 year ago21 KBMIT
1.1.13 years ago19 KBMIT
1.1.03 years ago18 KBMIT

Overview

pg-cloudflare is an npm package that a socket implementation that can run on Cloudflare Workers using native TCP connections. It has 1 known dependents in the graph. The latest version is 1.4.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a socket implementation that can run on Cloudflare Workers using native TCP connections and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Lean dependency tree (2 direct dependencies).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use pg-cloudflare?

Yes — pg-cloudflare scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 114 days ago. 8 releases in the last 2 years.

How do I install pg-cloudflare?

Run `npm install pg-cloudflare` to add pg-cloudflare to your npm project.

What license is pg-cloudflare released under?

pg-cloudflare is distributed under the MIT license.

How popular is pg-cloudflare?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on pg-cloudflare.

Is pg-cloudflare still maintained?

The most recent release of pg-cloudflare (v1.4.0) was published 3 months ago.

Does pg-cloudflare run install scripts?

No. pg-cloudflare does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.