Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

boilerplates

> 数据库
Open source

Create reusable templates and turn them into configurable workloads for homelabs and self-hosted infrastructure. Free and Open-Source.

7.9K stars0 likes0 views
WebsiteGitHub

About

Create reusable templates and turn them into configurable workloads for homelabs and self-hosted infrastructure. Free and Open-Source.

Create reusable templates and turn them into configurable workloads for homelabs and self-hosted infrastructure. Free and Open-Source.

How it works

Create reusable templates for infrastructure expertise like Docker, Kubernetes, Terraform, Ansible, static files, Python, and more. Use the built-in Jinja2-like templating syntax with << >> variables, <% %> blocks, and <# #> comments to keep configuration modular and conditional. Sync with Git in both directions or manage everything locally. Render templates, configure variables through a guided wizard, and wire up secrets. Copy them to remote servers and environments or any local directory.

✨ Explore 100+ template presets for homelabs and self-hosted infrastructure: https://github.com/ChristianLempa/boilerplates-library

Boilerplates CLI

The Boilerplates CLI is the main interface for working with template libraries locally. It lets you discover available templates, inspect their metadata and variables, validate them, and generate ready-to-use files.

It combines template-defined variables and defaults, guided interactive prompts, CLI variable overrides, and git-backed template libraries into one workflow. In practice, that means you can keep reusable boilerplates in a repository and turn them into concrete, environment-specific configurations with a single command.

⚠️ Boilerplates 0.2.0 introduced the new template format. Legacy template.yaml / template.yml manifests and .j2 template files are no longer supported.

ℹ️ New templates must use template.json, keep renderable content under files/, and use the custom Jinja2-like delimiters << >>, <% %>, and <# #> instead of default Jinja2 syntax.

Template kinds

Use a dedicated kind when the template's primary output matches that technology. Use python for Python-oriented project scaffolds, automation helpers, packages, and service/tooling skeletons. Use bash for Bash-oriented scripts, bootstrap flows, maintenance tasks, and automation snippets. Keep Python or Bash files inside another kind, such as compose or terraform, when they are only supporting files for that primary infrastructure template.

Initial python and bash validation is intentionally minimal: the CLI validates template syntax, declared variables, rendering, and generic semantic checks where applicable. Language-specific validation such as Python compilation, shell syntax checks, formatting, or test execution can be added as follow-up work once template conventions are established.

Installation

Automated installer script

Install the Boilerplates CLI using the automated installer:

bash
# Install latest version
curl -fsSL https://raw.githubusercontent.com/christianlempa/boilerplates/main/scripts/install.sh | bash

# Install specific version
curl -fsSL https://raw.githubusercontent.com/christianlempa/boilerplates/main/scripts/install.sh | bash -s -- --version v1.2.3

The installer uses pipx to create an isolated environment for the CLI tool. Once installed, the boilerplates command will be available in your terminal.

Nixos

If you are using nix flakes

bash
# Run without installing
nix run github:christianlempa/boilerplates -- --help

# Install to your profile
nix profile install github:christianlempa/boilerplates

# Or directly in your flake
{
  inputs.boilerplates.url = "github:christianlempa/boilerplates";

  outputs = { self, nixpkgs, boilerplates }: {
    # Use boilerplates.packages.${system}.default
  };
}

# Use in a temporary shell
nix shell github:christianlempa/boilerplates

Quick Start

…

Managing Defaults

Save time by setting default values for variables you use frequently:

bash
# Set a default value
boilerplates compose defaults set container_timezone="America/New_York"
boilerplates compose defaults set restart_policy="unless-stopped"

Template Libraries

Boilerplates uses git-based libraries to manage templates. You can add custom repositories:

bash
# List configured libraries
boilerplates repo list

# Update all libraries
boilerplates repo update

# Add a custom library
boilerplates repo add my-templates https://github.com/user/templates \
  --directory library \
  --branch main

# Remove a library
boilerplates repo remove my-templates

Contribution

Contributions are welcome. Feel free to open an issue or submit a pull request!

License

This repository is licensed under the MIT License.

Issues· 11 open

View all issuesOpen on GitHub
  • #1809

    Import an individual template from a URL

    featureUpdated Sep 9, 2026
  • #1800

    add installation with brew

    featurebacklogUpdated Aug 21, 2026
  • #1804

    Backlog: improve worker queue polling before action history grows

    featurebacklogUpdated Jun 19, 2026
  • #1803

    Track invalid Git credentials in read-only draft template visibility

    problembacklogUpdated Jun 18, 2026
  • #1801

    Migrate Prototype for Backend+UI

    featureUpdated Jun 2, 2026
  • #1758

    feature: add flatcar container linux support to install script (please)

    featureUpdated Jun 2, 2026
  • #1785

    Add Terraform provider management

    featureUpdated May 3, 2026
  • #1558

    feature: Add shell completion for nu(shell)

    featurebacklogUpdated Apr 29, 2026
  • #1776

    Honor file_metadata permissions and default to 0600/0700 for local writes and remote uploads

    problemfeatureUpdated Apr 23, 2026
  • #179

    Dependency Dashboard

    renovateUpdated Apr 22, 2026

> Tags

Pythonansiblebashdockerdocker-compose

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库