You have better things to do than deploy the same app for the hundredth time.
freeloader is a Python CLI for composing deployment infrastructure from reusable Terraform-backed blocks. It is built for solo builders and small teams who want a repeatable path from a local project to hosted code, CI, container registry, and deployment targets without re-writing the same glue every weekend.
Freeloader turns deployment setup into a manifest-driven planning flow:
- Detect the project stack.
- Inspect available infrastructure blocks.
- Check local provider support and required secrets.
- Generate a manifest of selected blocks.
- Provision or destroy resources through the block execution layer.
Blocks are small Terraform-backed units. A block declares its config, requirements, provided outputs, costs, and assets. The project planner decides which blocks fit the current project and can explain why a block was excluded.
pipx install freeloaderor:
uv tool install freeloaderThe CLI entrypoint is:
fl --helpFrom inside a project directory:
fl project detect
fl project manage --explain
fl project provisionUseful commands:
fl project status
fl secrets ls
fl service-providers --helpThe project feature owns composition. It detects the tech stack, asks the block catalog for candidates, evaluates provider support and secret availability, and writes the manifest.
Blocks are validated Terraform definition units. Each block lives with its block.yml, main.tf, and optional templates. Contracts use shared requires and provides port names documented in docs/BLOCK_PORT_CONTRACTS.md.
Service providers own provider identity, auth, billing checks, and local support checks. Provider capability is reported as structured data so planning can explain unsupported blocks.
Secrets are stored behind the secrets feature. Planning only checks key availability; secret values do not leave the secrets boundary.
This project uses Python 3.12+, uv, pytest, ruff, and Hatchling.
uv sync --all-groups
uv run pytest
uv run ruff checkBuild locally:
uv run python -m build
uv run twine check dist/*The package version is derived from the GitHub release tag. Create tags like:
git tag v0.1.0
git push origin v0.1.0The release.yml workflow builds the package from the tag and publishes to PyPI with trusted publishing. Configure a PyPI trusted publisher for:
- Repository:
9orky/freeloader - Workflow:
release.yml - Environment:
pypi
Freeloader is pre-1.0 software. Expect the block catalog and planning diagnostics to evolve quickly while the public CLI stabilizes.