</>PackageGraphPackageGraph

whatwg-url

npmv17.1.0

An implementation of the WHATWG URL Standard's URL API and parsing machinery

Safe to adopt

Yes — whatwg-url scores well across adoption, maintenance, weight, supply chain, and licensing. 204.4M downloads per week and 3 known dependents. Last published 65 days ago. 9 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    204.4M downloads per week and 3 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 65 days ago. 9 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 4 transitive packages, about 819 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 6 maintainers, and a contained dependency surface.

  • 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 whatwg-url to a project.

3
Direct dependencies

Runtime packages this one declares itself.

4
Total installed

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

819 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

BSD-2-ClauseMIT

Every license you inherit by installing whatwg-url, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node ^22.14.0 || >=24.0.0
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the whatwg-url README.

const result = parseURLWithValidationErrors("https://example.org/%s");

console.log(result.url === null); // false
console.log(result.validationErrors); // [ "invalid-URL-unit" ]

Dependencies

Declared by whatwg-url v17.1.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (7)

@domenic/eslint-config ^5.1.0c8 ^11.0.0esbuild ^0.28.1eslint ^10.6.0globals ^17.7.0tinybench ^6.0.2webidl2js ^20.1.0

Used by

Popular packages that depend on whatwg-url.

Relationship graph

Dependencies (left) and dependents (right) of whatwg-url.

Frequently installed together

Release history

9 releases in the last two years, typically about 64 days apart.

Recent versions of whatwg-url
VersionPublishedSizeLicense
17.1.0latest2 months ago121 KBMIT
17.0.02 months ago103 KBMIT
16.0.16 months ago99 KBMIT
16.0.07 months ago99 KBMIT
15.1.011 months ago98 KBMIT
15.0.01 year ago98 KBMIT
14.2.01 year ago96 KBMIT
14.1.11 year ago97 KBMIT
14.1.01 year ago97 KBMIT
14.0.02 years ago96 KBMIT
13.0.03 years ago96 KBMIT
12.0.13 years ago93 KBMIT
12.0.03 years ago93 KBMIT
11.0.04 years ago92 KBMIT
10.0.04 years ago92 KBMIT

Overview

whatwg-url is an npm package that an implementation of the WHATWG URL Standard's URL API and parsing machinery. It is extremely widely used, with about 204.4M downloads per week and 3 known dependents in the graph. The latest version is 17.1.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need an implementation of the WHATWG URL Standard's URL API and parsing machinery and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (204.4M weekly downloads).
  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

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

Maintainers

Frequently asked questions

Should I use whatwg-url?

Yes — whatwg-url scores well across adoption, maintenance, weight, supply chain, and licensing. 204.4M downloads per week and 3 known dependents. Last published 65 days ago. 9 releases in the last 2 years.

How do I install whatwg-url?

Run `npm install whatwg-url` to add whatwg-url to your npm project.

How many dependencies does whatwg-url have?

whatwg-url declares 10 direct dependencies and pulls in 4 packages in total once its runtime tree is resolved totalling about 819 KB on disk.

What license is whatwg-url released under?

whatwg-url is distributed under the MIT license. Its dependency tree also includes: BSD-2-Clause, MIT.

How popular is whatwg-url?

whatwg-url has approximately 204,357,824 downloads per week and 3 known dependent packages.

Is whatwg-url still maintained?

The most recent release of whatwg-url (v17.1.0) was published 2 months ago.

Does whatwg-url run install scripts?

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