# Windmill

> Turn scripts into APIs, scheduled jobs, workflows, and auto-generated UIs

- Category: App UIs & Builders / Low-Code & No-Code Builders
- Language: TypeScript
- Licence: AGPL-3.0
- Repository: https://github.com/windmill-labs/windmill
- Website: https://www.windmill.dev
- Canonical page: https://ai-tldr.dev/tools/windmill/

## In short

Windmill is an open-source developer platform for internal tooling. It sits in the Low-Code & No-Code Builders category of the App UIs & Builders tools and is open-source, written in TypeScript and licensed AGPL-3.0. To get started: self-host with Docker Compose.

## Overview

Windmill is an open-source developer platform for internal tooling. You write small scripts in Python, TypeScript, Go, Bash, SQL, and other languages, and Windmill turns each one into an API, a background job, a step in a workflow, or a generated form UI. It is self-hostable and licensed under AGPLv3, with Windmill Labs offering dedicated instances and commercial support.

It is aimed at developers and platform teams who want to keep logic in real code but still get the convenience of a low-code builder. Script parameters are parsed automatically to create a frontend, scripts can be chained into flows, and you can build richer apps on top of them with a visual editor. The project positions itself as a self-hostable alternative to tools like Retool, Pipedream, and Superblocks, and a simplified take on Temporal.

In the workflow automation category, Windmill sits between writing standalone services and using a no-code builder. You can author scripts in its web IDE or sync them from a Git repository, then trigger flows and scripts via schedules, webhooks, HTTP routes, Kafka, WebSockets, emails, and more.

## What it does

- Supports many languages for scripts: Python, TypeScript, Go, Bash, SQL, GraphQL, PowerShell, Rust, and more
- Auto-generates a frontend from your script's parameters, so each script becomes a shareable UI
- Compose scripts into flows, including community scripts shared on WindmillHub
- Build complex internal apps on top of scripts and flows with a low-code app editor
- Trigger scripts and flows via schedules, webhooks, HTTP routes, Kafka, WebSockets, and emails
- Develop locally with the CLI, a VS Code extension, and two-way Git sync

## Getting started

You can try the hosted app at app.windmill.dev, or self-host with Docker Compose. Here is the path to a first script.

1. Self-host with Docker Compose

   Windmill is self-hostable. The README documents Docker Compose and Kubernetes (Helm charts) as the supported deployment methods; start with the official Compose file from the repo.

```bash
docker compose up -d
```

2. Write a script

   Define a main function in the web IDE. Parameters are parsed automatically to generate a UI, and the return value is serialized as JSON. This TypeScript example is from the README.

```ts
//import any dependency from npm
import * as wmill from "windmill-client";
import * as cowsay from "cowsay@1.5.0";

export async function main(
  a: number,
  b: "my" | "enum",
  d = "inferred type string from default arg",
  e = { nested: "object" }
) {
  const email = process.env["WM_EMAIL"];
  // variables are permissioned and by path
  let variable = await wmill.getVariable("f/company-folder/my_secret");
  const lastTimeRun = await wmill.getState();
  console.log(cowsay.say({ text: "hello " + email + " " + lastTimeRun }));
  await wmill.setState(Date.now());
  return { foo: d, variable };
}
```

3. Compose flows and apps

   Chain scripts into a flow with the flow editor, reuse community scripts from WindmillHub, and build richer internal apps on top with the app editor.

## When to use it

- Build internal admin tools and dashboards as a self-hostable alternative to Retool or Superblocks
- Run scheduled background jobs and cron-style automations from scripts
- Expose existing Python or TypeScript scripts as APIs and webhook endpoints
- Orchestrate multi-step workflows that chain scripts together, similar to Pipedream or a simplified Temporal
