Deno
Overview
Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults and a focus on developer experience. It is built on V8, Rust, and Tokio, and ships with built-in tooling (formatter, linter, test runner, bundler). Unlike Node, code runs sandboxed: file, network, and environment access must be explicitly granted. Read this when you want first-class TypeScript and an opt-in permission model.
Official sources
Install / setup
macOS & Linux (from the official installation page):
curl -fsSL https://deno.land/install.sh | sh
Windows (PowerShell):
irm https://deno.land/install.ps1 | iex
Verify the install:
deno --version
Core concepts
- Secure by default: file, network, and env access require explicit flags (e.g.
--allow-net, --allow-read).
- First-class TypeScript — run
.ts directly with no separate build step.
- Built-in tooling:
deno fmt, deno lint, deno test, deno bundle, and deno compile.
- Web-standard APIs (
fetch, URL, Web Streams) plus a Node.js compatibility layer (node: specifiers, npm specifiers).
- Modules are loaded by URL/specifier; dependencies and tasks are configured in
deno.json.
Best practices
- Grant the narrowest permissions needed (specific paths/hosts) rather than blanket
--allow-all.
- Pin dependency versions and use a lockfile for reproducible builds.
- Use the built-in
deno fmt/deno lint/deno test instead of adding external tooling where possible.
- Prefer web-standard APIs for portability across runtimes and edge platforms.
Common pitfalls
- Running with
--allow-all and losing the security benefit → scope permissions explicitly.
- Expecting full Node API parity → consult the Node compatibility docs for unsupported modules.
- Forgetting that remote imports execute with the granted permissions → review and pin third-party module sources.
Examples
// run with: deno run --allow-net server.ts
Deno.serve({ port: 3000 }, (_req) => {
return new Response('Hello from Deno');
});
Further reading
Related skills
- ../node — the runtime Deno's Node-compat layer targets
- ../bun — alternative fast JS/TS runtime
1---2name: deno3description: Deno — a secure-by-default JS/TS/WebAssembly runtime with built-in tooling (fmt, lint, test) and explicit permissions. Consult for secure JS/TS runtimes.4domain: stack5category: runtime6tags: [deno, javascript, typescript, webassembly, runtime, security]7official_sources:8 - https://docs.deno.com/9 - https://github.com/denoland/deno10verified: 2026-06-1611metadata:12 source: https://skillmd.com/skills/gabriel7silva/deno13---1415# Deno1617## Overview18Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults and a focus on developer experience. It is built on V8, Rust, and Tokio, and ships with built-in tooling (formatter, linter, test runner, bundler). Unlike Node, code runs sandboxed: file, network, and environment access must be explicitly granted. Read this when you want first-class TypeScript and an opt-in permission model.1920## Official sources21- Docs: https://docs.deno.com/22- Repo: https://github.com/denoland/deno23- Install / download: https://docs.deno.com/runtime/getting_started/installation/2425## Install / setup26macOS & Linux (from the official installation page):2728```bash29curl -fsSL https://deno.land/install.sh | sh30```3132Windows (PowerShell):3334```powershell35irm https://deno.land/install.ps1 | iex36```3738Verify the install:3940```bash41deno --version42```4344## Core concepts45- Secure by default: file, network, and env access require explicit flags (e.g. `--allow-net`, `--allow-read`).46- First-class TypeScript — run `.ts` directly with no separate build step.47- Built-in tooling: `deno fmt`, `deno lint`, `deno test`, `deno bundle`, and `deno compile`.48- Web-standard APIs (`fetch`, `URL`, Web Streams) plus a Node.js compatibility layer (`node:` specifiers, npm specifiers).49- Modules are loaded by URL/specifier; dependencies and tasks are configured in `deno.json`.5051## Best practices52- Grant the narrowest permissions needed (specific paths/hosts) rather than blanket `--allow-all`.53- Pin dependency versions and use a lockfile for reproducible builds.54- Use the built-in `deno fmt`/`deno lint`/`deno test` instead of adding external tooling where possible.55- Prefer web-standard APIs for portability across runtimes and edge platforms.5657## Common pitfalls58- Running with `--allow-all` and losing the security benefit → scope permissions explicitly.59- Expecting full Node API parity → consult the Node compatibility docs for unsupported modules.60- Forgetting that remote imports execute with the granted permissions → review and pin third-party module sources.6162## Examples63```ts64// run with: deno run --allow-net server.ts65Deno.serve({ port: 3000 }, (_req) => {66 return new Response('Hello from Deno');67});68```6970## Further reading71- Getting started: https://docs.deno.com/runtime/getting_started/72- Permissions: https://docs.deno.com/runtime/fundamentals/security/7374## Related skills75- ../node — the runtime Deno's Node-compat layer targets76- ../bun — alternative fast JS/TS runtime