Install only packages that have had time to be checked.
SWNDX publishes curated indexes of PyPI and npm. New releases wait out a 7-day quarantine, versions listed as malicious never appear, and pip, uv and npm keep working unchanged.
uv
# pyproject.toml
[[tool.uv.index]]
name = "swndx"
url = "https://py.swndx.dev/public/default/simple/"
default = true
pip
pip install --index-url https://py.swndx.dev/public/default/simple/ requests
# or in pip.conf:
[global]
index-url = https://py.swndx.dev/public/default/simple/
npm
# .npmrc
registry=https://node.swndx.dev/public/default/
pnpm
# .npmrc
registry=https://node.swndx.dev/public/default/
Most malicious releases are caught within days. Your build runs in minutes.
Supply-chain attacks rarely look like attacks. A maintainer's account is hijacked and a poisoned release goes out under a trusted name. A typosquat waits one keystroke away from a popular package. And AI coding assistants sometimes suggest package names that don't exist, which attackers then register and fill with malware.
Most of these are found and pulled quickly, but anyone who installs during that window is hit. SWNDX closes the window: new releases wait 7 days before we serve them, and we serve only established, widely used packages, so a name registered last week never reaches your build.
How it works
Watch
We track the most-downloaded packages on PyPI and npm and check them at least daily.
Filter
Policy decides what's served: the quarantine, OpenSSF's list of malicious versions (checked every 6 hours), integrity checks and version limits.
Install
Your tools download files straight from PyPI and npm. SWNDX never hosts or changes a package. Read how.
The indexes
| Index | Address | What's served |
|---|---|---|
| PyPI default | https://py.swndx.dev/public/default/simple/ | Wheels only, the 10 newest versions within 3 years plus older ones listed packages need, a pre-release only for projects with nothing else, 7-day quarantine, Python 3.11+. |
| PyPI relaxed | https://py.swndx.dev/public/relaxed/simple/ | The default policy plus approved pre-releases and sdists where a version has no wheel. |
| npm default | https://node.swndx.dev/public/default/ | The 10 newest versions within 3 years plus older ones listed packages need, a pre-release only when one is needed, sha512 integrity required, 7-day quarantine. |
Get started in one line
uv
# pyproject.toml
[[tool.uv.index]]
name = "swndx"
url = "https://py.swndx.dev/public/default/simple/"
default = true
pip
pip install --index-url https://py.swndx.dev/public/default/simple/ requests
# or in pip.conf:
[global]
index-url = https://py.swndx.dev/public/default/simple/
Poetry
# pyproject.toml
[[tool.poetry.source]]
name = "swndx"
url = "https://py.swndx.dev/public/default/simple/"
priority = "primary"
npm
# .npmrc
registry=https://node.swndx.dev/public/default/
pnpm
# .npmrc
registry=https://node.swndx.dev/public/default/
Yarn
# .yarnrc.yml
npmRegistryServer: "https://node.swndx.dev/public/default/"
Nexus / Artifactory
Create a remote (proxy) repository for each ecosystem:
PyPI remote URL: https://py.swndx.dev/public/default/
npm remote URL: https://node.swndx.dev/public/default/
Then point developers and CI at your proxy only.
Use SWNDX as your only index. Adding it with --extra-index-url next to PyPI reopens dependency confusion. Without a token you get 100 requests an hour per address. Do you need a token?
Works with your AI coding assistant
Claude Code, Cursor, Copilot and other agents install packages for you. Add a few lines to your project's agent instructions and they'll use SWNDX, and stop instead of falling back to the public registries when a package isn't available.
Machine-readable: /llms.txt · /llms-full.txt · a Markdown copy of every page · full agent rules
AGENTS.md / CLAUDE.md
## Package installs
- Install Python packages only from https://py.swndx.dev/public/default/simple/
- Install npm packages only from https://node.swndx.dev/public/default/
- Never add --extra-index-url, pypi.org or registry.npmjs.org as a fallback.
- If a package or version isn't available, stop and tell the user;
don't work around it.
.cursor/rules
---
description: Package sources
alwaysApply: true
---
Use https://py.swndx.dev/public/default/simple/ and https://node.swndx.dev/public/default/ as the only package sources.
If a package isn't available there, stop and ask the user. Never fall back
to pypi.org or registry.npmjs.org.
Do you need a token?
Every request is rate-limited. Without a token you get 100 requests an hour per address, which is meant to cover personal development. Organizations, shared CI, caching proxies and teams behind one office address will reach it, so they should request a token. Larger personal projects can reach it too: a first npm install without a lockfile looks up every package in the tree.
Please note that rate limits are subject to change. We're trying to strike a balance here – providing a great service to developers while delivering it sustainably. We want to help drive meaningful progress towards improving the software supply chain. But we're not a megacorporation.
Request a token
Early access is by invitation. Tell us about your team and we'll reply within 3 business days.
- A higher limit than anonymous use
- An optional IP restriction
- Works with caching proxies and CI
- Security notices if a version we served is later found malicious
Questions
What makes your indexes different?
Each one is a deliberate subset of PyPI or npm, with rules chosen for safety: wheels only on our default PyPI index, so installing never runs a package's code; a 7-day wait for new releases; and only established, widely used packages. See what each index serves, and why.
What if a package I need isn't there?
Our indexes are deliberately a subset. Send a package request and we'll review it; until then the package isn't installable through SWNDX, which is the point.
Do you host or change packages?
No. We publish only the index pages. Every file comes from PyPI or npm, byte for byte. Read how.
What do you log?
Which index pages were requested, when, and by which token, so we can run the service and investigate incidents. Details are on the privacy page.
How is this different from a caching proxy?
A proxy such as Nexus or Artifactory stores copies of whatever you ask for. SWNDX decides what's allowed in the first place. They work well together: point your proxy at SWNDX.
Will there be plans for teams and organizations?
Yes. Tiered plans for individuals, teams, and small and large organizations are on our near-term roadmap.
On the roadmap
We're just getting started. There's a lot more we're hoping to deliver. See the roadmap.