---
title: "How immutable scripts in Deno allow Windmill.dev (YC S22) to build production-grade ops"
description: "Windmill.dev, an open-source platform for building internal workflows and UIs from scripts, runs TypeScript on Deno because inline, version-pinned imports make each script a self-contained, reproducible file that is hashed immutably and stored in Postgres."
url: "https://swe.quest/articles/how-immutable-scripts-in-deno-allow-windmill-dev-yc-s22-to-build-production-db6cb3961bcb6bf5"
canonical: "https://deno.com/blog/immutable-scripts-windmill-production-grade-ops"
source: "Deno"
published: "2023-05-18"
difficulty: "easy"
kind: "Case study"
reading_minutes: 3
tags: ["typescript","sandboxing","multi-tenancy","performance"]
---

# How immutable scripts in Deno allow Windmill.dev (YC S22) to build production-grade ops

A post on [Deno](https://swe.quest/sources/deno.md), published 2023-05-18, 3 min read, Case study. Original: [https://deno.com/blog/immutable-scripts-windmill-production-grade-ops](https://deno.com/blog/immutable-scripts-windmill-production-grade-ops)

## Summary

Windmill.dev, an open-source platform for building internal workflows and UIs from scripts, runs TypeScript on Deno because inline, version-pinned imports make each script a self-contained, reproducible file that is hashed immutably and stored in Postgres. Deno's opt-in permission model isolates untrusted code in a multi-tenant setting with less overhead than the NSJail sandboxing used for other languages. Dependency caching synced across workers via S3 gives roughly 15ms cold starts and about 30ms end-to-end runs for lightweight scripts, and the team plans to run Deno in-process to approach Lambda-level performance.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- TypeScript basics ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))

## Keywords

Deno, Windmill, NSJail, V8, S3, Postgres

## Related posts

- [How we built a secure, performant, multi-tenant cloud platform to run untrusted code](https://swe.quest/articles/how-we-built-a-secure-performant-multi-tenant-cloud-platform-to-run-untrusted-2ee4fd4f231472d5.md): Deno · 2024-05-17 · Medium · 10 min read · Multi-tenancy, Serverless, Sandboxing & isolation, CDN & edge, System design
  Deno Deploy runs untrusted JavaScript and TypeScript in pools of V8 isolates inside VMs called runners, split into a control plane for deployments and a data plane of edge regions.
- [Benchmarking AWS Lambda Cold Starts Across JavaScript Runtimes](https://swe.quest/articles/benchmarking-aws-lambda-cold-starts-across-javascript-runtimes-7eb1f21624996f8c.md): Deno · 2024-07-25 · Medium · 8 min read · Serverless, Performance engineering, Runtimes & VMs, JavaScript
  Across Express, Fastify and Hono URL-shortener apps deployed to AWS Lambda via Docker and the Lambda Web Adapter, Deno 1.45 showed lower cold-start Init Duration than Node 22 and Bun 1.1, with the Lambda-managed Node runtime included as a reference.
- [The Anatomy of an Isolate Cloud](https://swe.quest/articles/the-anatomy-of-an-isolate-cloud-63ec66f5321e5ffc.md): Deno · 2022-09-27 · Easy · 6 min read · Sandboxing & isolation, Multi-tenancy, Serverless, CDN & edge, Runtimes & VMs
  Deno Deploy runs untrusted user JavaScript in V8 isolates rather than VMs or containers, trading heavier isolation for much lower overhead and faster deploys.
- [Deno 1.24 Release Notes](https://swe.quest/articles/deno-1-24-release-notes-f57fe884dd776e93.md): Deno · 2022-07-21 · Medium · 9 min read · JavaScript, TypeScript, Runtimes & VMs, Performance engineering
  Deno 1.24 moves all TypeScript emitting to swc and caches type-check results, making \`deno check\` 20% faster cold and 70–90% faster on reruns for codebases like oak.
- [Self-contained Executable Programs with Deno Compile](https://swe.quest/articles/self-contained-executable-programs-with-deno-compile-1f904f454f37c8a8.md): Deno · 2024-11-14 · Medium · 5 min read · JavaScript, TypeScript, Build systems, Developer tools
  \`deno compile\` turns JavaScript and TypeScript programs into standalone binaries for Windows, macOS and Linux that run without Deno installed.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
