Make every repository prove it works.

Clone it, install it, build it and run its tests in a clean container. Keep the evidence in a passport anyone can read offline.

npx forkability-passport scan .

Repository passport

tests/fixtures/working

Installation
PASSED
Build
PASSED
Tests
PASSED
VERIFIED

100/100, local execution

Static first, execution only when you ask

The question is simple: if someone clones this repository today, can they get it running? A scan only reads files until you choose how its commands may run.

ModeWhat runsWhere
scan .Nothing. Manifests, lockfiles, scripts, runtimes, README commands and environment names are read.Read-only inspection
scan . --dockerInstall, build and test commands found in the project itself, never commands copied from the README.Disposable container, network off
scan . --docker --networkThe same, with network allowed for the install step only. The container is disconnected before build and tests.Disposable container
scan . --unsafe-localThe same commands, for code you already trust.Your machine, your permissions
VERIFIED

Install, build and tests all ran and passed.

PARTIALLY VERIFIED

Some stages passed, the rest could not be checked.

FAILED

A command ran and exited with an error.

BLOCKED

Something outside the repo stopped it, such as no network for dependencies.

NOT VERIFIED

No supported command could run. A skipped test never counts as passed.

A score you can check line by line

Each row earns its full weight or nothing. Untested stages earn zero, and a static-only scan is labelled as such and cannot pass 35.

CategoryPointsEarned when
Repository setup15Every project has a recognized manifest and a README.
Installation20The install command exits successfully.
Build25The declared build command succeeds.
Tests20The test command succeeds without a skipped or empty test summary.
Documentation10The README names commands that match the project, with no mismatch.
Environment10A runtime is declared and every environment name the code reads is in .env.example.

Locked down by default

  • Non-root container with every capability dropped and no new privileges.
  • Read-only source and root filesystem, small writable tmpfs for the work.
  • Limits on CPU, memory, processes and time per command.
  • No network unless you pass --network, and never after install.
  • No home folder, Docker socket or host credentials inside the container.
  • A repository cannot change these settings. Only a config file you name with --config is read.

Docker shares the host kernel, so it is not an absolute boundary. For code you do not trust, run scans on a disposable VM or CI runner.

# .github/workflows/forkability.yml (steps)
- uses: actions/checkout@v7
  with:
    persist-credentials: false
- uses: halilberkayy/forkability@v1
  with:
    repository: .
    static-only: 'true'
    fail-below: '0'

Questions

Does it run code from the repository by default?

No. The default scan only reads files. Commands run only with --docker or --unsafe-local, and even then only install, build and test commands declared by the project, never commands copied from its README.

Why does installation say BLOCKED?

The container starts without network and with an empty package cache. A project with dependencies cannot install offline, which says nothing about the project, so the stage is BLOCKED instead of FAILED. Rerun with --network to let the install step download packages.

Which ecosystems can it actually run?

Version 0.1 runs one npm project with a lockfile, or one Python project with requirements.txt. Rust, Go, Java, Flutter, PHP and Ruby projects get static inspection and are labelled that way, never scored as if they ran.

How is this different from CI or a code quality scanner?

Your CI runs on a machine its maintainers configured. Forkability starts from a clean clone the way a new contributor would, and checks that the README matches what the project really does. It does not grade code style or scan for vulnerabilities.

How do I show the result in my README?

Every scan writes forkability-badge.svg next to the HTML and JSON reports. forkability badge prints a Markdown snippet. The badge is generated locally and links to a report you host yourself.

Check a repository before you fork it

npx forkability-passport scan https://github.com/owner/repo