Windmill: Open-source developer platform to turn scripts into workflows and UIs
Hello, founder here. Thank you for submitting Windmill. We&#x27;re really close from hitting v2 (adding multiplayer with yjs is our last milestone) and would have waited a bit before submitting but here we go.<p>We are fully open-source (AGPLv3) with just one ee plugin for syncing the cache of the workers at large scale (more on that below). You can deploy it on a small ec2 instance with our docker-compose or on very large clusters with our helm charts: <a href="https:&#x2F;&#x2F;docs.windmill.dev&#x2F;docs&#x2F;advanced&#x2F;self_host">https:&#x2F;&#x2F;docs.windmill.dev&#x2F;docs&#x2F;advanced&#x2F;self_host</a><p>We are an onion of 3 layers, which are usually separated verticals and the closest services we replace in each vertical are: Lambda + n8n&#x2F;temporal + Retool:<p>- Workers implemented in Rust that can run any scripts from source in python&#x2F;typescript(deno)&#x2F;go&#x2F;bash. They are extremely efficient, with most typescript scripts being able to run in 40ms e2e. This can be seen as a self-hosted lambda except it works very differently. Lambdas spawn microvms using firecracker and launch http servers within those micro-vms. We run the scripts bare (with isolation using nsjail on our multi-tenant instance) but cache very aggressively the dependencies. For instance, in python we analyze the dependencies using the AST: <a href="https:&#x2F;&#x2F;github.com&#x2F;windmill-labs&#x2F;windmill&#x2F;blob&#x2F;main&#x2F;backend&#x2F;parsers&#x2F;windmill-parser-py&#x2F;src&#x2F;lib.rs">https:&#x2F;&#x2F;github.com&#x2F;windmill-labs&#x2F;windmill&#x2F;blob&#x2F;main&#x2F;backend&#x2F;...</a>, infer the dependencies from there, have them go through pip-compile to generate a lockfile (and cache the result), then create a pathset similar to how virtualenv behave with the version of each dependency locked. For typescript, we leverage the very well made immutable deno cache. The cache works well but if you scale your cluster to more than 10 workers, the likelihood of having your worker see dependencies for the first time increase, which is why we reimplemented a pip scheme backed by s3 that is extremely fast (we do not compress, just tar individual wheels and s3 is very fast on local networks). For all the supported languages, we parse the signatures of the main function to infer the corresponding json schema of the payload to trigger them, and from that jsonschema we can then generate automatically the UI and infer the input shape required in the flows for that particular step.<p>- A workflow engine re-implemented from scratch which can be seen as a distributed FSM and whose state is stored in postgresql and every transition done through postgres transactions. Every worker is picking a job and progressing the fsm at completion. The full spec is at: <a href="https:&#x2F;&#x2F;docs.windmill.dev&#x2F;docs&#x2F;openflow">https:&#x2F;&#x2F;docs.windmill.dev&#x2F;docs&#x2F;openflow</a>. We support branches, for loop, suspend&#x2F;sleep, approval steps, sharing the same folder between steps and everything you would expect from a temporal like engine (retries, error handlers).<p>- A dashboard&#x2F;app builder that is very similar to Retool but much faster because it&#x27;s implemented in Svelte and which can also run python scripts directly leveraging the 1st layer. We also support full react apps: <a href="https:&#x2F;&#x2F;github.com&#x2F;windmill-labs&#x2F;windmill-react-template">https:&#x2F;&#x2F;github.com&#x2F;windmill-labs&#x2F;windmill-react-template</a><p>We have a CLI that allows you to sync from github directly: <a href="https:&#x2F;&#x2F;github.com&#x2F;windmill-labs&#x2F;windmill-sync-example">https:&#x2F;&#x2F;github.com&#x2F;windmill-labs&#x2F;windmill-sync-example</a> or your local filesystem. Our scripts are absolutely normal scripts so there is no lock-in, and they are executable locally <a href="https:&#x2F;&#x2F;docs.windmill.dev&#x2F;docs&#x2F;advanced&#x2F;local_development">https:&#x2F;&#x2F;docs.windmill.dev&#x2F;docs&#x2F;advanced&#x2F;local_development</a> so you do not have to use our webeditor if you do not want to but our editor supports pyright and deno lsp through our dedicated backend communicating to monaco using websockets.<p>We also support worker groups to run some jobs on hardware accelerated machines (GPU) and a lot of other features (oauth syncing of the resources, schedules, granular permissioning, groups and folders).<p>Every script&#x2F;flow deployed has a dedicated webhook endpoint to run synchronously and asynchronously. Scripts are never overwritten, they keep a lineage of hash for each version and have per-hash dedicated webhook to ensure their behavior never change.<p>We also have a hub for sharing re-usable scripts <a href="https:&#x2F;&#x2F;hub.windmill.dev">https:&#x2F;&#x2F;hub.windmill.dev</a> to be used in flows to have some of the same convenience you can find in Pipedream or Zapier.<p>Our closest alternative would be Airplane.dev, but they&#x27;re not open-source, not self-hostable air-gapped, less performant, less-featured and much more expensive. You can self-host us fully free.<p>We are used in production at scale in clusters of 50 nodes+ and thanks to the reliability of Rust and Postgresql have had no downtime to report.<p>I&#x27;m a solo founder, YC S22. The MVP got some attention at the very beginning: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31272793" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31272793</a> but was very bare. Now we&#x27;re ready to bring this to the next level and enable all engineers to spend more time building and less time reinventing the wheel thanks to it :)