# SWNDX > SWNDX publishes curated indexes of PyPI and npm for pip, uv, Poetry, npm, pnpm and Yarn. New releases wait out a quarantine, versions OpenSSF lists as malicious are never served, and SWNDX never hosts packages: every file downloads from PyPI or npm. Use a SWNDX index as the only package source; never add PyPI or the npm registry as a fallback. --- Source: https://swndx.dev/acceptable-use/index.md > Draft, pending legal review. # Acceptable use This page is a placeholder. The final text is being prepared with legal counsel and will be published here before general availability. Questions in the meantime: [support@swndx.dev](mailto:support@swndx.dev). --- Source: https://swndx.dev/feedback/index.md # Feedback Request a package, tell us a version is missing, report something suspicious, or suggest a feature. We read everything. A package request is a request, not a promise: we review each one before anything is added. Security problems with SWNDX itself go to [security@swndx.dev](mailto:security@swndx.dev), not this form. --- Source: https://swndx.dev/index.md # 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. ## 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](/how-it-works/). ## 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. ## 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. ## 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](/indexes/). ### What if a package I need isn't there? Our indexes are deliberately a subset. [Send a package request](/feedback/) 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](/how-it-works/). ### 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](/privacy/). ### 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](/roadmap/). ## On the roadmap We're just getting started. There's a lot more we're hoping to deliver. [See the roadmap](/roadmap/). --- Source: https://swndx.dev/how-it-works/index.md # We never host packages SWNDX decides which packages and versions your tools can see. It never stores, rebuilds or changes a package. ## What SWNDX serves Only index pages, generated from scratch: - for Python, the project pages pip and uv read ([PEP 503](https://peps.python.org/pep-0503/) and [PEP 691](https://peps.python.org/pep-0691/)); - for JavaScript, the package documents npm, pnpm and Yarn read. ## Where the files come from Every download link in those pages points at the registry that published the file: - Python files at `files.pythonhosted.org`; - npm tarballs at `registry.npmjs.org`. Your installer fetches the file from there. File hashes and npm integrity values are the registry's own, so your tools verify every file against what the registry published. ## Check it yourself - Open a project page on `py.swndx.dev` and look at any file link. - Run `npm audit signatures` in a project installed through SWNDX: npm checks every tarball's registry signature. - Compare a wheel's SHA-256 in our page with the one PyPI shows. ## Why it matters We can leave a version out, but we can never serve a file the registry didn't publish. There's no copy of your dependencies on our servers that anyone could tamper with. SWNDX is not affiliated with or endorsed by the Python Software Foundation, PyPI, npm, Inc. or GitHub. --- Source: https://swndx.dev/indexes/index.md # Our indexes Every SWNDX index is a deliberate subset of PyPI or npm. Leaving things out is how it protects you, so expect some installs to fail: a package we don't list, or a version our rules leave out. We've tried to strike a reasonable balance between what you can install and what can reach your build. This page explains the choices behind each index and how much everyday installing it should cover. ## How we choose packages - **Established, widely used packages.** We list the most-downloaded packages on PyPI and npm. Popular packages have many eyes on them; a name registered last week has none. - **Changes to the list are reviewed.** A package that climbs into the list waits for our review, and one that drops out stays for 28 days. Neither a sudden spike nor a quiet month changes your build overnight. - **New releases wait 7 days.** Most malicious releases are found and pulled within days. The wait means they're gone before your build could see them. - **Known-malicious versions never appear.** We check OpenSSF's list of malicious packages every 6 hours, and a listed version is removed at the next build. - **Unusual releases wait longer.** A release that breaks its project's usual pattern, or a published file whose contents change, is held for longer while we look at it. ## PyPI: `default` `https://py.swndx.dev/public/default/simple/` — our strictest index, and the one we recommend. - **Wheels only.** Installing a wheel unpacks files; it never runs the package's own code. A source distribution can run arbitrary code the moment it's installed, so we leave source distributions out. - **Pre-releases only when there's nothing else.** Alphas, betas and release candidates are where projects try things out, so we leave them out. A few widely used projects, OpenTelemetry's instrumentation among them, publish nothing but pre-releases; for those we serve the single newest one. - **The 10 newest versions, none older than 3 years.** Old versions keep their old bugs and vulnerabilities. If a project has nothing that recent, we keep its newest version. When a package we list needs an older version of a dependency, we keep that version too, wheels only and never older than 10 years. - **Python 3.11 and later.** We serve files for the Python versions that still receive security fixes. - **No yanked files.** A release its maintainers withdrew stays withdrawn. **Should support more than 98% of installs** of the most-downloaded projects without a missing dependency. Projects that publish only source code, and packages that pin very old versions of their dependencies, are the usual reasons an install fails here. ## PyPI: `relaxed` `https://py.swndx.dev/public/relaxed/simple/` — the `default` rules, with two exceptions for packages that need them. - **Approved pre-releases.** A pre-release appears only for a project we've approved, typically because a popular package depends on it. - **Source distributions only when there's no wheel.** For a version with no installable wheel we serve its source distribution. That restores packages `default` can't install, at a cost: those packages can run code during installation. **Should support more than 99.5% of installs** of the most-downloaded projects without a missing dependency. Use it when `default` is too strict for your dependencies. ## npm: `default` `https://node.swndx.dev/public/default/` - **Integrity required.** A version appears only with a sha512 integrity value and a tarball on the npm registry, so your client verifies every file against what npm published. - **Pre-releases only when a package we list depends on one,** because a few widely used packages, Babel's among them, still depend on a beta. - **The 10 newest versions, none older than 3 years,** plus the version the publisher tagged `latest` when it passes the other rules. - **Older versions that listed packages need.** npm packages depend on version ranges, often deep in the tree. We keep an older version when a package we serve requires it, and only then. npm packages can run install scripts, and SWNDX never changes a package, so this index can't stop that. Consider npm's `ignore-scripts` setting for your projects. ## About these figures They're estimates. For each package on our list, we check whether it and every dependency it needs can be installed from the index alone, and weight the result by its downloads over the past 30 days. A package's downloads include installs as someone else's dependency, so read the figures as a guide rather than a guarantee. They're re-measured weekly. The figures cover the most-downloaded packages, which is where nearly all installing happens. On PyPI, the projects ranked 15,001 to 30,000 together add only about 0.3% to the downloads of the top 30,000. ## When something's missing Your tools report the missing package or version; they don't fetch it from somewhere else. That's the point. [Send a package request](/feedback/) and we'll review it. On PyPI, try the `relaxed` index. --- Source: https://swndx.dev/privacy/index.md # Privacy SWNDX takes your privacy seriously. Our request logs don't keep raw IP addresses: a keyed hash of the address, rotated monthly, is kept for at most 30 days to enforce limits and investigate abuse. Our systems are architected with security as a foundational consideration, with private keys kept segregated from our user-facing infrastructure. ## What we collect today - **Request logs.** For each index request: the time, the index and project requested, the outcome, your installer's name and version, and your token's id if you used one. For IP-restricted tokens used from unauthorized IPs, we record additional data so we can provide a useful report to your security contact. That data includes time, token id, organization id, address, and host. - **Form submissions.** What you enter in the token request or feedback form, stored in our Cloudflare account and emailed to our team. Our hosting provider, Cloudflare, processes this data for us, including the Turnstile check on our forms and the emails they send. Questions: [support@swndx.dev](mailto:support@swndx.dev). --- Source: https://swndx.dev/request/index.md # Request a token Early access is by invitation. Tell us about your team and how you'll use SWNDX, and we'll reply within 3 business days. Not sure you need one? [Read who needs a token](/tokens/). --- Source: https://swndx.dev/roadmap/index.md # Roadmap ## Coming soon: plans for every size of team Tiered plans suited to individuals, teams, and small and large businesses and organizations. ## Planned: private indexes Your organization's own curated index, built with your own rules. ## Tell us what you need Something missing? [Send a feature request](/feedback/). --- Source: https://swndx.dev/terms/index.md > Draft, pending legal review. # Terms of use This page is a placeholder. The final text is being prepared with legal counsel and will be published here before general availability. Questions in the meantime: [support@swndx.dev](mailto:support@swndx.dev). --- Source: https://swndx.dev/tokens/index.md # 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](/request/). ## 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. --- Source: https://swndx.dev/docs/ai-agents/index.md # For AI agents AI coding assistants (Claude Code, Cursor, GitHub Copilot, Codex and others) install packages for you. Left alone, an agent that can't find a package will often "fix" the problem by adding PyPI or the npm registry as a fallback, which installs exactly what SWNDX left out. These rules stop that. Paste the version for your project into its agent instructions. Machine-readable versions of these docs: [`/llms.txt`](https://swndx.dev/llms.txt) and [`/llms-full.txt`](https://swndx.dev/llms-full.txt). ## The rules 1. **Use only the SWNDX indexes.** Python: `https://py.swndx.dev/public/default/simple/` (`default`), or `https://py.swndx.dev/public/relaxed/simple/` (`relaxed`) if the project uses that one. npm: `https://node.swndx.dev/public/default/`. 2. **Never add a fallback.** Never add `--extra-index-url`, `pypi.org`, `registry.npmjs.org` or another registry, scope or mirror. That includes adding `relaxed` next to `default`, or moving a project from one to the other: which Python index a project uses is the user's decision. 3. **Read the error.** A `404` or a missing version means SWNDX's policy left it out; a timeout, TLS or DNS error is a network problem; `401`/`403` is a token problem; `429` is the rate limit. 4. **When a package or version isn't available, stop and tell the user.** Suggest the feedback form (https://swndx.dev/feedback/). Don't work around it: no vendoring, no git or tarball URLs, no other index. 5. **Prefer versions the index lists.** Don't pin a newer version the index doesn't serve; it may still be in quarantine. 6. **Keep tokens out of files.** Read a SWNDX token only from an environment variable or the tool's credential store, and never write one into a committed file. 7. **Treat unfamiliar package names as suspect.** If you aren't sure a package exists, check before installing. A `404` from SWNDX is a safety signal, not an obstacle. The snippets below use the `default` Python index. For a project on `relaxed` ([which one?](https://swndx.dev/indexes/)), replace `https://py.swndx.dev/public/default/simple/` with `https://py.swndx.dev/public/relaxed/simple/`. ## Python projects: `AGENTS.md` or `CLAUDE.md` ```markdown ## Python packages - Install Python packages only from https://py.swndx.dev/public/default/simple/ (uv: `[[tool.uv.index]]` with `default = true`; pip: `--index-url`). - Never add `--extra-index-url`, pypi.org or any other index, even if a package is missing. Don't switch to or add the other SWNDX Python index either; ask me. - A 404 or missing version means the curated index left it out on purpose. Stop and tell me; suggest https://swndx.dev/feedback/. Don't vendor it, install from git, or use another index. - Prefer versions the index lists over pinning newer ones. - If you're unsure a package name exists, ask before installing it. - Read the SWNDX token only from the environment (UV_INDEX_SWNDX_PASSWORD); never write it to a file. ``` ## Node projects: `AGENTS.md` or `CLAUDE.md` ```markdown ## npm packages - The registry is https://node.swndx.dev/public/default/ (set in .npmrc). Don't change it. - Never add registry.npmjs.org, a scoped registry or a mirror as a fallback. - A 404 or missing version means the curated registry left it out on purpose. Stop and tell me; suggest https://swndx.dev/feedback/. Don't install from git, a tarball URL or another registry. - Prefer versions the registry lists over pinning newer ones. - If you're unsure a package name exists, ask before installing it. - The token comes from ${SWNDX_TOKEN} in .npmrc; never write a token into a file. ``` ## Both: `AGENTS.md` or `CLAUDE.md` ```markdown ## Package sources - Python packages only from https://py.swndx.dev/public/default/simple/; npm packages only from https://node.swndx.dev/public/default/. - Never add a fallback index or registry (--extra-index-url, pypi.org, registry.npmjs.org, mirrors). - A 404 or missing version is the curated index's decision. Stop and tell me, and suggest https://swndx.dev/feedback/. No vendoring, git URLs or other indexes. - Prefer listed versions; ask before installing a package name you aren't sure exists. - Tokens come only from the environment or a credential store; never write one into a file. ``` ## Cursor: `.cursor/rules/packages.mdc` ```markdown --- description: Package sources (SWNDX) alwaysApply: true --- Use https://py.swndx.dev/public/default/simple/ for Python and https://node.swndx.dev/public/default/ for npm, and nothing else. Never fall back to pypi.org or registry.npmjs.org. If a package or version is missing, stop and ask. Never write a token into a file. ``` ## GitHub Copilot: `.github/copilot-instructions.md` ```markdown Install Python packages only from https://py.swndx.dev/public/default/simple/ and npm packages only from https://node.swndx.dev/public/default/. Never add --extra-index-url, pypi.org, registry.npmjs.org or another registry as a fallback. If a package or version isn't available, stop and tell me instead of working around it. Never write a token into a committed file. ``` --- Source: https://swndx.dev/docs/getting-started/npm/index.md # npm In the project's `.npmrc`: ```ini registry=https://node.swndx.dev/public/default/ ``` **With a token**, reference an environment variable so the token never lands in the repository: ```ini //node.swndx.dev/public/default/:_authToken=${SWNDX_TOKEN} ``` Tarballs download from `registry.npmjs.org`; run `npm audit signatures` to have npm verify each one's registry signature. If a lockfile was created against `registry.npmjs.org`, it still works: npm fetches the tarballs it names. To have new resolutions go through SWNDX, delete the lockfile and install once. --- Source: https://swndx.dev/docs/getting-started/pdm/index.md # PDM ```toml [[tool.pdm.source]] name = "pypi" url = "https://py.swndx.dev/public/default/simple/" ``` **Which index?** These examples use `default` (wheels only). If your dependencies need source distributions or approved pre-releases, use `relaxed` instead: `https://py.swndx.dev/public/relaxed/simple/` (replace `default` with `relaxed` in every URL above). [Compare the two](https://swndx.dev/indexes/). Use one or the other, never both. Naming the source `pypi` replaces PyPI rather than adding to it. With a token, set `PDM_PYPI_USERNAME=token` and `PDM_PYPI_PASSWORD` in the environment, or use `pdm config pypi.username`/`pypi.password` with the keyring. --- Source: https://swndx.dev/docs/getting-started/pip/index.md # pip Use SWNDX as the index, never as an extra one: ```sh pip install --index-url https://py.swndx.dev/public/default/simple/ requests ``` To make it permanent, set it in `pip.conf` (`pip config set global.index-url https://py.swndx.dev/public/default/simple/`) or `PIP_INDEX_URL`. **Which index?** These examples use `default` (wheels only). If your dependencies need source distributions or approved pre-releases, use `relaxed` instead: `https://py.swndx.dev/public/relaxed/simple/` (replace `default` with `relaxed` in every URL above). [Compare the two](https://swndx.dev/indexes/). Use one or the other, never both. **Never use `--extra-index-url`** with SWNDX: pip would pick the highest version from either index, so a package left out of SWNDX would still install from PyPI. **With a token**, put it in `~/.netrc` (mode 600) rather than in the URL: ```text machine py.swndx.dev login token password ``` --- Source: https://swndx.dev/docs/getting-started/pipenv/index.md # pipenv In the `Pipfile`, make SWNDX the only source: ```toml [[source]] name = "swndx" url = "https://py.swndx.dev/public/default/simple/" verify_ssl = true ``` With a token, pipenv expands environment variables in the URL: `url = "https://token:${SWNDX_TOKEN}@py.swndx.dev/public/default/simple/"`. Keep the variable in your shell or CI secrets, never in the `Pipfile` itself. **Which index?** These examples use `default` (wheels only). If your dependencies need source distributions or approved pre-releases, use `relaxed` instead: `https://py.swndx.dev/public/relaxed/simple/` (replace `default` with `relaxed` in every URL above). [Compare the two](https://swndx.dev/indexes/). Use one or the other, never both. --- Source: https://swndx.dev/docs/getting-started/pnpm/index.md # pnpm pnpm reads the same `.npmrc` as npm: ```ini registry=https://node.swndx.dev/public/default/ //node.swndx.dev/public/default/:_authToken=${SWNDX_TOKEN} ``` The second line is only needed with a token. --- Source: https://swndx.dev/docs/getting-started/poetry/index.md # Poetry ```toml [[tool.poetry.source]] name = "swndx" url = "https://py.swndx.dev/public/default/simple/" priority = "primary" ``` **Which index?** These examples use `default` (wheels only). If your dependencies need source distributions or approved pre-releases, use `relaxed` instead: `https://py.swndx.dev/public/relaxed/simple/` (replace `default` with `relaxed` in every URL above). [Compare the two](https://swndx.dev/indexes/). Use one or the other, never both. With `priority = "primary"` and no other sources, Poetry stops using PyPI. With a token: `poetry config http-basic.swndx token "$SWNDX_TOKEN"` (stored in your keyring, not the project). --- Source: https://swndx.dev/docs/getting-started/proxies/index.md # Caching proxies (Nexus, Artifactory) A caching proxy stores copies of what your teams install. Put SWNDX in front of it, so the proxy only ever fetches what SWNDX allows. | Ecosystem | Remote (proxy) repository URL | |---|---| | PyPI | `https://py.swndx.dev/public/default/`, or `https://py.swndx.dev/public/relaxed/` for the [`relaxed` index](https://swndx.dev/indexes/) (both products add `simple/` themselves; in Artifactory, keep the registry suffix `simple`) | | npm | `https://node.swndx.dev/public/default/` | - Point developers and CI at the proxy only. - Only the proxy talks to SWNDX, so every install behind it shares one address and one rate limit: [request a token](https://swndx.dev/request/) and restrict it to the proxy's address. - Configure the token as the remote repository's password (any username) for PyPI, or as a bearer token for npm. - The proxy's cache keeps serving a version SWNDX has since removed. When we announce a removal, purge it from the proxy too. --- Source: https://swndx.dev/docs/getting-started/uv/index.md # uv Make SWNDX the default (and only) index in `pyproject.toml`: ```toml [[tool.uv.index]] name = "swndx" url = "https://py.swndx.dev/public/default/simple/" default = true ``` Or for a one-off command: `uv pip install --default-index https://py.swndx.dev/public/default/simple/ requests`. **Which index?** These examples use `default` (wheels only). If your dependencies need source distributions or approved pre-releases, use `relaxed` instead: `https://py.swndx.dev/public/relaxed/simple/` (replace `default` with `relaxed` in every URL above). [Compare the two](https://swndx.dev/indexes/). Use one or the other, never both. **With a token**, keep it out of the file and set it in the environment; uv reads credentials for a named index from `UV_INDEX__USERNAME` and `UV_INDEX__PASSWORD`: ```sh export UV_INDEX_SWNDX_USERNAME=token export UV_INDEX_SWNDX_PASSWORD="$SWNDX_TOKEN" ``` Don't add PyPI as a second index: a second index reopens dependency confusion and defeats the curation. --- Source: https://swndx.dev/docs/getting-started/yarn/index.md # Yarn Yarn 2 and later read `.yarnrc.yml`: ```yaml npmRegistryServer: "https://node.swndx.dev/public/default/" npmAuthToken: "${SWNDX_TOKEN-}" ``` Yarn 1 reads `.npmrc`, as [npm](npm.md) does. --- Source: https://swndx.dev/docs/index.md # SWNDX docs SWNDX publishes curated indexes of PyPI and npm. Point your tools at SWNDX as their **only** package source and they'll see a reviewed subset: no releases younger than the quarantine, no versions listed as malicious, nothing outside the curated list. | Ecosystem | Index URL | |---|---| | Python (pip, uv, Poetry, PDM, pipenv) | `https://py.swndx.dev/public/default/simple/` (`default`) | | Python, when `default` is too strict | `https://py.swndx.dev/public/relaxed/simple/` (`relaxed`) | | JavaScript (npm, pnpm, Yarn) | `https://node.swndx.dev/public/default/` | Python has two indexes: `default` serves wheels only, so installing never runs a package's code; `relaxed` adds source distributions where a version has no wheel, and approved pre-releases. Pick one per project. [What each index serves](https://swndx.dev/indexes/). SWNDX never hosts packages: files download from PyPI and npm directly ([how](https://swndx.dev/how-it-works/)). - [Getting started](getting-started/uv.md) with your tool. - [Do you need a token?](tokens.md) Every request is rate-limited. - [For AI agents](ai-agents.md): rules to paste into `AGENTS.md`, `CLAUDE.md` or your editor's agent settings. --- Source: https://swndx.dev/docs/limits/index.md # Rate 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. - The hour is a clock hour. A refused request gets `429 Too Many Requests` with `Retry-After`, the seconds until the next hour. - Index pages are cacheable for 10 minutes, so repeat installs on one machine make fewer lookups. **Larger personal projects** can pass 100 lookups in one install: a first `npm install` without a lockfile looks up every package in the tree, and a large Python project's first resolve can too. Lockfiles and your tool's cache keep later installs small; if you still hit the limit, [request a token](https://swndx.dev/request/). --- Source: https://swndx.dev/docs/not-available/index.md # Package not available SWNDX serves a curated subset of PyPI and npm. When your tool can't find something, one of these is usually why: | What you see | What it means | |---|---| | `404` for a project or package | It isn't in the index: not on the curated list, or excluded. | | The package resolves, but not the version you pinned | That version isn't served: too new (still in quarantine), a pre-release, too old, missing integrity data, listed as malicious, or for an unsupported python version. | | `401` | The token was refused: mistyped, expired or revoked. | | `403 Source IP does not match token configuration` | The token is IP-restricted and this address isn't on its list. | | `429` | The rate limit; see [Rate limits](limits.md). | | Connection or TLS errors | A network problem, not a policy decision. Retry. | A `404` or a missing version is the index working as designed, not an outage. Don't work around it with another index or a direct download: that installs exactly what the curation left out. On Python, a project that publishes only source code, or a version that exists only as a source distribution or a pre-release, may be on the `relaxed` index (`https://py.swndx.dev/public/relaxed/simple/`) even though `default` leaves it out. Switch the whole project to `relaxed` if that trade-off suits you ([compare the indexes](https://swndx.dev/indexes/)); don't add it alongside `default`. If you need it, [send a package request](https://swndx.dev/feedback/). If a version is newer than the quarantine allows, it appears on its own once the quarantine ends. --- Source: https://swndx.dev/docs/policies/index.md # Policies Each index applies a policy. Today's public 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. | All of them: - leave out any version OpenSSF lists as malicious, checked every 6 hours; - hold new releases for 7 days before serving them; - hold a release longer when it looks unusual for its project, until it has been reviewed. --- Source: https://swndx.dev/docs/privacy-logging/index.md # Privacy and logging For each index request we record the time, the index and project requested, the outcome, the installer's name and version (from its User-Agent), and the token's id if one was used. Our request logs don't keep raw IP addresses: a keyed hash of the address, rotated monthly, is kept for at most 30 days to enforce limits and investigate abuse. If an IP-restricted token is used from an address it doesn't allow, we keep that address for up to 7 days so we can tell your security contact. Our hosting provider, Cloudflare, processes requests and form submissions for us. The full [privacy notice](https://swndx.dev/privacy/) is being prepared with counsel. --- Source: https://swndx.dev/docs/tokens/index.md # Using a token Every request is rate-limited: 100 requests an hour per address without a token, 5,000 an hour per token with one. [Who needs a token](https://swndx.dev/tokens/), and [how to request one](https://swndx.dev/request/). ## How tools send it - **pip, uv, Poetry, PDM, pipenv:** as the HTTP Basic password, with any username (we use `token`). - **npm, pnpm, Yarn:** as a bearer token (`_authToken` / `npmAuthToken`). The per-tool pages show where each one reads it from. ## Keep it out of your repository - Read it from an environment variable or your tool's credential store (keyring, `~/.netrc`). - In CI, store it as a secret and expose it as an environment variable for the install step only. - Never commit it in `pyproject.toml`, `.npmrc`, `pip.conf` or a URL. A leaked token is still limited to the indexes; ask us to revoke it at [support@swndx.dev](mailto:support@swndx.dev). An IP-restricted token is useless from anywhere else.