Skip to main content

⚡ Krickstart

Spin up a reproducible local development environment in seconds.

Build PyPI License Python Code style: black Ruff PRs welcome

krickstart is an opinionated, high-performance CLI tool that turns a concise krickstart.yaml recipe into a fully operational, reproducible Docker Compose environment. It eliminates the "it works on my machine" struggle by automating starter templates, database wiring, environment contracts, and connection URL generation.

Stop debugging ports, volumes, and health checks. Start building.

krickstart.yaml  ➔  krickstart up  ➔  🚀 Ready-to-code Stack (App + Database + URLs)

🏛️ Architecture Overview

krickstart sits as a declarative translation layer between your team's configuration contract and Docker Compose

flowchart TD
    subgraph User Workspace
        YAML["krickstart.yaml\n(Team Contract)"]
        CLI["krickstart CLI\n(create / doctor / up / down)"]
    end

    subgraph Core Engine
        REG["Plugin Registry\n(Built-in + Entry Points)"]
        VAL["Schema & Port Validator\n(Conflict Detection)"]
        GEN["Compose Generator\n(Atomic Writes & Locks)"]
    end

    subgraph Generated Outputs
        DC["docker-compose.krickstart.yml\n(Services, Volumes, Healthchecks)"]
        ENV[".env.krickstart\n(DATABASE_URL, REDIS_URL)"]
        EX[".env.example\n(Masked Team Template)"]
    end

    subgraph Runtime
        DOCKER["Docker Engine / Compose v2\n(127.0.0.1 Isolated Containers)"]
    end

    YAML --> CLI
    CLI --> VAL
    CLI --> REG
    REG --> GEN
    VAL --> GEN
    GEN --> DC
    GEN --> ENV
    GEN --> EX
    DC --> DOCKER

📊 Krickstart vs. Alternatives

Capability ⚡ Krickstart Docker Compose VS Code Dev Containers Tilt Nix / devenv
Instant Starters ✅ Built-in Stacks ❌ Manual Setup ⚠️ Template repos ❌ Manual Tiltfile ⚠️ Custom flake
Configuration Complexity 🟢 Low (~15 lines YAML) 🔴 High (verbose Compose) 🟡 Medium (devcontainer.json) 🔴 High (Starlark/Tiltfile) 🔴 High (Nix language)
Auto-Wiring (.env / URLs) ✅ Automated ❌ Manual .env ⚠️ Partial ❌ Manual ⚠️ Environment vars only
Editor Agnostic ✅ Any editor/IDE ✅ Any editor/IDE ❌ Optimized for VS Code ✅ Any editor/IDE ✅ Any editor/IDE
Learning Curve 🚀 2 minutes ⏳ Days ⏳ Hours ⏳ Days (K8s required) ⏳ Weeks (Nix syntax)
Host Port Conflict Checks ✅ doctor pre-flight ❌ Fails on startup ❌ Manual ⚠️ Port-forwarding ❌ Fails on startup
Localhost Isolation (127.0.0.1) ✅ Default ❌ Defaults to 0.0.0.0 ⚠️ Container internal ⚠️ Varies N/A (Host processes)

🚀 Quick Start

Prerequisites

  • Python 3.10+
  • Docker Desktop or Docker Engine with Docker Compose v2

Installation

Install via your preferred Python tool manager:

# Recommended (isolated CLI application)
pipx install krickstart
# or with uv:
uv tool install krickstart

# Or with standard pip
pip install krickstart

30-Second Setup

# 1. Interactively choose a stack (e.g. FastAPI + PostgreSQL)
krickstart create

# 2. Check local environment and port availability
krickstart doctor

# 3. Launch isolated environment
krickstart up

Scripted / CI Workflow

krickstart init fastapi-postgres --name billing-api
krickstart doctor
krickstart up

📦 Maintained Stacks

All maintained stacks feature health checks, volume persistence, and loopback security (127.0.0.1 binding):

Stack Description Included Services
fastapi-postgres Python FastAPI REST API FastAPI (Python 3.12), PostgreSQL 16
django-postgres Django Web Framework Django (Python 3.12), PostgreSQL 16
flask-postgres Flask Microframework Flask, PostgreSQL 16
node-postgres-redis Node.js Express API Express (Node 22), PostgreSQL 16, Redis 7
nextjs-postgres Next.js App Router Next.js, PostgreSQL 16
go-gin-postgres Go Gin REST API Go Gin, PostgreSQL 16
spring-boot-postgres Java Spring Boot Spring Boot (JDK 21), PostgreSQL 16

🛠️ CLI Command Reference

Command Description
krickstart list Show all available stack templates and descriptions
krickstart init <stack> Generate krickstart.yaml and starter files for a chosen stack
krickstart create Interactive terminal wizard to pick and initialize a stack
krickstart validate Validate schema and ensure stack plugin can render without errors
krickstart doctor Health-check Docker, Compose v2, YAML syntax, and detect port conflicts
krickstart doctor --fix Automatically repair missing safe assets (e.g., regenerate .env.example)
krickstart up Render Compose files and start containers in detached mode
krickstart up --dry-run Preview generated YAML and .env files without writing or starting Docker
krickstart down Gracefully stop containers (preserves database volumes)
krickstart status Display container runtime health and port mappings (docker compose ps)
krickstart logs [service] View or follow service logs (--follow supported)
krickstart export Export standalone docker-compose.yml and .env for production or CI
krickstart cleanup Stop containers, remove named volumes, and clean up generated files

🔒 Security Best Practices

  1. Loopback Isolation (127.0.0.1): krickstart binds container ports to 127.0.0.1 by default rather than 0.0.0.0, protecting databases and internal APIs from exposure on public Wi-Fi or local networks.
  2. Masked Examples: Generated .env.example templates automatically redact credentials so teammates can safely commit environment templates to git without leaking passwords.
  3. Never Commit Generated Files: Add to your .gitignore:
    docker-compose.krickstart.yml
    .env.krickstart
    .env
    

🔌 Plugin System & Extensibility

krickstart provides an open plugin interface using Python entry points. Organizations can package internal corporate stacks and publish them as private or public packages.

Third-party packages expose plugins via the krickstart.stacks entry point group in pyproject.toml:

[project.entry-points."krickstart.stacks"]
company-microservice = "my_company_stacks.microservice:MicroservicePlugin"

Plugins implement the StackPlugin interface (name, description, default_config, compose_yaml, env_file, post_up_hints). See docs/plugin-authoring.md for complete details.


🤝 Contributing

We love contributions! Whether it's a new stack template, a bug fix, or documentation improvement, please check out our CONTRIBUTING.md and CODE_OF_CONDUCT.md.

Ways to help:

  • 🌟 Star the repo to show your support.
  • 🐛 Report bugs or request features in the Issues tab.
  • 🛠️ Build a plugin and share your custom stack with the community.
  • 📝 Improve docs to help other developers get started faster.

📖 Guides

For detailed instructions, explore our documentation:

# Run local test suite and quality gates:
python scripts/dev.py check

📄 License

This project is licensed under the MIT License.

Metadata

Release files for krickstart 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for krickstart 1.2.0
File Size Uploaded Provenance Actions
krickstart-1.2.0.tar.gz 25.3 kB With provenance Details for krickstart-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for krickstart 1.2.0
File Interpreter ABI Platform Actions
krickstart-1.2.0-py3-none-any.whl Python 3 none any Details for krickstart-1.2.0-py3-none-any.whl

Total release size: 53.9 kB

Release files / krickstart-1.2.0.tar.gz

Download URL krickstart-1.2.0.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9257a36f1fac65897d12412d82267edf702cd6039b16af66f48137d50a0267f2
BLAKE2b-256 checksum
How to use checksums
9152e8acb430b6ab9a3035f76f75c1459b61f86f6fe89c05dbcac27046d682a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 31, 2026.

Transparency log

Release files / krickstart-1.2.0-py3-none-any.whl

Download URL krickstart-1.2.0-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb03888df18fa83c230f89dc3712fd847a53603bf1d17f62bdd1b0a6e17ae3b4
BLAKE2b-256 checksum
How to use checksums
5cce19e0269158fac72653a96bc6ca55b76811ca7ef1b6fb31c2cbbf713eb00a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 31, 2026.

Transparency log

Security for krickstart 1.2.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for krickstart-1.2.0.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 31, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page