The context compiler that helps you prompt well -- local-first, Nix-reproducible, replayable. The successor to AI SEO software.
pip install pipulate==2.74 Copy PIP instructions
( Do you put your name on it because Claude said so? ) O /) __ > Do you think the Aviation industry o /)\__// / \ "What Claude said" is a Cockpit > vibe-codes without checking for ___(/_ 0 0 | | Voice Recorder (CVR) hear-say of a > confident hallucinations? So then *( ==(_T_)== QA | subcontractor. This tool is a Flight > why should you? If anyone relies on \ ) ""\ | | Data Recorder (FDR) for High Reliability > your work then you should Q/A it. |__>-\_>_> \__/ Organizations (HROs). Use when it matters. If you can't reproduce it, it didn't happen You're about to put your name on something an AI made, and you can't say what it did to make it. Pipulate is a free, open-source context compiler: every file the AI reads and the output of every command run on its behalf, stacked into one file you can paste into any model, keep, and replay with plain text commands. What it can't see, a vendor's server-side tool calls, it leaves out on purpose, because a step you can't rerun is a step nobody checked. Local-first, Nix-reproducible, and yours to delete. Prompt well.
Two open conventions, two lineages, and this repo carries both at the root beside the human's README:
Under both sits flake.nix with its flake.lock: the dependency inventory an SBOM enumerates, and an environment a second machine evaluates to the same result. That is not exotic. Anduril packages and deploys its embedded systems with Nix, Google's Firebase Studio (formerly Project IDX) configures every workspace from a .idx/dev.nix, and GNU Guix, the GNU project's own package manager, was built on Nix's model in 2012. For the reviewer who arrives with NIST 800-53 CM-2/CM-3, SOC 2 CC8.1 or PCI DSS 6.5 on a checklist, AUDIT.md maps each question to the artifact in this repo that answers it.
Want to skip the philosophy and just see what this does? Open the command line (on a Mac, the app called Terminal) and paste this:
curl -fsSL https://pipulate.com/install.sh | bash Note: Nix creates a perfectly reproducible environment, like Docker but more integrated. The first setup might take a few minutes to download dependencies, but subsequent launches are fast.
# 2. Launch it cd ~/pipulate && nix develop What you get: A local web app at http://localhost:5001 with step-by-step workflows, integrated AI chat, and a JupyterLab instance at http://localhost:8888. No cloud required.
Success looks like: A one-line environment reading, then a short list of words and a (nix) prompt. Nothing has started yet. Type walk for the guided tour, or jn to start JupyterLab and the app server; the JupyterLab tab opens in your browser with the Onboarding notebook, and running it top-to-bottom unlocks the Pipulate app (it opens automatically on future launches).
That's it! You now have a local-first development environment with AI integration.
cd ~/pipulate nix develop Where your work lives Workshop/ -- the JupyterLab root (NOT Pipulate's own root) │ FLAT siblings. Nothing nests. Nothing to get wrong. │ ├── corporate/ the org's canon · gitignored · its own private repo ├── personal/ personal · gitignored · your own git repo goes here └── shared/ the ONE folder for handing work to a teammate ├── alice/ one folder per person; you write ONLY your own └── bob/ single-writer partitions = zero merge conflicts 💡 What Can You Actually Build? Real examples of what people create with Pipulate:
Key advantage: Each workflow is a guided, step-by-step process that non-technical users can run repeatedly, while developers can customize the Python code behind each step.
╔═════════════════════════════════════════════════════════════════════════╗ Chip O'What? ║ 🎭 PIPULATE: LOCAL-FIRST AI-READINESS & DIGITAL WORKSHOP ║ , O ║ ────────────────────────────────────────────────────────────────────── ║ \\ . O ║ ║ |\\/| o ║ 💬 Chip O'Theseus: "Welcome to your sovereign computing environment!" ║ / " '\ ║ ║ . . . ║ 🌟 Where Python functions become HTML elements... ║ / ) | ║ 🌟 Where workflows preserve your creative process... ║ ' _.' | ║ 🌟 Where AI integrates locally and globally... ║ '-'/ \ ╚═════════════════════════════════════════════════════════════════════════╝ AI On Rails: Structured Workflows for Any AI The Challenge with Agentic AI: Powerful but unpredictable--you never know what you're gonna get.
The Pipulate Approach: Structured workflows that can leverage any AI--local, cloud, or hybrid--while maintaining complete visibility and control.
Think of it as putting guardrails on AI assistance. Instead of asking an AI to "figure it out," domain experts create step-by-step workflows that guide AI through proven processes. The AI gets structure, you get predictable results.
Pipulate: Your AI Swiss Army Knife: Whether you prefer local privacy, cloud power, or hybrid approaches, Pipulate provides the framework. Use local models for sensitive work, cloud APIs for heavy lifting, or both in the same workflow--your choice, your control.
🤖 AGENTIC MODE (Chaos) 🚂 AI ON RAILS (Pipulate) ═══════════════════════ ══════════════════════════ 💥 GOES OFF 📊 LINEAR WORKFLOWS HALF-COCKED! BY DOMAIN EXPERTS │ │ ▼ ▼ ╔════════════════════╗ ┌─────────────────────┐ ║ 🌪️ WILLY NILLY 🎲 ║ │ Step 1: Analyze▸ │ ║ ║ VS │ Step 2: Process▸ │ ║ Unpredictable ║ │ Step 3: Report▸ │ ║ Results ║ │ Step 4: Export▸ │ ╚════════════════════╝ └─────────────────────┘ │ │ ▼ ▼ ☁️ Trains Frontier Models 🏠 Keeps Domain Expertise Local 🖥️ Runs locally like a desktop app using modern web technologies 🐍 Simple linear workflow approach powered by HTMX for seamless interactivity 📓 Transforms Jupyter Notebooks into production-ready, step-by-step workflows 🤖 Integrated AI assistance using your own local models with complete privacy 🔧 Reproducible environments with Nix that work identically across all platforms 🎯 Perfect for practitioners readying clients for the agentic web who want to turn technical expertise into guided, reusable workflows What is Pipulate? Pipulate is a local-first, single-tenant desktop app framework featuring AI-assisted, step-by-step workflows. Designed to feel like an Electron app, it uniquely runs a full, reproducible Linux environment within a project folder using Nix, ensuring consistency across macOS, Linux, and Windows (via WSL).
🖥️ ELECTRON PATTERN 🌐 PIPULATE PATTERN ═══════════════════════ ═══════════════════════ ┌─────────────────────────┐ ┌─────────────────────────┐ │ ELECTRON APP │ │ PIPULATE SETUP │ ├─────────────────────────┤ ├─────────────────────────┤ │ ┌─────┐ ┌─────┐ ┌─────┐ │ │ ┌─────────────────────┐ │ │ │.exe │ │.dmg │ │.deb │ │ │ │ install.sh │ │ │ └─────┘ └─────┘ └─────┘ │ │ │ (Works on ALL OSes) │ │ │ Per-OS Installers │ │ └─────────────────────┘ │ └───────────┬─────────────┘ └───────────┬─────────────┘ │ │ ▼ ▼ ┌─────────────────────────┐ ┌─────────────────────────┐ This is new. │ 📱 Native Window │ │ 🖥️ The Command Line │ , O │ ┌─────────────────┐ │ │ ┌─────────────────────┐ │ \\ . O │ │ Web Browser │ │ │ │ nix develop (./run) │ │ |\\/| o │ │ (Bundled) │ │ │ │ Starting servers... │ │ / " '\ │ │ ┌───────────┐ │ │ │ │ ✓ JupyterLab ready │ │ . . . │ │ │ │ │ │ │ │ ✓ Pipulate ready │ │ / ) | │ │ │ HTML │ │ │ │ └─────────────────────┘ │ ' _.' | │ │ │ CSS │ │ │ + └─────────────────────────┘ '-'/ \ │ │ │ JS │ │ │ │ │ │ │ │ │ │ ▼ │ │ └───────────┘ │ │ ┌─────────────────────────┐ │ └─────────────────┘ │ │ 🌐 Regular Browser │ │ │ │ │ ┌─────────────────────┐ │ │ ▼ │ │ │ localhost:5001 │ │ │ ┌─────────────────┐ │ │ │ ┌─────────────────┐ │ │ │ │ Node.js │ │ │ │ │ Python/HTMX │ │ │ │ │ Runtime │ │ │ │ │ Workflows │ │ │ │ └─────────────────┘ │ │ │ │ Local AI │ │ │ └─────────────────────────┘ │ │ └─────────────────┘ │ │ │ └─────────────────────┘ │ ✅ Feels like native app └─────────────────────────┘ ❌ Multiple installers needed ❌ Platform-specific builds ✅ Universal installer ❌ Update distribution complexity ✅ Auto-updates via git ✅ Same experience all OSes ✅ Complete reproducibility The Magnum Opus: Computing Sovereignty This isn't just another framework -- it's a deliberate culmination of decades of tech evolution insights. Pipulate represents the "third act" approach to development (3rd time's the charm): choosing the most durable and lovable parts of the modern tech stack while rejecting the exhausting hamster wheel of framework churn.
If you are not an Empire builder and prefer craftsmanship over the rat race and want to build tools that last, then Pipulate may be for you. Pipulate embodies that philosophy -- maximum creative freedom with minimum technical debt, recapturing that old Webmaster feeling.
🎡 THE FRAMEWORK CHURN CYCLE 🏰 COMPUTING SOVEREIGNTY ═══════════════════════════════ ═══════════════════════════ React → Vue → Angular → Svelte 🗽 Your Hardware ↑ ↓ 🗽 Your Data Webpack ← Next.js ← Vite ← Remix 🗽 Your AI Choice ↑ ↓ 🗽 Your Code Docker → K8s → Cloud → Serverless 🗽 Your Schedule 😵💫 Endless Learning ✨ Durable Tools: 💸 Migration Fatigue • Python (30+ years) 🔒 Platform Lock-in • SQLite (built-in) 📈 Growing Complexity • HTML/HTTP (timeless) • Nix (reproducible) WITH • Cloud APIs (by choice) 🏃♂️ JUMP OFF THE WHEEL 🎯 Third Act Philosophy: ↓ "Choose tools that will ┌─────────────┐ outlast any framework" │ PIPULATE │ │ Local-First │ │+ Any Cloud │ └─────────────┘ Local-First Sovereignty: Your data, code, and AI run on your hardware by default--extending to cloud services when you choose. This guarantees privacy, eliminates surprise costs, and gives you complete control over when and how to scale.
WET Workflows, DRY Framework: Workflows are intentionally "WET" (explicit & step-by-step) for maximum clarity and customizability--perfectly mirroring Jupyter Notebooks. The underlying framework is "DRY" for efficiency.
The AI Advantage: AI makes WET practical. Tedious code maintenance and refactoring, once a weakness of WET, is now an area where AI excels, turning repetition into a strength for rapid, context-aware development. Our breakthrough Workflow Reconstruction System exemplifies this: intelligent AST-based transplantation of workflow components eliminates traditional OOP inheritance complexity while maintaining perfect code precision.
Radical Transparency ("Know EVERYTHING!"): We reject opaque enterprise patterns in favor of complete observability. State is managed in transparent SQLite tables and JSON blobs, making the entire system intuitive and debuggable. No black boxes, ever.
Reproducibility with Nix: Nix Flakes provide a perfect, reproducible Linux environment on macOS, Linux, and Windows (WSL), solving the "works on my machine" problem.
Future-Proof Stack: We rely on durable standards: Python, SQLite, HTML, and HTMX. This is a framework built to last.
Pipulate's WET philosophy extends to its technology choices, favoring simple, durable tools over complex abstractions:
The Cloud's popularity has been driven in part by developers not wanting to maintain multiple codebases or installers per OS. Thanks to Nix, that's all fixed.
The Prediction (2025): The "Container Era" is a transition, not a destination. We are currently shipping entire user-space operating systems (Docker images) just to run a single binary. It is inefficient, opaque, and fundamentally insecure.
In this future, we don't ship containers; we ship formulas. We ship the mathematical derivation that results in the software.
Why this matters for AI: AI agents cannot "troubleshoot" why libc is missing in a random Ubuntu container. AI needs determinism. It needs a world where Input + Code = Output, every single time, without exception. Nix is the only OS that speaks the language of AI: Pure Functional Logic.
.--. ___________ _ http://levinix.com ,--./,-. |o_o | | | | | | _____ _(_)_ __ (_)_ __ / # \ |:_/ | | | | | | / _ \ \ / / | '_ \| \ \/ / | | // \ \ |_____|_____| | |__| __/\ V /| | | | | |> < \ / (| | ) | | | |_____\___| \_/ |_|_| |_|_/_/\_\ `._,._,' /'\_ _/`\ | | | \___)=(___/ |_____|_____| # Levinix: A *very good* "No Problem" Universal Packager (NPvg) Nix serves as the "Noah's Ark" creating easily re-hydrated environments that work identically across all platforms and forever into the future. The long promised Holy Grail of write-once run anywhere is today achieved with infrastructure-as-code (IaC) leveraging a fully featured generic normalized Linux called Nix.
Pipulate integrates a carefully selected set of tools aligned with its philosophy:
🏛️ ORIGINAL LAMP STACK (2000s) 🚀 NEW LAMP STACK (2025) ═══════════════════════════════ ═══════════════════════════ ┌─────────────────────────────┐ ┌─────────────────────────────┐ │ 🐧 L: Linux │ │ 🐧 L: Linux + Nix │ │ Single OS, manual setup │ │ Reproducible everywhere │ ├─────────────────────────────┤ ├─────────────────────────────┤ │ 🌐 A: Apache │ │ ⚡ A: ASGI │ │ Static config, restarts │ │ Async, hot reload │ ├─────────────────────────────┤ ├─────────────────────────────┤ │ 🗄️ M: MySQL │ │ 📊 M: MiniDataAPI │ │ Complex queries, joins │ │ Python-native simplicity│ ├─────────────────────────────┤ ├─────────────────────────────┤ │ 🔧 P: PHP │ │ 🐍 P: Python + FastHTML │ │ Mix of HTML/logic │ │ + HTMX │ └─────────────────────────────┘ └─────────────────────────────┘ │ │ ▼ ▼ ┌─────────────────────┐ ┌─────────────────────────┐ │ 🏢 Enterprise │ │ 🏠 Local-First │ │ Complexity │ │ Sovereignty │ │ │ │ │ │ • Multi-server │ │ • Single machine │ │ • Load balancers │ │ • Integrated AI │ │ • Database clusters │ VS │ • SQLite simplicity │ │ • DevOps overhead │ │ • Nix reproducibility │ │ • Cloud lock-in │ │ • Flexible deployment │ └─────────────────────┘ └─────────────────────────┘ 🎯 One person understands 🎯 One person controls part of the system the entire system The original LAMP stack was beautiful in its simplicity -- one person could understand and manage the whole stack. But it got bloated with enterprise patterns, microservices, and distributed complexity.
Pipulate brings back that "one person, full stack" philosophy with modern tools:
This stack isn't just simpler--it's optimized for AI-assisted development. Here's why:
This focus on reproducibility, transparency, and AI-friendly ergonomics allows you to hone your craft and build future-proof skills.
Pipulate's technology choices form aligned lenses that focus ideas from abstraction to actualization. Each lens must be ground and polished without misaligning the focus:
HARDWARE: assets/installer/install.sh: Published on Pipulate.com to initiate magic cookie install flake.nix: Nix IaC creating a normalized Linux subsystem on any host OS PROTOCOL: http: Uvicorn fast Asynchronous Server Gateway Interface (ASGI) web server html: Uvicorn talks to Python Starlette using anyio & httpx libraries LINGUA: htmx: /assets/htmx.js JavaScript library to eliminate most need for JavaScript Python: .venv/bin/python3.12 latest version AIs are well trained on UI/UX: browser: Obviously, but I guess it needs to be said. Like a looser Electron. fasthtml: /assets/fasthtml.js for FT Components, Python functions as templating APP: app: Flask-style Uvicorn factory instance instantiated by FastHTML fast_app db: Dict-like DB providing transparent server-side state (server cookies) pipulate: Pipeline state management, like db but with JSON blob for workflows Grinding Off the Burrs and Flashes In lens manufacturing, "flashes" are excess material that squeeze out of molds -- unwanted projections that must be ground off. Steve Jobs famously did this twice: adopting Gorilla Glass (grinding off plastic flashes) and rejecting Flash Player (grinding off software bloat).
The result: clean, focused tools that do their job without unnecessary cruft.
This is not your father's Python web framework. HTMX changes everything -- a marriage made in heaven between Python and the Web, finally turning Python into a first-class citizen for web development. In many use cases such as this one, Python is even preferable to JavaScript in the way it blends Python's formidable ecosystem of packages with workflows.
The revolution isn't just another framework -- it's eliminating the template layer entirely:
🍶 FLASK ERA 🚀 FASTAPI ERA 🌐 FASTHTML ERA ═══════════════ ═══════════════ ══════════════════ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ Python │ │ Python │ │ Python │ │ Functions │ │ Functions │ │ Functions │ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │ │ │ ▼ ▼ ▼ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ Jinja2 │ │ Pydantic │ │ HTMX │◄─ Over-the-wire │ Templates │ │ Models │ │ Fragments │ HTML targeting └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ DOM elements │ │ │ ▼ ▼ ▼ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ HTML │ │ JSON │ │ HTML │ │ Response │ │ Response │ │ Elements │ └─────────────┘ └─────────────┘ └─────────────┘ │ │ │ ▼ ▼ ▼ 🌐 Full Page Reload 📱 Frontend Framework 🎯 DOM Element Updates (React/Vue/Angular) def Div() = def Button() = Template files needed JSON ↔ HTML conversion Python functions ARE Separate languages Client-side complexity the template language! The FastHTML Breakthrough: Python function names directly become HTML elements, eliminating templates and making the server the single source of truth for UI state.
HTMX: Enables dynamic, interactive UIs directly in HTML via attributes, minimizing the need for custom JavaScript. Pipulate uses it for server-rendered HTML updates -- over the wire HTML-fragments targeting elements of the DOM directly instead of fragile, performance-reducing, framework-dependent JSON. THIS is where you jump off the tech-churn hamsterwheel and future-proof yourself.
MiniDataAPI: A lightweight layer for interacting with SQLite and other databases. Uses Python dictionaries for schema definition, promoting type safety without the complexity of traditional ORMs -- effectively future-proofing your SQL. You lose fancy join capabilities but in exchange get the Python dict interface as your main persistent database API forever-forward, enabiling instant swapability between SQLite and PostgreSQL (for example).
Ollama: Facilitates running LLMs locally, enabling in-app chat, workflow guidance, and future automation capabilities while ensuring privacy and avoiding API costs. Your local AI (Chip O'Theseus) learns & grows with you, hopping from hardware to hardware as you upgrade -- like a genie in a hermitcrab shell. And if that weren't kooky enough -- it knows how to make MCP-calls!!! That's right, your friendly localhost AI Chip O'Theseus is also an MCP client! Your linear workflows ain't so linear anymore when a single-step can be: "Go out and do whatever."
Pipulate isn't anti-cloud--it's pro-choice. Each workflow step can choose the best tool for the job:
This is the Swiss Army knife approach: Local by default, cloud by choice, with complete visibility into what's happening at each step. Whether you're processing confidential client data (local) or need cutting-edge AI capabilities (cloud), Pipulate gives you the framework to do both seamlessly.
We offer two installation paths that lead to the exact same robust, Nix-managed environment. Choose the path that best fits your experience level and preferences.
┌────────────────────────────┐ │ New User on macOS │ └─────────────┬──────────────┘ │ ┌───────────────────────┴───────────────────────┐ │ │ ▼ ▼ ┌──────────────────────────────────┐ ┌───────────────────────────────────────────┐ │ PATH 1: Recommended for Everyone │ │ PATH 2: Alternative for Python Developers │ └──────────────────────────────────┘ └───────────────────────────────────────────┘ │ │ "I want the simplest, most "I prefer managing my command-line direct way to get this running." tools with standard Python utilities." │ │ ▼ ▼ 1. `curl ... [nix]` 1. `brew install pipx` (If needed) 2. `curl ... [pipulate]` 2. `pipx install pipulate` 3. `pipulate install` │ │ └───────────────┐ ┌───────────────┘ │ │ ▼ ▼ ┌────────────────────────────┐ │ Nix-Managed Pipulate │ │ Environment │ └────────────────────────────┘ || (Identical Result) PATH 1: Quick Start -- Universal Installation (Recommended) This is the fastest and most universal way to install Pipulate. It has the fewest dependencies and works on any modern Mac, Linux system, or Windows with WSL.
📦 Your Machine 🔧 Add Foundation 🚀 Complete Environment Today with Nix Ready to Go! ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ Sad Computer│ Step 1 │ 🏗️ Nix │ Step 2 │ 🎯 Pipulate │ │ Without │ ──────────► │ Foundation │ ──────────► │ + AI + │ │ Nix😢 │ │ Installed │ │ Jupyter │ └─────────────┘ └─────────────┘ └─────────────┘ │ Step 3 │ ▼ ┌─────────────┐ │ 🌐 Browser │ │ Opens │ │Automatically│ └─────────────┘ Simple as 1-2-3! No Docker, no build steps, works with or without cloud services. Everything runs locally with complete flexibility and control. The installation procedures labeled "Quick Start Guide" and the main installation path are both the same. Follow the instructions at the top of this page.
⚠️ Warning: This command is destructive. It will permanently delete your project folder, including any data you have created or downloaded. Use it only if you want a completely fresh start.
rm -rf ~/TestProject curl -fsSL https://pipulate.com/install.sh | bash -s TestProject cd ~/TestProject nix develop Type jn at the (nix) prompt, wait for the JupyterLab tab to open, then run the Onboarding notebook to unlock the Pipulate app.
Automating past the command list: on a terminal, nix develop ends at a short list of words and a (nix) prompt with nothing started; scripts/boot_menu.py prints the list, speaks through its exit code and reads no keys. It fails open, so anything without a terminal (CI, a provisioning script, an SSH session with no tty) starts the app and never sees the list. One environment variable covers a terminal that should do the same:
If you are a developer comfortable with tools like Homebrew and pipx, you can use our PyPI package as a gateway to the same robust installation.
pipx is a tool for safely installing Python command-line applications. If you don't have it, you can install it with Homebrew.
brew install pipx Step 2: Install the pipulate command
Use pipx to install the pipulate command-line tool. This will not cause conflicts with your system Python.
pipx install pipulate Step 3: Run the Installer
Use the command you just installed to set up the full Pipulate application.
pipulate install This will trigger the same universal installation process, resulting in the exact same robust, Nix-managed environment. To run it in the future, just type pipulate run.
Here's what happens behind the scenes during the "magic cookie" installation:
User runs assets/installer/install.sh (via curl) Nix Flake Activation & Transformation ┌──────────────────────────────┐ ┌────────────────────────────────────────────┐ │ 1. Download install.sh │ │ 5. User runs './run' ('nix develop') │ │ 2. Download ZIP from GitHub │ │ 6. Flake detects non-git directory │ │ 3. Extract ZIP to ~/AppName │ │ 7. Flake clones repo to temp dir │ │ 4. Download ROT13 SSH key │ │ 8. Preserves whitelabel.txt, .ssh, .venv │ │ to .ssh/rot │ │ 9. Moves git repo into place │ └─────────────┬────────────────┘ │10. Sets up SSH key for git │ │ │11. Transforms into git repo │ ▼ │12. Enables auto-update via git pull │ ┌─────────────────────────────────────────────────────────────────────────────┐ │ Result: Fully functional, auto-updating, git-based Pipulate installation │ └─────────────────────────────────────────────────────────────────────────────┘ The "Magic Cookie" Pattern: Bridging the Chasm This installation method is a deliberate architectural pattern designed to lower the Activation Energy of adopting immutable infrastructure.
Standard Nix adoption fails because it demands users learn a new language and mental model before they can run "Hello World." We inverted the dependency graph:
You aren't just running a script; you are instantiating a self-healing, mathematically reproducible development environment that creates its own "Bedrock" on your machine.
Are you a Developer or an End User? Chef or Customer? Understanding your audience is crucial for effective development. Pipulate serves two distinct but complementary audiences, much like a restaurant serves both chefs and customers
┌──────────────────────────────────────────────────────────┐ │ The Restaurant │ │ ┌──────────────────┐ ┌──────────────────┐ │ │ │ Kitchen (Dev) │ │ Dining Room │ │ │ │ │ │ (End Users) │ │ │ │ │ │ │ │ │ │ 👨🍳 Sous Chef │───recipes───►│ 🍽️ Customers │ │ │ │ 👩🍳 Head Chef │ │ 🏢 Restaurateur │ │ │ │ │ │ │ │ │ │ "How do we make │ │ "I want the best │ │ │ │ pasta you've │ │ pasta I've ever │ │ │ │ never had?" │ │ had in my life" │ │ │ └──────────────────┘ └──────────────────┘ │ └──────────────────────────────────────────────────────────┘ 👨🍳 The Chef (Developer/Technical User) 🔧 Workflow Creators: Build and customize AI-assisted workflows 📓 Jupyter Porters: Convert notebook experiments into guided applications 🔍 Technical SEOs (and their successors): Create sophisticated, reusable readiness processes ⚙️ System Administrators: Deploy consistent environments across teams What Chefs Get:
Just as a chef talks about knife techniques while a diner just wants amazing pasta, Pipulate separates the complexity of creation from the simplicity of consumption. Developers craft the workflows, end-users enjoy the results.
After installation succeeds, here's what to expect:
JupyterLab opens automatically for onboarding. Completing the Onboarding notebook unlocks the Pipulate app, which then opens automatically on future launches:
🚀 Starting Pipulate servers... ✓ FastHTML server ready at http://localhost:5001 ✓ JupyterLab ready at http://localhost:8888 ✓ Local AI ready for chat assistance Your Next Steps Depend on Who You Are 🔍 If you're readying clients for the agentic web:
🤖 If you're an AI assistant: Your primary goal is to read, understand, and modify the Python workflow files in the /apps directory. Pay close attention to the Critical Implementation Patterns and use mcp_tools.py as your guide for tool-calling capabilities.
Pipulate is built on a radical philosophy that challenges programming orthodoxy: WET (Write Everything Twice) is better than DRY (Don't Repeat Yourself) when you have AI to help manage it.
At every scale of reality, we see the same pattern: "lumps of stuff" with APIs that enable interaction. Quarks combine into atoms, atoms into molecules, cells into organisms, individuals into societies. Each level requires the right granularity of interface -- not so abstract that you lose control, not so granular that you drown in complexity.
This is the 80/20 rule of existence: Handle 80% of interactions gracefully with 20% of the API surface, then handle edge cases as needed. Pipulate applies this principle to code architecture.
The tech industry suffers from "hamster wheel syndrome" -- constantly breaking APIs that force migration cycles. React (20+ versions), Node (frequent breaking changes), Angular (complete rewrites). This isn't progress; it's planned obsolescence.
These are the "laws of physics" for software -- stable APIs that enable compound growth rather than constant rebuilding.
Traditional development follows DRY principles, creating abstract, complex systems that are hard to understand and modify. But the world has changed:
________________________________ - Like Notebooks / \ - Linear Workflows | It runs proprietary private AI | - Local & Cloud-free | Workflows from your Local PC?! | - Chip O'Theseus included \________________________________/ () HARDWARE PLATFORM LOCAL BROWSER O , Chip O'Theseus _______________________ __________ _______ o \\ . | | / Pipulate \Jupyter\__ |\\/| | Windows, Mac or Linux | | __________________ | See! / " '\ - Radical transparency | _____ ___ | | | App Name Menu⚙️| | -Step #1 | AI🤖 | | '-'/ \ |__| localhost:5001 |_| | | -Step #2 | Chat | | What, no Docker? | (AI on Rails🚂) | | | -Step #3 | Help▸ | | What, no React? |__________________| | |__________|_______| | What, no Cloud? |______________________| WET workflows are:
Standard Shell: nix develop (the same as nix develop .#default) runs the startup script (run-script defined in flake.nix) with welcome messages and service startup. Ideal for general use.
Quiet Shell: nix develop .#quiet activates the Nix environment without running the full startup script or launching services automatically. It only sets up paths and installs pip requirements. Use this for:
Dependencies: System-level dependencies (Python version, libraries like gcc, zlib) are managed by flake.nix. Python package dependencies are managed by pip using requirements.txt within the Nix-provided environment.
Source of Truth: The flake.nix file is the definitive source for the development environment setup.
Pipulate features a distinct architecture designed for its local-first, simple, and observable nature.
This diagram illustrates the high-level components and their interactions:
┌─────────────┐ Like Electron, but full Linux subsystem │ Browser │ in a folder for macOS and Windows (WSL) └─────┬───────┘ │ HTTP/WS ▼ ┌───────────────────────────────────────┐ │ Nix Flake Shell │ - In-app LLM (where it belongs) │ ┌───────────────┐ ┌──────────────┐ │ - 100% reproducible │ │ FastHTML │ │ Ollama │ │ - 100% local │ │ HTMX App │ │ Local LLM │ │ - 100% multi-OS │ └───────┬───────┘ └──────────────┘ │ │ │ │ │ ┌─────▼─────┐ ┌────────────┐ │ │ │MiniDataAPI│◄───►│ SQLite DB │ │ │ └───────────┘ └────────────┘ │ └───────────────────────────────────────┘ This complete, self-contained environment runs identically on any operating system, providing the foundation for all Pipulate workflows and AI interactions.
Jupyter Notebooks run alongside the FastHTML server, allowing developers to prototype workflows in a familiar environment before porting them to Pipulate's step-based interface for end-users. The same Python virtual environment (.venv) is shared, and ad-hoc package installation is supported. If you're using Cursor, VSCode or Windsurf, set your Ctrl+Shift+P "Python: Set Interpreter" to "Enter Interpreter Path" ./pipulate/.venv/bin/python. You might have to adjust based on the folder you use as your workspace. But then you'll have a Python environment unified between Cursor, JupyterLab and Pipulate.
┌──────────────────┐ ┌──────────────────┐ │ Jupyter Lab │ │ FastHTML │ │ Notebooks │ │ Server │ │ ┌──────────┐ │ │ ┌──────────┐ │ │ │ Cell 1 │ │ │ │ Step 1 │ │ │ │ │ │--->│ │ │ │ │ └──────────┘ │ │ └──────────┘ │ │ ┌──────────┐ │ │ ┌──────────┐ │ │ │ Cell 2 │ │ │ │ Step 2 │ │ │ │ │ │--->│ │ │ │ │ └──────────┘ │ │ └──────────┘ │ │ localhost:8888 │ │ localhost:5001 │ └──────────────────┘ └──────────────────┘ Starting Workflows in Jupyter Notebooks Pipulate's pipulate module can be imported in any Notebook, providing an ideal location to mock up new, fully operational workflows that are easy to port into the Pipulate Web App later. A simple:
import pipulate as pip ...at the top of a Notebook (following the conventions of import numpy as np) gives you all of Pipulate's state-management capabilities. This dramatically simplifies notebook logic, compels adherence to a linear input -> process -> output pattern, and makes porting to the web UI trivial.
import pipulate as pip # Define a job name, which corresponds to one record in the database job = "Workflow_Mockup_in_Notebook" # Cell 1: Set some initial data pip.set(job, step="customer_name", value="ACME Corp") pip.set(job, step="year", value=2025) # Cell 2: Retrieve data and add more # This works even if you restart the kernel between cells! customer = pip.get(job, step="customer_name") print(f"Working on job for {customer}") pip.set(job, step="contact_person", value="Wile E. Coyote") # Cell 3: View the final state final_state = pip.read(job) print(final_state) # Output: {'customer_name': 'ACME Corp', 'year': 2025, 'contact_person': 'Wile E. Coyote'} When you're done, you'll have a working process in a Jupyter Notebook. You can use it as is, or port it to a Pipulate apps/ file to make it easily accessible to non-Python users via the Web App.
Pipulate manages all state server-side within the local environment (think local-server cookies), with optional cloud integration as needed. This approach offers:
This detailed view shows how Pipulate's local-first architecture eliminates common web development complexities:
┌───────────────────────────────┐ # Benefits of Local-First Simplicity │ Web Browser │ │ │ - No mysterious client-side state │ ┌────────────────────┐ │ - No full-stack framework churn │ │ Server Console │ │ - No complex ORM or SQL layers │ │ & Web Logs │ │ - No external message queues │ └─────────┬──────────┘ │ - No build step required │ ▼ │ - Direct, observable state changes │ ┌─────────────────────┐ │ │ │ Server-Side State │ │ - Conceptually like local-server-side cookies │ │ DictLikeDB + JSON ◄──────── Enables the "Know EVERYTHING!" philosophy │ └─────────────────────┘ │ - AI greps logs/server.log to see app state! └───────────────────────────────┘ Server-Rendered UI (HTMX) The UI is constructed primarily with server-rendered HTML fragments delivered via HTMX. This minimizes client-side JavaScript complexity.
HTMX+Python enables a world-class Python front-end Web Development environment. ┌─────────────────────┐ │ Navigation Bar │ - No template language (like Jinja2) ├─────────┬───────────┤ - HTML elements are Python functions Simple Python back-end │ Main │ Chat │ - Minimal custom JavaScript / CSS HTMX "paints" HTML into │ Area │ Interface │ - No React/Vue/Angular overhead the DOM on demand ───────► │ │ │ - No "build" process like Svelte └─────────┴───────────┘ - No virtual DOM, JSX, Redux, etc. With such minimal surface area the AI code assistant knows everything. LLMs are either pre-trained on the stable, infrequently revved libraries used (Python 3.12, HTMX, or it's all small enough to fit in a 1-shot prompt -- yes, the whole core code-base fits in one Gemini Web UI form submit.
Designed for porting notebook-style processes, workflows are sequences of steps where the state is managed explicitly at each stage and stored persistently (typically as a JSON blob in the pipeline table).
┌─────────┐ ┌─────────┐ ┌─────────┐ - Fully customizable steps │ Step 01 │─piped─►│ Step 02 │─piped─►│ Step 03 │ - Interruption-safe & resumable └─────────┘ └─────────┘ └─────────┘ - Easily ported from Notebooks │ │ │ - One DB record per workflow run ▼ ▼ ▼ - Everything stays on your machine State Saved State Saved Finalized? - Magnitudes simpler than celery Run All Cells Pattern The key insight: Pipulate workflows use a run_all_cells() pattern that directly mirrors Jupyter's "Run All Cells" command. This creates an immediate mental model -- each workflow step is like a notebook cell, and the system automatically progresses through them top-to-bottom, just like running all cells in a notebook.
📓 JUPYTER NOTEBOOK 🌐 PIPULATE WORKFLOW ═══════════════════ ══════════════════════ [ ] Cell 1: Import data ┌─────────────────────┐ │ │ Step 1: Data Input │ ▼ └──────────┬──────────┘ [▶] Cell 2: Process data │ hx_trigger="load" │ ▼ ▼ ┌─────────────────────┐ [ ] Cell 3: Generate report │ Step 2: Processing │ │ └──────────┬──────────┘ ▼ │ hx_trigger="load" [ ] Cell 4: Export results ▼ ┌─────────────────────┐ 🎯 "Run All Cells" Button ═══► │ Step 3: Export │ Executes top-to-bottom └─────────────────────┘ Same mental model, same execution flow! But with persistent state, a web UI and not having to look at the Python code 🚫🐍. LLM Integration (Ollama) Integration with a local Ollama instance provides AI capabilities without external API calls:
┌──────────────────┐ │ Local Ollama │ - No API keys needed │ Server │ - Completely private processing └────────┬─────────┘ │ │ Streaming via WebSocket ▼ ┌──────────────────┐ │ Pipulate App │ - Monitors WS for MCP tool-call commands │(WebSocket Client)│ - Parses responses in real-time └────────┬─────────┘ │ │ In-memory or DB backed ▼ ┌──────────────────┐ │ Bounded │ - Manages context window (~128k) │ Chat History │ - Enables RAG / tool integration └──────────────────┘ Multi-OS & CUDA Support (Nix) Nix Flakes ensure a consistent environment across Linux, macOS, and Windows (via WSL), optionally leveraging CUDA GPUs if detected.
┌──────────────────┐ │ Linux / macOS │ - Write code once, run anywhere │ Windows (WSL) │ - Consistent dev environment via Nix └────────┬─────────┘ - As if Homebrew but across all OSes │ │ Nix manages dependencies ▼ ┌──────────────────┐ │ CUDA Support │ - Auto-detects NVIDIA GPU w/ CUDA │ (if present) │ - Uses GPU for LLM acceleration └──────────────────┘ - Falls back to CPU if no CUDA UI Layout The application interface is organized into distinct areas:
┌─────────────────────────────┐ │ Navigation ◄── Search, Profiles, ├───────────────┬─────────────┤ Apps, Settings │ │ │ Workflow, ──► Main Area │ Chat │ App UI │ (Pipeline) │ Interface ◄── LLM Interaction │ │ │ └─────────────────────────────┘ UI Component Hierarchy: Complete DOM Structure with IDs & ARIA Labels Critical for AI assistants: All UI components use semantic IDs and comprehensive ARIA labeling for accessibility and automation.
🏠 home (Root Component) ├── 📦 create_outer_container() │ ├── 🧭 create_nav_group() [id='nav-group', role='navigation', aria-label='Main navigation'] │ │ ├── 🔍 nav_search_container [role='search', aria-label='Plugin search'] │ │ │ ├── Input [id='nav-plugin-search', role='searchbox', aria-label='Search plugins'] │ │ │ └── Div [id='search-results-dropdown', role='listbox', aria-label='Search results'] │ │ ├── 👤 create_profile_menu() [id='profile-dropdown-menu', aria-label='Profile management'] │ │ │ ├── Summary [id='profile-id', aria-label='Profile selection menu'] │ │ │ └── Ul [role='menu', aria-label='Profile options', aria-labelledby='profile-id'] │ │ ├── ⚡ create_app_menu() [id='app-dropdown-menu', aria-label='Application selection'] │ │ │ ├── Summary [id='app-id', aria-label='Application menu'] │ │ │ └── Ul [role='menu', aria-label='Application options', aria-labelledby='app-id'] │ │ ├── 🌍 create_env_menu() [id='env-dropdown-menu', data-testid='environment-dropdown-menu'] │ │ │ ├── Summary [id='env-id', aria-label='Environment selection menu'] │ │ │ └── Ul [role='menu', aria-label='Environment options', aria-labelledby='env-id'] │ │ └── ⚙️ poke_section [id='poke-dropdown-menu'] │ │ ├── Summary [id='poke-summary'] │ │ └── Div [id='nav-flyout-panel'] │ ├── 📱 main-grid │ │ ├── 📋 create_grid_left() [id='grid-left-content'] → Workflow Steps/Cells Display │ │ │ ├── content_to_render (Dynamic workflow content) │ │ │ └── scroll_to_top [id='scroll-to-top-link'] │ │ └── 🤖 create_chat_interface() [id='chat-interface', role='complementary', aria-label='AI Assistant Chat'] │ │ ├── H2 [APP_NAME + ' Chatbot'] │ │ ├── Div [id='msg-list', role='log', aria-label='Chat conversation', aria-live='polite'] │ │ └── Form [role='form', aria-label='Chat input form'] │ │ ├── Textarea [id='msg', role='textbox', aria-label='Chat message input', aria-multiline='true'] │ │ ├── Button [id='send-btn', aria-label='Send message to AI assistant'] │ │ └── Button [id='stop-btn', aria-label='Stop AI response streaming'] │ └── 🔧 HTMX Refresh Listeners │ ├── Div [id='profile-menu-refresh-listener', hx_target='#profile-dropdown-menu'] │ └── Div [id='app-menu-refresh-listener', hx_target='#app-dropdown-menu'] 🎯 Key HTMX Targets for AI Browser Automation Navigation Updates:
This structure enables AI assistants to programmatically interact with all UI components using semantic selectors and ARIA landmarks.
. ├── .venv/ # Common Python environment for FastHTML, Jupyter & Cursor ├── apps/ # Workflow plugins (010_introduction.py, 400_trifecta.py, etc.) ├── browser_cache/ # Selenium browser control & DOM capture │ ├── looking_at/ # Current browser DOM state for AI visibility │ └── *.py # Google search automation examples ├── cli.py # Command line interface for Pipulate operations ├── data/ │ └── data.db # AI-accessible SQLite for application state (server cookies) ├── downloads/ # Default location for workflow outputs (e.g., CSVs) ├── assets/ # JS, CSS, images, icons ├── pyproject.toml # Python packaging configuration and metadata ├── flake.nix # Infrastructure as Code & all system-versions for AI ├── LICENSE # It's MIT ├── README.md # This file ├── requirements.txt # Python dependencies (managed by Nix) └── server.py # Main application entry point Critical Implementation Patterns for LLMs These patterns are essential for LLMs working with Pipulate and are frequently missed:
📝 AUTO-KEY GENERATION FLOW ┌─────────────┐ POST ┌─────────────┐ HX-Refresh ┌─────────────┐ │ Empty Form │ ──────────► │ Server │ ──────────────► │ Page Reload │ │ Submit ⏎ │ /init │ Response │ Header │ Trigger │ └─────────────┘ └─────────────┘ └─────────────┘ ▲ │ │ ▼ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ User Hits │ ◄─────────── │ Auto-Key │ ◄───────────── │ landing() │ │ Enter Again │ Ready! │ Populated │ Generates │ Method │ └─────────────┘ └─────────────┘ └─────────────┘ When a user hits Enter on an empty key field, this specific sequence occurs:
if not user_input: from starlette.responses import Response response = Response('') response.headers['HX-Refresh'] = 'true' return response Page Reload: HTMX triggers a full page reload Auto-Key Population: The landing() method calls pip.generate_pipeline_key(self) to populate the input field User Interaction: User hits Enter again to start the workflow 2. The Chain Reaction Pattern: The run_all_cells() Breakthrough Pipulate uses HTMX-driven step progression powered by the brilliantly named run_all_cells() method:
Example: The run_all_cells() Pattern in Action
# ✅ CORRECT: Use the run_all_cells() method for workflow initialization async def init(self, request): """Initialize workflow using the run_all_cells pattern""" return pip.run_all_cells(app_name, steps) # ❌ ANTI-PATTERN: Manual placeholder creation async def init(self, request): """Manual approach -- harder to understand and maintain""" first_step_id = steps[0].id return Div( Div(id=first_step_id, hx_get=f'/{app_name}/{first_step_id}', hx_trigger='load'), id=f"{app_name}-container" ) The run_all_cells() method encapsulates the workflow initialization pattern and creates an immediate mental connection to Jupyter notebooks.
📂 FILENAME vs APP_NAME DISTINCTION ┌─────────────────────────────────────────────────────────────┐ │ CRITICAL SEPARATION │ ├─────────────────────────────────────────────────────────────┤ │ │ │ 📁 FILENAME: 200_workflow_genesis.py │ │ ├── 🌐 Determines public URL: /workflow_genesis │ │ └── 📊 Controls menu order: 200 │ │ │ │ 🏷️ APP_NAME: "workflow_genesis_internal" │ │ ├── 💾 Database table identifier │ │ ├── 🔒 MUST REMAIN STABLE (data integrity) │ │ └── 🚫 NEVER change after deployment │ │ │ │ ⚠️ DANGER: Changing APP_NAME = Orphaned Data │ └─────────────────────────────────────────────────────────────┘ Critical for data integrity:
📁 PLUGIN DISCOVERY SYSTEM apps/ ├── 010_introduction.py ✅ Registered as "introduction" (menu order: 1) ├── 020_profiles.py ✅ Registered as "profiles" (menu order: 2) ├── hello_flow (Copy).py ❌ SKIPPED - Contains "()" ├── xx_experimental.py ❌ SKIPPED - "xx_" prefix └── 200_workflow_genesis.py ✅ Registered as "workflow_genesis" (menu order: 20) 📊 AUTO-REGISTRATION RULES: ✅ Numeric prefix → Menu ordering + stripped for internal name ❌ Parentheses "()" → Development copies, skipped ❌ "xx_" prefix → Work-in-progress, skipped 🔧 Must have: landing() method + name attributes 💉 Auto dependency injection via __init__ signature Files in apps/ directory are auto-discovered Numeric prefixes control menu ordering Classes must have landing method and name attributes Automatic dependency injection based on __init__ signature Workflow Development Helper Scripts Pipulate includes sophisticated helper scripts for workflow development:
python create_workflow.py workflow.py MyWorkflow my_workflow \ "My Workflow" "Welcome message" "Training prompt" \ --template trifecta --force splice_workflow_step.py Adds steps to existing workflows:
python splice_workflow_step.py workflow.py --position top python splice_workflow_step.py workflow.py --position bottom Template System 🏗️ WORKFLOW TEMPLATE SYSTEM ┌─────────────────┐ ┌─────────────────┐ │ BLANK TEMPLATE │ │TRIFECTA TEMPLATE│ ├─────────────────┤ ├─────────────────┤ │ ┌─────────────┐ │ │ ┌─────────────┐ │ │ │ Step 1 │ │ │ │ Step 1 │ │ │ │ (Minimal) │ │ │ │ (Input) │ │ │ └─────────────┘ │ VS │ └──────┬──────┘ │ │ │ │ │ │ │ Quick Start │ │ ▼ │ │ Single Purpose │ │ ┌─────────────┐ │ └─────────────────┘ │ │ Step 2 │ │ │ │ (Process) │ │ create_workflow.py │ └──────┬──────┘ │ --template blank │ │ │ │ ▼ │ │ ┌─────────────┐ │ │ │ Step 3 │ │ │ │ (Output) │ │ │ └─────────────┘ │ │ │ │ Full Pattern │ │ Complete Flow │ └─────────────────┘ create_workflow.py --template trifecta blank: Minimal workflow with one step trifecta: Three-step workflow pattern Automatic method generation and insertion Workflow Reconstruction System The Revolutionary Alternative to OOP Inheritance: Atomic transplantation of workflow components using intelligent pattern matching and AST precision.
🧬 WORKFLOW RECONSTRUCTION: ATOMIC TRANSPLANTATION ═════════════════════════════════════════════════════════════════════════ OLD WORKFLOW WORKFLOW UPDATED WORKFLOW (Atomic Source) RECONSTRUCTOR (Incremental Gen) ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │ 🧬 Components: │ AST │ 🎯 Pattern │ AST │ ✨ Generated: │ │ │ ───► │ Matching │ ───► │ │ │ ┌─────────────┐ │ │ │ │ ┌─────────────┐ │ │ │step_params* │ │ │ Bundle Type 1: │ │ │step_params* │ │ ✅ │ │step_optim* │ │ │ Auto-Registered │ │ │step_optim* │ │ ✅ │ │parameter* │ │ │ Methods │ │ │parameter* │ │ ✅ │ └─────────────┘ │ │ │ │ └─────────────┘ │ │ │ │ Bundle Type 2: │ │ │ │ ┌─────────────┐ │ │ Custom Routes │ │ ┌─────────────┐ │ │ │_process │ │ │ (_process, │ │ │_process │ │ ✅ │ │preview │ │ │ preview) │ │ │preview │ │ ✅ │ └─────────────┘ │ │ │ │ └─────────────┘ │ └─────────────────┘ └─────────────────┘ └─────────────────┘ 🔄 COMPLETE LIFECYCLE: Test → Validate → Production → Cleanup --suffix 5 --target new_name --target same_name git status ────────── ──────────────── ────────────────── ────────── param_buster5 advanced_params param_buster (in-place) (shows cruft) (safe testing) (new workflow) (git history preserved) (clean up!) 🎯 WHY IT WORKS: Lightning in a Bottle ┌─────────────────────────────────────────────────────────────────────────┐ │ ✨ Pattern Matching: No manual markers needed │ │ 🔧 AST Precision: Syntactically perfect code generation │ │ 🎭 Inheritance Alternative: Compose without complex super() chains │ │ 🧪 Safe Testing: Incremental validation without production risk │ │ 📚 Git Continuity: In-place updates preserve development history │ │ 🧹 Systematic Cleanup: Prevents file cruft accumulation │ └─────────────────────────────────────────────────────────────────────────┘ workflow_reconstructor.py --template botify_trifecta --source parameter_buster --suffix 5 The System That Eliminates Bootstrap Paradox:
# Development workflow cd ~/pipulate && nix develop # Start Pipulate nix develop .#quiet # Start without auto-services python server.py # Manual server start git pull && nix develop # Update to latest # Create new workflows python helpers/workflow/create_workflow.py my_workflow.py MyClass my_internal_name python helpers/workflow/splice_workflow_step.py my_workflow.py --position top # Plugin naming conventions 010_my_plugin.py # Active plugin (menu order 1) xx_my_plugin.py # Disabled during development my_plugin (Copy).py # Ignored development copy Key URLs & Ports Pipulate App: http://localhost:5001 JupyterLab: http://localhost:8888 Local AI Chat: Built into the Pipulate interface Logs: tail -f logs/server.log for debugging Critical Patterns for AI Assistants # Auto-key generation flow if not user_input: response = Response('') response.headers['HX-Refresh'] = 'true' return response # Workflow initialization return pip.run_all_cells(app_name, steps) # State management data = pip.get_step_data(step_id) pip.set_step_data(step_id, updated_data) File Structure Quick Reference apps/ # Your workflows (auto-discovered) ├── 010_introduction.py # Menu order 1 ├── xx_draft.py # Disabled (xx_ prefix) └── draft (Copy).py # Ignored (parentheses) mcp_tools.py # AI assistant interface crud.py # Base classes for workflows browser_cache/ # Selenium automation tools logs/server.log # Debug everything here data/data.db # SQLite application state Common LLM Implementation Mistakes 🚨 LLM IMPLEMENTATION MISTAKE PREVENTION ┌────────────────────────────────────────────────────────────┐ │ COMMON PITFALLS │ ├────────────────────────────────────────────────────────────┤ │ ❌ Missing HX-Refresh │ ✅ if not user_input: │ │ Response │ response.headers['HX- │ │ │ Refresh'] = 'true' │ ├────────────────────────────┼───────────────────────────────┤ │ ❌ Wrong Key Generation │ ✅ pip.generate_pipeline_ │ │ Method │ key(self) │ ├────────────────────────────┼───────────────────────────────┤ │ ❌ Broken Chain Reaction │ ✅ hx_trigger="load" → │ │ Pattern │ Automatic progression │ ├────────────────────────────┼───────────────────────────────┤ │ ❌ APP_NAME Changes │ ✅ NEVER modify after │ │ (Data Orphaning) │ deployment │ └────────────────────────────────────────────────────────────┘ LLMs frequently make these errors:
These "speedbumps" reinforce Pipulate's core philosophy:
┌─────────────┐ ┌──────────────┐ │ File System │ Changes │ AST Syntax │ Checks Code │ Watchdog │ Detects │ Checker │ Validity └──────┬──────┘ └───────┬──────┘ │ Valid Change │ ▼ ▼ ┌───────────────────────────┐ ┌──────────┐ │ Uvicorn Server │◄─── │ Reload │ Triggers Restart │ (Handles HTTP, WS, SSE) │ │ Process │ └───────────────────────────┘ └──────────┘ Pipeline State Inspector & MCP Tools The system provides comprehensive debugging and state inspection capabilities through MCP tools and real-time monitoring:
📊 PIPELINE STATE INSPECTOR ├─── 🔍 Discovering active workflows... ├─── ⚡ Found 3 running processes ├─── 🎯 Step 2/5: Processing data transformations └─── ✨ Ready for next interaction! 🤖 MCP TOOL CALLS ├─── 📡 Connecting to Botify API... ├─── 🔐 Authentication successful ├─── 📊 Fetching schema (4,449 fields discovered!) └─── 💾 Caching results for lightning-fast access The Deeper Philosophy: Why This Matters Pipulate represents more than technology choices -- it's a statement about computing sovereignty and the future of human-AI collaboration.
In a few years, the industry will pivot away from mutable containers and claim they invented "AI-Native Infrastructure"--declarative, reproducible environments that allow AI agents to write code without breaking dependencies. They will package it in slick UIs and hide the math.
When that happens, remember that Pipulate was here first.
We built the bridge so you could cross the chasm from "Hacking it until it works" to "Declaring it until it builds" without falling in. We chose Friction (strict reproducibility) because friction is the only enemy of Entropy (system rot).
While others fight to keep their containers from drifting, you will be standing on the Bedrock.
How do you "lift yourself up by your bootstraps"? The answer: you're not a closed system. Humans interact with reality through interfaces, just like software components. We are "human apps with reality APIs."
This pattern repeats at every scale -- from quantum fields to societies. The art lies in choosing the right granularity for these interfaces. Too abstract, and you lose control. Too granular, and you drown in complexity.
The most successful APIs are durable -- they become the "laws of physics" for their domain. In reality: the laws of physics, chemistry, biology. In tech: logic gates, operating systems, protocols like HTTP and HTML.
Pipulate chooses these durable APIs deliberately, creating a future-proof foundation for AI-assisted development that will outlast the current framework churn.
This documentation serves multiple audiences: humans seeking immediate productivity, and AI systems learning to collaborate with human creativity. The explicit, observable nature of Pipulate workflows creates perfect training data for the next generation of AI assistants.
Pipulate offers a unique approach to building local, AI-assisted applications, prioritizing simplicity, user control, and reproducibility over conventional scaling patterns. By understanding its core concepts and embracing its philosophy, developers can create powerful workflows, and end-users can benefit from AI guidance with complete flexibility in deployment options.
The Bottom Line: Pipulate doesn't reject the modern AI ecosystem--it provides a structured foundation that works with any AI service. Whether you're using Claude via API, ChatGPT for reasoning, or local models for privacy, Pipulate gives you the workflow framework to orchestrate them all effectively. It's not about choosing sides in the AI wars--it's about having the right tool for any job.
The repository includes not only polished plugins but also experimental scripts and notebooks under development (e.g., in the root directory or marked with xx_ prefix in plugin directories). These represent ongoing work and exploration.
Use git mv for simple renames (like xx_ to numbered prefix) to preserve history. Document more complex renames in commit messages.
git mv workflows/xx_my_flow.py workflows/##_my_flow.py git commit -m "Feat: Promote workflow xx_my_flow.py to ##_my_flow.py" Roadmap Core & Workflow Enhancements:
Contributions are welcome! Please adhere to the project's core philosophy:
This project is licensed under the MIT License. See the LICENSE file for details.
Background Articles: Mike Levin, AI SEO in NYC
Enhanced Documentation: Pipulate: The Context Compiler That Helps You Prompt Well
context-compiler reproducibility ai-readiness agentic-web seo ai llm automation local-first nix fasthtml htmx agentic content-negotiation
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




