* Point every GitHub location at oss-invisible The repository and its companions moved to the oss-invisible organization: invisible_playwright is now oss-invisible/playwright, invisible_core is oss-invisible/core, invisible_playwright_mcp is oss-invisible/playwright_mcp and firefox_antidetect_patch is oss-invisible/firefox_antidetect_patch. README, docs, package URLs, release/counter scripts and the tests that pin them now use the new locations. PyPI package names are unchanged. * docs: keep one doc line as it is (the local name guard) * Version 0.51.1: the files that go into the wheel changed since v0.51.0 (package URLs) * CHANGELOG: the 0.51.1 heading the version bump needs
3.2 KiB
Contributing to invisible_playwright
Thanks for your interest in improving this project. Contributions are welcome via issues and pull requests.
Quick links
- Bug or idea? Open an issue.
- Security issue? Do not open a public issue - see SECURITY.md.
- The C++ patches live in the companion repo oss-invisible/firefox_antidetect_patch (branch
stealth/151). Bugs in fingerprint spoofing usually belong there.
Scope
This repository ships the Python wrapper (invisible_playwright) around a pre-built patched Firefox. In scope:
- The
InvisiblePlaywrightsync and async API, and its Playwright compatibility layer - The CLI (
invisible-playwright fetch,invisible-playwright version) - Tests, docs, examples, packaging
The fingerprint, the engine download and the browser protocol client are shared by every wrapper and live in invisible_core.
Out of scope (belongs in firefox_antidetect_patch):
- Changes to the Firefox C++ source
- New preferences exposed by the patched binary
- Canvas / WebGL / WebRTC / font spoofing logic
Development setup
To use the package you do not need any of this: see Install in the README. The steps below are for working on the code, with uv.
git clone https://github.com/oss-invisible/playwright.git
cd playwright
uv venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
uv pip install -e ".[dev]"
invisible-playwright fetch # download the patched Firefox binary
One of: Windows x86_64, Linux x86_64.
Running tests
pytest # unit + integration (default - fast)
pytest -m e2e # end-to-end, requires the patched binary
pytest -m slow # wheel-build regression tests
Markers are defined in pyproject.toml. The default run excludes slow and e2e.
Pull requests
- Fork and create a topic branch (
fix/...,feat/...,docs/...). - Keep PRs focused - one logical change per PR.
- Add or update tests for any behavior change.
- Make sure the default
pytestrun is green. - Follow Conventional Commits for commit messages (e.g.
fix(launcher): handle missing profile dir). - Update
README.mdordocs/when changing user-visible behavior. - Open the PR against
main, fill in the PR template, and link any related issue.
CI must be green before merge.
Reporting bugs
Before opening, please:
- Search existing issues - the bug may already be tracked.
- Reproduce on the latest release if possible.
- Confirm the issue is in the Python wrapper, not the patched Firefox itself. If a fingerprint is leaking or a detector flags the browser, open the issue at
oss-invisible/firefox_antidetect_patchinstead.
Include:
- OS and version, Python version, the output of
invisible-playwright version - A minimal reproduction
- Expected vs actual behavior
- Relevant logs / stack traces
License
By contributing, you agree that your contributions will be licensed under the MIT License (see LICENSE).