Skip to content

Repository files navigation

librepcb-api-server

Official server-side implementation of the LibrePCB API as accessed by the LibrePCB application. Note that some older API paths are implemented in a different way and might be migrated to this repository later.

Requirements

Only Docker Compose is needed to run this server on a Linux machine.

Configuration

To make all features working, some environment variables are required. For this, you can add a .env file with the following content and add your credentials:

DIGIKEY_CLIENT_ID=
DIGIKEY_CLIENT_SECRET=

Usage

For local development, the server can be run with this command:

./docker-compose.sh up --build

Afterwards, the API runs on http://localhost:8000/:

curl -X POST -H "Content-Type: application/json" -d @testdata/request.json \
     'http://localhost:8000/api/v1/parts/query' | jq '.'

Development

To format & check Python files, use UV and Ruff:

uv run ruff format
uv run ruff check

License

The content in this repository is published under the GNU GPLv3 license.

About

Server-side implementation of the LibrePCB API

Resources

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages