The Decky Plugin Store powers the built-in plugin storefront of Decky Loader for Steam Deck. It can be used to host Decky Loader compatible plugins for any use case, including hosting testing plugins and providing an alternative storefront.
For more information about Decky Loader as well as documentation and development tools, please visit our wiki.
🐍 Backend written in Python with the FastAPI and SQLAlchemy (SQLite database in use) frameworks.
- 🏤 PostgreSQL support is currently in development.
🌐 Frontend (for web browsers) written in JavaScript with the Vue.js framework
📤 API endpoints for:
📃 List of plugins
- GET endpoint used by Decky Loader's built-in plugin browser
📩 Uploading plugins
♻️ Updating plugins
🪣 Backblaze B2 Cloud Storage supported for hosting plugins & metadata as a CDN.
🖼️ Handling image types for preview screenshots
🔑 Handling uploads via an APP_KEY
♻️ Handling uploading different available versions of plugins
💬 Discord webhook support for sending notifications for new uploaded plugin versions
📦 Available as a GitHub Package & ready to go as a Docker deployment.
While switching stores keeps the plugins from any installed source installed, auto checking updates will not happen for all three channels (Stable, Testing and Custom). Only the currently selected Store Channel will be checked for plugin updates.
Due to the SteamDeckHomebrew / Decky Loader team not being responsible for third party plugins and stores, a warning will be displayed where the user would have to accept the potential risks of using third party software with Decky Loader.
- Open your Decky Loader tab
- Click on the Settings button (displayed as a Cog)
- Stay on the General tab
- Change the Store Channel to Custom
- Fill in the URL in the Custom Store URL text field underneath Store Channel
-
Install Docker on your preferred platform
-
Make sure to have the required Environment Variables ready in an
.envfile where thedocker-compose.ymlfile is located at:DB_PATHDatabase path where to put the SQLite databases
ANNOUNCEMENT_WEBHOOKURL for Discord webhooks for new plugins and updates
SUBMIT_AUTH_KEYAPI key for REST API requests to use for authentication; other systems are required to use this API key to be able to use the authentication-locked API endpoints
B2_APP_KEY_IDBackblaze B2 Master App Key ID (per account)
B2_APP_KEYBackblaze B2 App Key
B2_BUCKET_IDBackblaze B2 Bucket ID for restricting access to a single bucket
-
Run the Docker environment with the following command:
docker compose upUse
-dafterdocker compose upto run it in the background, not taking the current terminal window for logs.For local deployments, use the
-f docker-compose.local.ymlflag beforeup. The default API key for API requests isdeadbeeffor local deployments.
As standard docker-compose.yml file is used for deployment, there is a separate docker-compose.local.yml file you
can use. Just use docker-compose -f docker-compose.local.yml up to bring up the project. You can use any
docker-compose commands normally as long as you add -f docker-compose.local.yml argument.
There is a handy Makefile placed in the root directory of the project. It is not being used in a conventional way
(to build the code or install built software), it's just creates nice aliases for commands. Here is a list of them:
autoformat- runs autoformatting on the whole Python codebase.autoformat/black- runs onlyblackcommand for autoformatting, which unifies codestyle.autoformat/isort- runs onlyisortcommand for autoformatting, which reorders imports.
lint- runs lint check on the whole project.lint/black- runs onlyblackin check mode. After running black autoformatting, this check should pass.lint/isort- runs onlyisortin check mode. After running isort autoformatting, this check should pass.lint/flake8- runs onlyflake8linter. This does not have its own autoformat command, but it should be more or less covered byblackautoformatting. It's here to make sure black does not leave any gaps in pep8 compliance.lint/mypyruns onlymypylinter. This does not have its own autoformat command either and errors needs to be fixed manually.
deps/lock- recreates lockfile without changing any package versions when possible. Needs to be executed after changing project dependencies.deps/upgrade- recreates lockfile while trying to upgrade all packages to the newest compatible version.test- runs project tests.
All commands above can be prefixed with dc/ to run them directly in a docker container. There are also additional,
docker only commands:
dc/build- rebuilds docker images. Needs to be run afterDockerfileor project dependencies change.
This project is using Poetry to manage python packages required for the project. Poetry also keeps the lock file to make sure every environment where the same version of project is used, is as consistent as possible.
If you want to add any dependency, preferably add it manually in the pyproject.toml file. Please keep dependencies
alphabetically sorted to avoid merge conflicts.
If adding or updating a single dependency inside the pyproject.toml, you need to update the lockfile. Please run
make deps/lock to do as little changes to the lockfile as possible, unless your intention is to refresh every single
dependency, then make deps/upgrade should be a better option. But you probably shouldn't use it unless you really
need to.
Simply run make test to run tests on your local machine. If using development docker-compose file, you shall use
make dc/test instead.
This project uses pytest for running tests. Get familiar with it and fixtures system first. On top of pytest, async
tests are supported via pytest.mark.asyncio decorator provided by pytest-asyncio. As project is using fastapi with
async views as well as async DB, most of the tests need to be async.
All tests and configuration for them lives in tests directory. You can find some useful fixtures in the conftest.py
file. If creating any more fixtures, please place them in this file unless you have a good reason not to do so.
There are two automatically applied fixtures, one patches over any external API calls, so they aren't really executed when running tests, second one overrides constants specifying any external resources. If adding any new external service dependencies to the project, please update those fixtures to patch them over as well.
