FabricGate
Discover, pull and verify FPGA designs for your board — one command, any runtime.
FabricGate is a package registry for FPGA designs (bitstreams plus the metadata a runtime needs to load them). This repository contains the client side: the fabricgate CLI, the Python SDK, the shared data models, and the public API contracts. The hosted registry lives at https://registry.fabricgate.dev.
Status: alpha (0.1.0). The registry is being seeded with community PYNQ overlays. Interfaces marked stable in
docs/specs/are kept backward compatible; everything else may still change before 1.0.
Install
pip install fabricgate
Python 3.11 or newer. fgate is installed as a short alias of fabricgate.
Three steps to a running design
# 1. Find a design for your board
fabricgate search --platform pynq-z2/pynq adder
# 2. Pull it (bitstream + hwh + manifest, digests verified on download)
fabricgate pull example/adder-demo:1.0.0 --platform pynq-z2/pynq
# 3. Load it with the runtime you already use
python -c "from pynq import Overlay; ol = Overlay('adder-demo/adder.bit')"
example/adder-demo is a placeholder name; run fabricgate search to see what is actually published. The --platform value is <board>/<runtime>; run fabricgate pull --help for the resolution rules, including the generic-<device> fallback.
What the CLI can do
| Command | Purpose |
|---|---|
search, info, diff, stats, watch |
discover designs and track updates |
pull, verify, list |
download with digest verification, re-verify, inspect the local cache (list --remote [--namespace <ns>] lists designs on the registry) |
build, push, yank, deprecate |
publish your own designs (build generates the Platform Manifest and Design Index from a build directory) |
login, token, quota, webhook, license-check |
account, automation and policy helpers |
fabricgate --json gives machine-readable output for every command.
Publishing from CI
Create an API key once with an interactive login, then hand it to CI in FABRICGATE_TOKEN. When the variable is set (and not empty), the commands that use credentials (push, yank, list --remote, quota and so on) send it instead of the credentials fabricgate login stored, and it never shows up in logs, --json output or error messages. search, info, stats, diff, watch and license-check use no credentials.
fabricgate login
fabricgate token create --name ci-pipeline --scopes ns:<your-namespace>:write --expires 90d
# .github/workflows/publish.yml
- run: pip install fabricgate
- run: fabricgate push ./my-design/
env:
FABRICGATE_TOKEN: ${{ secrets.FABRICGATE_TOKEN }}
An API key covers writes to its namespace (push, yank, deprecate); key management (fabricgate token) still needs fabricgate login. fabricgate webhook needs ns:<namespace>:admin, which an API key cannot carry, so the registry refuses a key there with 403 (the registry does not serve webhooks yet and answers 404 for now). Pass --namespace to list --remote and quota, since the CLI cannot tell a key's namespace. The --token flag is not implemented yet.
Supported boards and runtimes
The bundled Board DB (src/fabricgate/data/board-db/official.yaml) currently knows these boards:
| Board | Device | Runtime |
|---|---|---|
pynq-z1, pynq-z2 |
xc7z020 | pynq |
zcu104 |
xczu7ev | pynq, linux-fpgamgr |
zcu106 |
xczu7ev | pynq |
zcu102 |
xczu9eg | pynq |
ultra96-v2 |
xczu3eg | pynq |
pynq-zu |
xczu5eg | pynq |
kv260, kr260 |
xck26 | pynq |
zcu111, rfsoc2x2 |
xczu28dr | pynq |
rfsoc4x2, zcu208 |
xczu48dr | pynq |
zcu216 |
xczu49dr | pynq |
pico-ice |
iCE40UP5K | nanopynq (Phase 3, forward reference) |
generic-xc7z020, generic-xczu7ev |
— | device-level fallback for boards not yet listed |
Adding a board is a data change; see CONTRIBUTING.md.
SDK
from fabricgate.sdk import api
result = api.pull("example/adder-demo:1.0.0", platform="pynq-z2/pynq")
print(result.artifacts)
The SDK wraps the same client the CLI uses. See docs/specs/client-behavior.md for the resolution and caching rules.
Public contracts
docs/contracts/ is the source of truth for the registry's public API:
openapi.yaml/openapi.json— Registry HTTP APIschemas/design-index.schema.json,schemas/platform-manifest.schema.json,schemas/board-db.schema.json— wire formatsCHANGELOG.md— contract changes and migration notes
Specifications for the CLI, client behaviour and data formats are in docs/specs/.
Self-hosting and the registry implementation
The registry server is operated as a hosted service and its implementation is not published at this stage (see docs/specs/ for the distribution policy summary in client-behavior.md). Everything a client needs to interoperate — API, schemas, error formats — is in this repository, so alternative implementations are possible.
Contributing, security, license
- CONTRIBUTING.md — development setup, tests, pull requests
- SECURITY.md — how to report a vulnerability
- LICENSE — MIT
Verifying what you install
Every release is published from this repository via PyPI Trusted Publishing and carries a GitHub build-provenance attestation:
pip download --no-deps fabricgate==0.1.0
gh attestation verify fabricgate-0.1.0-py3-none-any.whl --repo harurun78/fabricgate
Metadata
Release files for fabricgate 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fabricgate-0.4.1.tar.gz | 350.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fabricgate-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 449.4 kB
Release files / fabricgate-0.4.1.tar.gz
| Download URL | fabricgate-0.4.1.tar.gz |
|---|---|
| Size | 350.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20dec4300766140482aee85b0468ca45252b10900ad6aa899ef3a64092d24e4c
|
|
BLAKE2b-256 checksum How to use checksums |
e3f56a7edc57294d489e804f79f612b118370a679877330cf490cf7dfc8850de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / fabricgate-0.4.1-py3-none-any.whl
| Download URL | fabricgate-0.4.1-py3-none-any.whl |
|---|---|
| Size | 98.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4c137ef0310d834aa1555bd8a8a34631a8c932ee7236df79ddedc86d1e27819
|
|
BLAKE2b-256 checksum How to use checksums |
478730cddd3310c31ec6637334677979f9dbecbbb19ef93c7f02ad2ef3a3a47e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for fabricgate 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for fabricgate-0.4.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.