A Secure Runtime for JavaScript and TypeScript Built with V8, Rust, and Tokio
Deno, the next-generation JavaScript runtime
Install Deno v2.0.5curl -fsSL https://deno.land/install.sh | shNative TypeScript supportThe Deno runtime natively supports TypeScript, JSX, and modern ECMAScript features with zero configuration.Modern language features, built-inBuilt on web standardsWhenever possible, Deno implements web standard APIs on the server. Deno actively participates in TC39 and WinterCG to help move the web forward.Consistent code from browser to backendDeno prioritizes web standard APIs, maximizing code reuse between browser and server and future-proofing your code.Batteries includedThe essential tools you need to build, test, and deploy your applications are all included out of the box.Code linterDeno ships with a built-in code linter to help you avoid bugs and code rot.Learn more Test runnerDeno provides a test runner and assertion libraries as a part of the runtime and standard library.Learn more // server_test.ts
Deno.test("1 + 2 = 3", () => {
  const x = 1 + 2;
  console.assert(x == 3);
});$ deno test server_test.tsStandalone executablesInstantly create standalone executables from your Deno program. It even supports cross-compiling for other platforms!Learn more Deno.serve(req => new Response("Hello!"));$ deno compile --allow-net server.ts

Compile file:///tmp/server.ts to server
$ ./server
Listening on http://localhost:8000/Code formatterDeno's built-in code formatter (based on dprint) beautifies JavaScript, TypeScript, JSON, and Markdown.Learn more $ deno fmt --line-width=120Secure by defaultA program run with Deno has no file, network, or environment access unless explicitly enabled.Prevent supply chain attacksStop worrying about npm modules introducing unexpected vulnerabilities. Deno restricts access to the file system, network, and system environment by default, so code can access only what you allow.Other runtimes$ node random.jsExecuting random.js...🚨 File system compromised!Deno$ deno random.js⚠️ Deno requests write accessAllow? [y/n/A]$ n❌ Denied write accessExitedBackwards compatible with Node.jsDeno's Node.js compatibility layer means you can bring the best of the Node ecosystem with you to Deno.Compatible with millions of npm modulesInclude modules from npm in your Deno projects using npm:specifiers.High-performance networkingOut of the box support for:HTTPS (encryption)WebSocketHTTP2Automatic response body compressionGo further with Deno cloud productsProducts built on Deno to help you deploy TypeScript and JavaScript easily and securely at any scale.Deno DeployFor developers looking for the simplest way to host web apps and APIsFully managed serverless solutionGlobally distributedBuilt-in key/value database, queues, cron, and moreIntegrated directly with GitHubDeno SubhostingFor SaaS companies looking to run user code securelySecure sandboxed functionsAutomatic scaling and provisioningGlobally distributedManage via a simple APIThe Freshest web frameworkFresh is a server-rendered web framework for Deno, built with Preact for blazing speed and instant productivity.Build fast sites fastAuthor routes as the JSX (or TSX) components you already know and love, and Fresh handles dynamic server-side rendering by default.Ship less JavaScriptIsland-based architecture lets you opt in to only the JavaScript you need, for absolutely minimal runtime overhead.Ready to get started with Deno?