Uncomplicate JavaScript



All your favorite tools, built-in and ready to go
type User = { name: string; balance: number };
function getBalance(user: User): string {
return `Balance: $${user.balance.toFixed(2)}`;
}
console.log(getBalance({ name: "Alice", balance: 42 }));
$ deno run account.tsBalance: $42.00$ deno checkCheck account.ts✅ Type check successful
Just run 
.ts files directly with built-in type checking and compilation—no additional tooling or configuration required!Seamless 
package.json automatically, or you can import packages from npm directly.import { Hono } from "hono";
const app = new Hono();
app.get("/", (c) => {
return c.text("Hello Hono!");
});
Deno.serve(app.fetch);import { Hono } from "npm:hono@4";
const app = new Hono();
app.get("/", (c) => {
return c.text("Hello Hono!");
});
Deno.serve(app.fetch);Built on web standards
Consistent code from browser to backend
Batteries included
The essential tools you need to build, test, and deploy your applications are all included out of the box.
Code linter
Deno ships with a built-in code linter to help you avoid bugs and code rot.
Learn more$ deno lint --watchTest runner
Deno 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 executables
Instantly create standalone executables from your Deno program. It even supports cross-compiling for other platforms!
Learn moreDeno.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 formatter
Deno's built-in code formatter (based on dprint) beautifies JavaScript, TypeScript, JSON, and Markdown.
Learn more$ deno fmt --line-width=120Secure by default
Prevent supply chain attacks
Stop 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 accessExitedHigh-performance networking
- HTTPS (encryption)
- WebSocket
- HTTP2
- Automatic response body compression
Requests per second*
More is better
Built for the cloud
Deno runs on
— The cloud built for modern JavaScript —
Project hosting made for Deno
Unlock the full power of Deno
Built for anything built with JavaScript
Get the most out of Deno with Fresh 2.0
Build fast sites fast
export default function HomePage() {
return (
<div>
<h1>HTML fresh from the server!</h1>
<p>
Delivered at
{new Date().toLocaleTimeString()}
</p>
</div>
);
}import { useSignal } from "@preact/signals";
export default function Counter() {
const count = useSignal<number>(0);
return (
<button onClick={() => count.value += 1}>
The count is {count.value}
</button>
);
}
Ship less JavaScript
“I knew this was gonna happen! Deno is truly building the fastest, most secure and personalizable JS runtime!”
“Deno's security model is PERFECT for this type of script. Running a script from a rando off the internet? It asks for read access to only the CWD and then asks for access to the file it wants to write to. 👏”
“I really think Deno is the easiest and most capable JS runtime. URL imports are slept on.”
“npm packages in Deno 👀 That’s an exciting development for those of us building at the edge.”
“This Deno thing is fast, no doubt about it. #denoland”
“Deno: I have to use the browser APIs cause they are everywhere, and everywhere is my target runtime (the web). The runtime that tries to mirror browser APIs server side makes my life easiest.”
“Deno is fantastic. I am using it to level up a bit in terms of JavaScript and TypeScript and it is the easiest way to get going. Their tooling is like 100x simpler than all the usual Node stacks.”
