惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
The Cloudflare Blog
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
L
LangChain Blog
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
I
InfoQ
博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
H
Help Net Security
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Blueprint: Declare Your Dev Environment Once, Apply It An...
Pablo Ifrán · 2026-05-06 · via DEV Community

Your README has a Setup section. It has eight steps, two of them are out of date, and step 5 assumes you're on macOS. A new dev joins the team and spends their first afternoon figuring out which version of Node you're actually on.

You can do better than that. One .bp file in the repo and one command is all it takes.


What Blueprint Does

Blueprint is a declarative rule engine for development environments. You write a plain-text .bp file that describes what a machine needs packages, language versions, dotfiles, SSH config, secrets, cron jobs and Blueprint applies it.

install git curl on: [mac, linux]
mise python 3.12.0
mise node 20.11.0
clone https://github.com/yourorg/dotfiles.git to: ~/.dotfiles
run "pip install -r requirements.txt" after: mise-python
run "pre-commit install" after: pip-install

Enter fullscreen mode Exit fullscreen mode

blueprint apply project.bp

Enter fullscreen mode Exit fullscreen mode

Same result on a fresh laptop, an existing machine, or CI. That's reproducibility.


The Best Parts

Removing something actually removes it

This is the thing that makes Blueprint genuinely different from shell scripts and most setup tools.

Most tools are additive. You add a package, it installs. You remove it from the config, nothing happens. Over time every machine in your team drifts into a slightly different state.

Blueprint tracks everything it touches in ~/.blueprint/status.json. Remove a package from your .bp file, run blueprint apply again it uninstalls. Your environment stays in sync with your config. Always.


Preview before you touch anything

blueprint plan project.bp

Enter fullscreen mode Exit fullscreen mode

Dry run. Shows exactly what would run, without running it. New teammate on an existing machine? They run plan first. No surprises.


It writes cross-platform for you

Write install git. Blueprint runs brew install git on Mac and apt-get install -y git on Linux. No conditionals in your config, no separate files per platform.

Use on: [mac] or on: [linux] when a rule really is platform-specific. Otherwise write it once.


Apply directly from a Git repo

blueprint apply @github:yourorg/yourrepo project.bp

Enter fullscreen mode Exit fullscreen mode

No cloning required. Send a new teammate one command and they're set up. Point at a branch, point at a subdirectory it handles it.


Your .bp file generates your Dockerfile

This one prevents "works on my machine" from becoming a Dockerfile problem.

You define your Python version once in .bp:

mise python 3.12.0
install build-essential on: [linux] stage: build
install curl on: [linux] stage: runtime

Enter fullscreen mode Exit fullscreen mode

Then render your Dockerfile from a template:

blueprint render project.bp --template Dockerfile.tmpl --output Dockerfile

Enter fullscreen mode Exit fullscreen mode

The template pulls straight from the blueprint:

FROM python:{{ mise "python" }}-slim AS builder
RUN apt-get install -y {{ packages "" "build" }}

FROM python:{{ mise "python" }}-slim
RUN apt-get install -y {{ packages "" "runtime" }}

Enter fullscreen mode Exit fullscreen mode

When you bump the Python version in .bp, the Dockerfile updates with it. And if someone hand-edits the Dockerfile without updating the blueprint, CI catches it:

blueprint check project.bp --template Dockerfile.tmpl --against .

Enter fullscreen mode Exit fullscreen mode

One source of truth. No drift.


Export to a shell script for CI and Docker

blueprint export project.bp --output setup.sh

Enter fullscreen mode Exit fullscreen mode

Generates a standalone, idempotent shell script no Blueprint required to run it. Use it in CI pipelines, Docker builds, or onboarding scripts. Or pipe directly:

blueprint export @github:yourorg/setup | bash

Enter fullscreen mode Exit fullscreen mode


Secrets in the repo, safely

blueprint encrypt ~/.ssh/id_rsa

Enter fullscreen mode Exit fullscreen mode

Encrypts with AES-256-GCM. Commit the .enc file. Then in your blueprint:

decrypt id_rsa.enc to: ~/.ssh/id_rsa password-id: main

Enter fullscreen mode Exit fullscreen mode

Blueprint prompts for the password at apply time, decrypts to the right place with 0600 permissions, and never persists the password. Multiple files sharing the same password-id share one prompt.


Local LLMs as a first-class action

ollama llama3 codellama on: [mac, linux]

Enter fullscreen mode Exit fullscreen mode

Blueprint installs Ollama if it's not there, pulls the models, and like everything else removes them if you delete the rule and reapply. Local AI tooling is part of your reproducible setup, not a manual afterthought.


Modular configs for teams

include base.bp
include team/backend.bp

Enter fullscreen mode Exit fullscreen mode

Shared base for everyone, specialized additions per role. The backend team gets their database tools; the ML team gets their Python stack.


Full audit trail

Every apply is logged to ~/.blueprint/history.json with timestamps and output. blueprint status shows what's installed, from which blueprint file, and when. No more wondering why something is on a machine.


Getting Started


curl -fsSL https://install.getbp.dev | sh

Enter fullscreen mode Exit fullscreen mode

Single binary. No runtime dependencies. Works on macOS, and Linux.

Add a project.bp to your repo. Start with language versions and the packages from your README setup steps. Run blueprint plan to preview, blueprint apply to execute.

Your README setup section becomes:

blueprint apply @github:yourorg/yourrepo project.bp

Enter fullscreen mode Exit fullscreen mode

That's a reproducible project setup.


getbp.dev · github.com/elpic/blueprint