Do you need a token?

Every request to SWNDX is rate-limited. We'd rather say so up front than have you find out from an error in CI.

The limits

Limit
Without a token 100 requests an hour per address
With a token 5,000 requests an hour per token

Only index lookups count: a PyPI project page or an npm package document. File downloads go straight to PyPI and npm and never touch SWNDX.

Limits are subject to change. Our goal is to allow individual developers to Just Develop while preventing abuse. Organizations will almost certainly want to request tokens to support their various use cases.

You probably don't need one if

You're developing on your own machine. The anonymous limit is meant to leave personal development alone, and your tools' caches and lockfiles keep repeat installs small.

One caveat: a larger personal project can pass 100 lookups in a single install. A first npm install without a lockfile looks up every package in the tree, often several hundred, and resolving a large Python project for the first time can do the same. If that's you, request a token too.

You need one if

  • you install from CI, especially shared runners;
  • you run a caching proxy (Nexus, Artifactory) in front of SWNDX;
  • several people share one office or VPN address, which counts as one address;
  • you're rolling SWNDX out across an organization.

What a token gives you

  • A much higher limit.
  • An optional IP restriction, so a leaked token is useless elsewhere.
  • Security notices: if we find that a version we served is later listed as malicious, we write to your security contact.

Request a token.

When you hit the limit

SWNDX answers 429 Too Many Requests with a Retry-After header saying when the hour resets. pip, uv and npm report it as a failed request. Wait for the reset, or use a token.