Pratique documentation
Pratique sits between your developers and the public package registries. New releases wait in quarantine, known malware is refused, every file's hash is pinned, and every download is on record. This guide shows how to set it up and use it.
export PRATIQUE_ADMIN_TOKEN="$(openssl rand -hex 24)"
docker run -d -p 127.0.0.1:8484:8484 -v pratique:/data \
-e PRATIQUE_ADMIN_TOKEN \
-e PRATIQUE_PUBLIC_URL=http://127.0.0.1:8484 \
ghcr.io/justpolidor/pratique:latest
Then open http://127.0.0.1:8484, sign in with the token in $PRATIQUE_ADMIN_TOKEN, and
follow the quickstart to create an access token and send your first install through it.
What Pratique does
Developers, CI and AI agents install packages through Pratique instead of from the public registries. For each listing and each download, Pratique decides one of three things:
| Decision | What it means | What the client sees |
|---|---|---|
| Cleared | The release passed every check and its hash matches. | The file, as if from the registry. |
| Held | The release is too new. It waits in quarantine until enough time has passed for malware to be reported. | The newest cleared version instead. A direct request gets an error that says when it clears. |
| Refused | The release is known malware, was changed upstream, breaks a blocking rule, or a person blocked it. | An error that names the reason and links to the package page. |
Every decision goes into a signed audit log, with who asked, from where, and why. See how it works for the full order of checks.
Why quarantine works
Most malicious releases are found and removed within hours or days of publication. A worm that steals a maintainer's token publishes poisoned versions of their packages, and security researchers usually report them before the week is out. A 7-day quarantine means your developers never install a release during that window, so they never receive the attack, even before anyone has written a detection for it.
Package managers see a held version as deprecated (npm) or yanked (Python), so installs pick the newest cleared version by themselves and nothing breaks. A fix for a vulnerability you are exposed to can be fast-tracked.
Where to start
Start Pratique, connect npm or pip, and watch your first install pass the checkpoint.
How it worksThe checks every listing and download goes through, in order, and what each one catches.
Connect your toolsOne command sets up npm, pnpm, Yarn, Bun, pip, uv, Go and Composer, or set each one up by hand.
Run it for a teamHTTPS, single sign-on, configuration as code, and blocking direct access to the registries.
Supported registries
| Registry | Clients | Address on Pratique |
|---|---|---|
| npm | npm, pnpm, Yarn and other clients of the npm registry | /npm/ |
| Python | pip, uv, Poetry and other clients of the simple index | /pypi/simple/ |
| Composer | Composer, in place of Packagist | /composer |
| Go | The go command, as a GOPROXY | /go |
Two ways to run it
Artifactory mode, the default, stores every file it delivers. Stored files keep installing when a registry is down or a package is deleted, and you can host private packages. Firewall mode makes the same decisions but keeps no package files, so there is less to own and back up. See firewall mode to choose.
A proxy only protects clients that use it. Before you rely on Pratique, block the public registries at your network edge, or redirect them to Pratique at your web gateway. See enforce it.