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.

bashrun it in one command
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:

DecisionWhat it meansWhat the client sees
ClearedThe release passed every check and its hash matches.The file, as if from the registry.
HeldThe 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.
RefusedThe 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

Supported registries

RegistryClientsAddress on Pratique
npmnpm, pnpm, Yarn and other clients of the npm registry/npm/
Pythonpip, uv, Poetry and other clients of the simple index/pypi/simple/
ComposerComposer, in place of Packagist/composer
GoThe 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.

Block direct access

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.