Your data. Your AI. Your machine. Your control.
No subscriptions, no vendor lock-in, no cloud costs.
Want to skip the philosophy and just see what this does?
# 1. Install Nix (one-time setup)
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
# 2. Close and reopen your terminal, then:
curl -L https://pipulate.com/install.sh | bash
# 3. 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: Two browser tabs auto-open showing the Pipulate interface and JupyterLab.
Real examples of what people create with Pipulate:
- Keyword Research Pipeline: Input seed keywords β AI expansion β competition analysis β export spreadsheet
- Content Gap Analysis: Compare your site vs competitors β identify missing topics β prioritized content calendar
- Technical SEO Audits: Crawl site β check Core Web Vitals β generate action items β track fixes
- CSV Data Cleaning: Upload messy data β standardize formats β remove duplicates β validate results
- API Data Collection: Connect to APIs β fetch data in batches β transform to consistent format β store locally
- Report Generation: Combine multiple data sources β apply business rules β create branded reports
- Content Creation Pipeline: Research topics β generate outlines β write drafts β optimize for SEO
- Data Analysis Helper: Upload spreadsheet β AI suggests insights β create visualizations β export findings
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 SEO SOFTWARE & 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... β '-'/ \
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
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 SEO practitioners who want to turn technical expertise into guided, reusable workflows
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 β β π₯οΈ Terminal Console β , O
β βββββββββββββββββββ β β βββββββββββββββββββββββ β \\ . O
β β Web Browser β β β β nix develop β β |\\/| 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
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 π½ Your Hardware
πΈ Migration Fatigue π½ Your Data
π Platform Lock-in π½ Your AI Choice
π Growing Complexity π½ Your Code
π½ Your Schedule
WITH
β¨ Durable Tools:
πββοΈ JUMP OFF THE WHEEL β’ Python (30+ years)
β β’ SQLite (built-in)
βββββββββββββββ β’ HTML/HTTP (timeless)
β PIPULATE β β’ Nix (reproducible)
β Local-First β β’ Cloud APIs (by choice)
β+ Any Cloud β
βββββββββββββββ π― Third Act Philosophy:
"Choose tools that will
outlast any framework"
-
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.
- Empower End-Users (e.g., SEO Practitioners): Enable non-programmers to run powerful, AI-guided workflows (often ported from Jupyter Notebooks) without needing to interact with Python code directly.
- Serve Developers: Provide a simple, reproducible environment for building these workflows, leveraging integrated tooling like Jupyter, local LLMs, and a streamlined web framework.
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.
- Nix Flakes: Manages dependencies and creates reproducible environments, ensuring consistency across developers and operating systems, with optional CUDA support. E.g. Is this a Linux-thing you're reading about here? A Windows thing? A Mac thing? The answer is: YES!!! All of the above β and if you've got cool acceleration hardware, it will even take advantage and utilize that too. Best of all worlds.
____ _ _ .--. ___________
| _ \ __ _ _ ____ _(_)_ __ (_)_ __ ,--./,-. |o_o | | | |
| | | |/ _` | '__\ \ /\ / / | '_ \| \ \/ / / # \ |:_/ | | | |
| |_| | (_| | | \ V V /| | | | | |> < | | // \ \ |_____|_____|
|____/ \__,_|_| \_/\_/ |_|_| |_|_/_/\_\ \ / (| | ) | | |
`._,._,' /'\_ _/`\ | | |
Solving the "Not on my machine" problem well. \___)=(___/ |_____|_____|
Nix serves as the "Noah's Ark" β preserving this perfect focus in a reproducible environment that works identically across all platforms. Once you've locked in the focus, it lasts for years or decades, all bottled up in infrastructure-as-code.
Pipulate integrates a carefully selected set of tools aligned with its philosophy:
- FastHTML: A Python web framework prioritizing simplicity. It generates HTML directly from Python objects (no template language like Jinja2) and minimizes JavaScript by design, working closely with HTMX. It's distinct from API-focused frameworks like FastAPI. The Python function-naming is the HTML-template language.
ποΈ 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:
- Linux + Nix: Reproducible environments across all platforms
- ASGI: Modern async server interface, future-proofed for performance
- MiniDataAPI: Universal SQL simplifier close to Python's core data structures
- Python + FastHTML + HTMX: The new web development paradigm
This isn't just simpler β it's more powerful, giving you complete environment reproducibility, local AI integration, server-side state management, and future-proofed 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:
Universal Translator of Abstractions clarify into implementations
Spoken Language to Code by each lens being simple and transparent.
Idea --> Lens 1 --> Lens 2 --> Lens 3 -> Lens 4 -> Lens 5 -> Lens 6
-----> ,--.
---> ,' `.---------> ,--.
--> / \------> ,' `.-------> ,--. ,-.
o -> / Linux \----> / http \----> ,'_hx `.--->,' `. ,-.
/|\ ( HARDWARE )--> ( PROTOCOL )--> ( LINGUA )->( UI/UX )->(APP)->(git)
/ \ -> \ Nix /----> \ html /----> `..py ,'--->`. ,' `-'
--> \ /------> `. ,'-------> `--' `-' And so on
---> `. ,'---------> `--' AI Help
-----> `--' AI Help
AI Help
We keep lenses minimal, their material either thoroughly pre-trained into the model (Python 3.x, HTMX, etc.) or able to be included in the prompt and easily held in the context window. We've trimmed the cruft β the lens flashes and burrs, and all unnecessary extra lenses (Angular, React, Vue, etc.)
HARDWARE:
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
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).
Pipulate continues this tradition:
- FastHTML: Grinds off Jinja2 template complexity
- HTMX: Grinds off virtual DOM overhead
- Local AI: Enables privacy by default, cloud power when desired
- SQLite: Grinds off enterprise database complexity
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() = <div>
def Button() = <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:
- Step 1: Use local AI for sensitive data analysis (privacy-first)
- Step 2: Call OpenAI's API for advanced reasoning (cloud power)
- Step 3: Process results locally and save to SQLite (data sovereignty)
- Step 4: Use Anthropic's API for final review (frontier capabilities)
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.
- SQLite & Jupyter Notebooks: Foundational tools for data persistence and the workflow development process (porting from notebooks to Pipulate workflows). SQLite is built into Python and really all things β the get-out-of-tech-liability free card you didn't know you had. And a full JupyterLab instance is installed side-by-side with Pipulate sharing the same Python
.venv
virtual environment, which is also shared with your preferred AI code editor (Cursor, Windsurf, VSCode, Zed) so... well... uhm, there are no words for when 3 different portals-to-Python share the same environment. You can do such stupid AI-tricks as letting your local LLM and a frontier cloud model inhabit the same body (Pipulate) β controlling web browsers together and stuff.
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)
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.
Step 1: Install Nix (One-Time Setup)
If you don't have it already, install the Nix package manager. It's the system that makes Pipulate's reproducible environment possible.
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
Important: After the Nix installation finishes, you must close and reopen your Terminal window.
Step 2: Run the Pipulate Installer
Now, run the universal install script. You can give your project a custom name, too.
# To install with a custom name like "Botifython"
curl -L https://pipulate.com/install.sh | bash -s Botifython
# Or, to install with the default name "pipulate"
curl -L https://pipulate.com/install.sh | bash
Step 3: Launch Pipulate
Navigate into your new project directory and launch the environment with nix develop
.
# cd into the directory you just created
cd ~/Botifython
# Launch Pipulate
nix develop
That's it! The server and JupyterLab will start, and the application will open in your browser.
Running It Again:
- You can just forcibly exit out of that Terminal it's running from.
- Open a new Terminal, and once again:
cd ~/Botifython
nix develop
The Big Reset (If Necessary):
Things sometimes go wrong. This is how you do a full Pipulate reset. This will also delete anything you downloaded with Pipulate. Adjust custom install name to what you used.
rm -rf ~/Botifython
curl -L https://pipulate.com/install.sh | bash -s Botifython
cd ~/Botifython
nix develop
Wait for BOTH TABS to auto-open in your browser.
Common Issues & Solutions:
Problem | Solution |
---|---|
nix: command not found |
You didn't restart your terminal after Nix installation |
Browser doesn't open automatically | Manually visit http://localhost:5001 and http://localhost:8888 |
Permission denied errors |
Make sure you can write to ~/pipulate directory |
Port conflicts | Kill processes on ports 5001/8888: lsof -ti:5001 | xargs kill -9 |
Nix build fails | Clear Nix cache: nix-collect-garbage then retry |
System Requirements:
- macOS: 10.15+ (Intel/Apple Silicon)
- Linux: Any modern distribution with curl
- Windows: WSL2 with Ubuntu 20.04+
- RAM: 4GB minimum, 8GB recommended
- Disk: 2GB for installation + data storage
- Network: Internet connection for initial setup only
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.
Step 1: Install pipx
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 CLI
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
.
These few commands:
- β Updates to the latest version automatically
- β Starts JupyterLab and the Pipulate server
- β Opens web interfaces in your browser
- β Provides a complete, reproducible development environment
That's it! You now have a local-first development environment with AI integration, installed via your preferred Python toolchain.
Here's what happens behind the scenes during the "magic cookie" installation:
User runs install.sh (via curl) Nix Flake Activation & Transformation
ββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββ
β 1. Download install.sh β β 5. User runs '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 app_name.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 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
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" β β
β ββββββββββββββββββββ ββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- π§ Workflow Creators: Build and customize AI-assisted workflows
- π Jupyter Porters: Convert notebook experiments into guided applications
- π Technical SEOs: Create sophisticated, reusable SEO processes
- βοΈ System Administrators: Deploy consistent environments across teams
What Chefs Get:
- ποΈ Complete control over the "recipe" (workflow logic)
- π Reproducible development environment via Nix
- ποΈ Simple architecture that's easy to understand and modify
- π§° Integrated tooling (Jupyter, local LLM, SQLite)
- π SEO Practitioners: Run powerful workflows without coding
- βοΈ Content Creators: Use AI-assisted processes for optimization
- π Marketing Teams: Execute consistent SEO strategies
- π’ Business Owners: Access enterprise-level SEO capabilities
What Customers Get:
- πΆββοΈ Guided, step-by-step workflow experiences
- π€ AI assistance at every step
- π No need to see or understand the underlying code
- π― Consistent, repeatable results
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:
-
Two browser tabs open automatically:
localhost:5001
- Pipulate web interface with navigation menulocalhost:8888
- JupyterLab for development/experimentation
-
In the Pipulate interface:
- Left sidebar with workflow plugins (Introduction, Profiles, etc.)
- Main area showing step-by-step workflow interface
- Right panel with integrated AI chat (Chip O'Theseus)
-
Terminal shows:
π Starting Pipulate servers... β FastHTML server ready at http://localhost:5001 β JupyterLab ready at http://localhost:8888 β Local AI ready for chat assistance
π If you're an SEO practitioner:
- Click "Introduction" in the left menu for a guided tour
- Try the built-in workflows to see the step-by-step pattern
- Use the AI chat to ask "How do I create a keyword research workflow?"
π¨βπ» If you're a developer:
- Open JupyterLab tab and run the introduction notebook
- Check out
plugins/010_introduction.py
to see workflow code structure - Try creating a simple workflow:
python helpers/workflow/create_workflow.py
π€ If you're an AI assistant:
- Focus on the Quick Reference Card above
- Study the Critical Implementation Patterns section
- Review
mcp_tools.py
for MCP protocol capabilities
π If you're just exploring:
- Click through the left menu items to see different workflow types
- Ask the AI chat: "What can I build with Pipulate?"
- Try the Introduction workflow to see the step-by-step experience
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.
Pipulate chooses durable foundations:
- Linux Kernel: Version 6 in 30 years
- Python: Version 3 in 30 years
- HTML: Version 5 and stable
- HTTP: Version 3 and backward compatible
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:
- π¬ Jupyter Notebooks promote explicit, literate programming
- π€ AI assistants excel at managing repetitive code
- π Local-first architectures prioritize clarity over enterprise complexity
- π― Right Granularity: WET provides the perfect abstraction level for human AND AI comprehension
________________________________
- 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βοΈ| |<- - - - -. . . - MCP tool-call control
| _/ Nix \____\_____ | | |------------------| | / ) | - Browser as bot's body
| | | | | | Workflow | Local | | ' _.' |
| | Pipulate <---------> -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:
- π Observable: See exactly what's happening at every step
- π§ Customizable: Modify workflows without breaking abstractions
- π€ AI-Friendly: Clear code that AI assistants can easily understand and maintain
- π Future-Proof: Built on durable web standards that won't become obsolete
Nix Environment Activation: Always run nix develop
from the ~/pipulate
directory before running any project commands (python server.py
, pip install
, etc.) in a new terminal. This ensures you are using the correct dependencies defined in flake.nix
.
Interactive vs. Quiet Shell:
Standard Shell: nix develop
(or 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:
- Running specific commands without starting the servers (e.g.,
nix develop .#quiet --command python -c "import pandas"
). - Debugging or interacting with AI assistants where verbose startup output is undesirable.
- Manually running
run-server
orrun-jupyter
(scripts placed in.venv/bin
by theshellHook
).
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 β
ββββββββββββββββββββ ββββββββββββββββββββ
Pipulate manages all state server-side within the local environment (think local-server cookies), with optional cloud integration as needed. This approach offers:
- Privacy & Control: Data stays local by default, cloud integration when you choose.
- Full Resource Access: Utilize local CPU/GPU freely for intensive tasks, plus cloud APIs for heavy lifting.
- Simplicity: Eliminates complexities of multi-tenancy while supporting both local and cloud workflows.
- Observability: State changes (via DictLikeDB/JSON) are transparent and easily logged (AI greps it there).
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!
βββββββββββββββββββββββββββββββββ
The UI is constructed primarily with server-rendered HTML fragments delivered via HTMX. This minimizes client-side JavaScript complexity.
- FastHTML generates HTML components directly from Python.
- HTMX handles partial page updates based on user interactions, requesting new HTML snippets from the server.
- WebSockets and Server-Sent Events (SSE) provide real-time updates (e.g., for chat, live development reloading).
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).
- Resumable & Interrupt-Safe: Because each step's completion is recorded, workflows can be stopped and resumed.
- Explicit State Flow: Data typically passes from one step's output (
done
field) to the next via thetransform
function, simplifying debugging. Patterned on Unix pipes. - Good Training Data: The structured input/output of each step creates valuable data for potentially fine-tuning models.
- Proprietary Friendly: Excellent for proprietary domain-experts and fields (competing academic, finances) who resist letting their data flow onto the Web for general AI training.
βββββββββββ βββββββββββ βββββββββββ - 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
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 π«π.
Integration with a local Ollama instance provides AI capabilities without external API calls:
- Privacy: Prompts and responses stay local.
- Cost-Effective: No per-token charges; run continuously using local resources.
- Streaming Support: Real-time interaction via WebSockets.
- Bounded Context: Manages conversation history effectively.
- App State Awareness: Grepping your server log reveals full application state.
- Tool Calling: Local LLM is an MCP client with a growing list of abilities
- Workflow assistance
- Browser automation
- Debugging
ββββββββββββββββββββ
β 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
ββββββββββββββββββββ
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
The application interface is organized into distinct areas:
βββββββββββββββββββββββββββββββ
β Navigation βββ Search, Profiles,
βββββββββββββββββ¬ββββββββββββββ€ Apps, Settings
β β β
Workflow, βββΊ Main Area β Chat β
App UI β (Pipeline) β Interface βββ LLM Interaction
β β β
βββββββββββββββββββββββββββββββ
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']
Navigation Updates:
#profile-dropdown-menu
- Profile menu refresh target#app-dropdown-menu
- App menu refresh target#search-results-dropdown
- Live search results#nav-flyout-panel
- Settings flyout panel
Content Areas:
#grid-left-content
- Main workflow display area#msg-list
- Chat conversation historybody
- Full page navigation refreshes
Interactive Elements:
#nav-plugin-search
- Real-time plugin search (300ms delay)#send-btn
/#stop-btn
- Chat control buttons#scroll-to-top-link
- Scroll navigation aid
This structure enables AI assistants to programmatically interact with all UI components using semantic selectors and ARIA landmarks.
.
βββ .cursor/ # Bootstraps Radical Transparency (teaches AI to fish)
β βββ rules/ # Framework rules (01_CRITICAL_PATTERNS.mdc, etc.)
βββ .venv/ # Common Python environment for FastHTML, Jupyter & Cursor
βββ browser_automation/ # 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
βββ common.py # Base Class for DRY CRUD plugin app inheritance (todo)
βββ data/
β βββ data.db # AI-accessible SQLite for application state (server cookies)
βββ downloads/ # Default location for workflow outputs (e.g., CSVs)
βββ helpers/
Β Β βΒ Β βββ botify
Β Β βΒ Β βΒ Β βββ botify_api.ipynb # Git managed massive example notebook, produces docs
Β Β βΒ Β βββ workflow # Workflow workshop, lots of tools that make WET DRY
Β Β βΒ Β βΒ Β βββ create_workflow.py # Example of what might be found there
β βββ prompt_foo.py # Bundles XML code payloads for massive 1-shot AI prompts
βββ logs/
Β Β βΒ Β βββ server-1.log # N-rotations of server log per run per config
β βββ server.log # The server log of most recent run, contains app state
βββ /assets/ # JS, CSS, images, icons
βββ plugins/ # Workflow plugins (010_introduction.py, 400_trifecta.py, etc.)
βββ pyproject.toml # Python packaging configuration and metadata
βββ training/ # Markdown files for AI context/prompts
βββ vulture_whitelist.py # Code analysis whitelist for unused code detection
βββ flake.nix # Infrastructure as Code & all system-versions for AI
βββ LICENSE # It's MIT
βββ install.sh # "Magic cookie" installation script (curl | sh)
βββ mcp_tools.py # MCP protocol tools - the AI assistant interface
βββ notebook_introduction_local.ipynb # Editable (non-auto-updating) copy of hello.ipynb
βββ README.md # This file
βββ requirements.txt # Python dependencies (managed by Nix)
βββ server.py # Main application entry point
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:
- Form Submission: POSTs to
/{APP_NAME}/init
with emptypipeline_id
- Server Response: The
init
method MUST return anHX-Refresh
response: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 callspip.generate_pipeline_key(self)
to populate the input field - User Interaction: User hits Enter again to start the workflow
Pipulate uses HTMX-driven step progression powered by the brilliantly named run_all_cells()
method:
- Initial Trigger: After
init
, therun_all_cells()
method initializes the workflow just like Jupyter's "Run All Cells" - Perfect Mental Model: The method name creates immediate understanding β workflows execute top-to-bottom like notebook cells
- Step Handlers: Each step has GET (display) and POST (submit) handlers
- Automatic Progression: Completed steps trigger next step with
hx_trigger="load"
- State Persistence: Each step stores data in pipeline state
- Pedagogical Brilliance: The naming makes the system instantly intuitive for developers and AI assistants
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:
- Filename (e.g.,
200_workflow_genesis.py
): Determines public URL endpoint and menu ordering - APP_NAME Constant (e.g.,
APP_NAME = "workflow_genesis_internal"
): Internal identifier that MUST REMAIN STABLE
- State stored as JSON blobs in pipeline table
- Accessed via
pip.get_step_data()
andpip.set_step_data()
- All state changes are transparent and observable
π PLUGIN DISCOVERY SYSTEM
plugins/
βββ 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
plugins/
directory are auto-discovered - Numeric prefixes control menu ordering
- Classes must have
landing
method and name attributes - Automatic dependency injection based on
__init__
signature
Pipulate includes sophisticated helper scripts for workflow development:
Creates new workflows from templates:
python create_workflow.py workflow.py MyWorkflow my_workflow \
"My Workflow" "Welcome message" "Training prompt" \
--template trifecta --force
Adds steps to existing workflows:
python splice_workflow_step.py workflow.py --position top
python splice_workflow_step.py workflow.py --position bottom
ποΈ 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 steptrifecta
: Three-step workflow pattern- Automatic method generation and insertion
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:
- Atomic Sources: Battle-tested workflows become component libraries
- Pattern Matching: Intelligent detection via
_process
,preview
patterns - AST Transplantation: Surgical precision without syntax errors
- Complete Lifecycle: Development β Testing β Production β Cleanup
# 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
- 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
# 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)
plugins/ # 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
common.py # Base classes for workflows
browser_automation/ # Selenium automation tools
logs/server.log # Debug everything here
data/data.db # SQLite application state
π¨ 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:
- Missing HX-Refresh Response: Forgetting to return the refresh response for empty keys
- Incorrect Key Generation: Not using
pip.generate_pipeline_key(self)
properly - Missing Cursor Positioning: Forgetting the
_onfocus
attribute for user experience - Wrong Route Handling: Not understanding the difference between landing page and init routes
- State Inconsistency: Not properly handling the key generation and storage flow
- APP_NAME Changes: Modifying APP_NAME after deployment, orphaning existing data
- Chain Reaction Breaks: Not properly implementing the HTMX step progression pattern
These "speedbumps" reinforce Pipulate's core philosophy:
- Local vs. Enterprise Mindset: Embrace local-first simplicity. Avoid patterns designed for distributed, multi-tenant systems.
- JSON State Management (Workflows): Keep workflow state in self-contained steps within a single JSON blob per run. Avoid complex state machines or external step tracking.
- Database (MiniDataAPI): Use the simple schema definition and access patterns provided. Avoid heavy ORMs.
- Workflow Pattern: Ensure workflows are linear and state is explicitly passed or saved at each step. Avoid complex async task chaining that obscures state.
- UI Rendering Pattern: Generate HTML directly from Python components via FastHTML. Avoid template engines.
- WebSocket Pattern: Use the dedicated
Chat
class for managing LLM interactions. Avoid raw WebSocket handling elsewhere. - Workflow Progression Pattern: Workflows use an explicit chain reaction pattern with
hx_trigger="load"
to manage step progression. This pattern must be preserved exactly as implemented. See the workflow documentation for details.
- Monitoring: A file system watchdog monitors code changes. Valid changes trigger an automatic, monitored server restart via Uvicorn, facilitating live development.
βββββββββββββββ ββββββββββββββββ
β File System β Changes β AST Syntax β Checks Code
β Watchdog β Detects β Checker β Validity
ββββββββ¬βββββββ βββββββββ¬βββββββ
β Valid Change β
βΌ βΌ
βββββββββββββββββββββββββββββ ββββββββββββ
β Uvicorn Server βββββ β Reload β Triggers Restart
β (Handles HTTP, WS, SSE) β β Process β
βββββββββββββββββββββββββββββ ββββββββββββ
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
Pipulate represents more than technology choices β it's a statement about computing sovereignty and the future of human-AI collaboration.
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.
Remember the guiding principles:
- Keep it simple.
- Support local-first with cloud integration options.
- Embrace the unconventional while remaining practical.
- Choose durable foundations that work with any approach.
- Build for both human creativity and AI collaborationβlocal or cloud.
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.
- Numeric Prefixes: Files like
workflows/10_hello_flow.py
are registered ashello_flow
(number stripped for internal name, used for menu order). - Parentheses Skip: Files with
()
in the name (e.g.,hello_flow (Copy).py
) are skipped β useful for temporary copies during development. xx_
Prefix Skip: Files prefixed withxx_
(e.g.,xx_experimental_flow.py
) are skipped β useful for keeping unfinished work in the plugin directories without activating it.
- Copy: Copy a template to
my_flow (Copy).py
. - Modify: Develop your workflow. It won't auto-register yet.
- Test: Rename to
xx_my_flow.py
. The server should auto-reload. Test thoroughly. - Deploy: Rename to
##_my_flow.py
to assign menu order and activate.
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"
This README serves as the upstream source of truth for all Pipulate documentation across GitHub, Pipulate.com, and the built-in app documentation. Changes made here automatically cascade to all other documentation surfaces.
π THE UPSTREAM TRUTH CASCADE
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Source Code Reality (The Ultimate Truth)
β
βΌ
π README.md (Single Source of Truth)
ββ ASCII Art Blocks (Visual Truth)
ββ HTML Comment Keys (Metadata)
ββ 80-Hyphen Pagination (Structure)
β
ββββββββββββββββΌβββββββββββββββββββ
βΌ βΌ βΌ
π GitHub Page π Pipulate.com π§ Built-in Docs
(Auto-display) (Jekyll Build) (Live Integration)
β β β
βΌ βΌ βΌ
π Screenshots π¬ Demos π§ͺ Tests
(Future) (Future) (Future)
How it works:
- ASCII Art Blocks: Visual diagrams are automatically extracted and distributed to other documentation files
- HTML Comment Keys: Headlines marked with
<!-- key: identifier -->
serve as reference anchors - 80-Hyphen Pagination: Section dividers enable automatic document structuring
- Automatic Synchronization: Running
python helpers/docs_sync/sync_ascii_art.py
updates all documentation
This creates "ASCII art peer pressure" β when visual diagrams change, they compel surrounding text to be updated for consistency, ensuring documentation accuracy across the entire ecosystem.
Core & Workflow Enhancements:
- Dev, Test, and Prod database switching
- Saving source HTML and rendered DOM of any URL
- Botify data export CSV save (incorporating robust polling)
- Full web form field support (textarea, dropdown, checkboxes, radio buttons)
- Generic support for Anywidgets
- Utility for deleting garbage tables from plugin experimentation
AI / LLM Integration:
- LLM inspection of any local data object (RAG-style functionality)
- Various memory types for LLM context (vector embedding, graph, key/val-store)
- Enabling the local LLM to be an MCP Client
Automation & External Interaction:
- MCP Server for automated web browsing and similar tasks
THEMES
- Okaidia ocodia 1.77KB
LANGUAGES
- CSS1.71KB
- Markup + HTML + XML + SVG + MathML + SSML + Atom + RSS4.64KB
- C-like0.83KB
- JavaScript6.18KB
- Bash + Shell + Shell zeitgeist87 8.96KB
- Diff uranusjr 1.33KB
- JSON + Web App Manifest CupOfTea696 0.58KB
- JSON5 RunDevelopment 0.52KB
- JSONP RunDevelopment 0.23KB
- Liquid cinhtau 2.56KB
- Lua Golmote 0.74KB
- Markdown Golmote 10.43KB
- Markup templating
- Mermaid RunDevelopment 3.03KB
- Nix Golmote 1.47KB
- Python multipetros 2.45KB
- Regex RunDevelopment 2.33KB
- YAML hason 3.11KB
PLUGINS
- Line Highlight11.66KB
- Line Numbers kuba-kubula 7.23KB
- Toolbar mAAdhaTTah 5.63KB
Contributions are welcome! Please adhere to the project's core philosophy:
- Maintain Local-First Simplicity (No multi-tenant patterns, complex ORMs, heavy client-side state).
- Respect Server-Side State (Use DictLikeDB/JSON for workflows, MiniDataAPI for CRUD).
- Preserve the Workflow Pipeline Pattern (Keep steps linear, state explicit).
- Honor Integrated Features (Don't disrupt core LLM/Jupyter integration unless enhancing local goals).
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 AI SEO Software
On GitHub: Pipulate on GitHub