Deno
Deno Sessions: Deno 1.33 and Deno KV with Luca Casonato and Heyang Zhou
updated
Learn Deno in our new bite-sized tutorial series: deno.co/learn-deno
Deno is a modern, secure, all-in-one toolchain for writing JavaScript and TypeScript.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
Read more at Divy's blog: littledivy.com/deno-2
00:00 Intro
00:32 What is “op”?
01:26 “op2”?
02:43 Types
03:40 Example (basic slow)
05:36 Example (basic fast)
06:38 Example (error)
07:26 Example (permissions)
08:14 Example (state with Resource)
09:38 Example (state with Garbage collection)
10:53 Example (async)
11:40 Example (async lazy)
13:29 Example (events)
15:20 Debugging with —strace-ops
15:59 What’s next
Learn Deno in our new bite-sized tutorial series: deno.co/learn-deno
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Intro
01:51 Why JavaScript?
04:02 What is Deno?
05:30 Implementing Unix `ls` in Deno (demo)
13:41 Node:Deno cheatsheet
14:37 `deno compile` (demo)
16:57 What's new in Deno 2?
17:13 Ecosystem compatibility
18:00 Next.js with Deno (demo)
21:15 Importing npm with Deno (demo)
25:00 Package management with Deno
25:23 `deno install` demo with create next app
26:19 What is JSR?
28:21 Publishing a package to JSR (demo)
32:26 The Deno Standard Library
32:47 `@std/fs/walk` (demo)
36:04 TypeScript data viz on Jupyter notebooks (demo)
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
Read the blog post: deno.com/blog/v2.1
00:00 Intro
04:38 Long term support
10:10 First class Wasm support (demo)
19:18 Stack traces in permission prompts
22:10 Stack traces in permission prompts (demo)
27:30 `deno init --npm vite` (demo)
31:55 Improved CommonJS support (single line change to run Node projects with CJS in Deno)
35:22 `deno compile` with asset bundling (demo)
45:03 Improved dep management with `deno outdated` (demo)
49:39 Turbocharged `deno task` (demo)
Resources:
- https://leaves.chiba.dev/posts/345 Compile a fresh app to a binary
Read more: deno.com/blog/your-new-js-package-manager
Deno is an all-in-one zero config for developing JavaScript and TypeScript.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
deno.com/blog/build-database-app-drizzle
All code is here: github.com/denoland/examples/tree/main/with-drizzle
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to Running Deno on AWS Lambda
00:37 Setting Up the Docker Environment
01:01 Interfacing with AWS
01:11 Configuring AWS CLI
02:03 Creating and Pushing Docker Image to ECR
03:49 Creating the Lambda Function
04:36 Configuring the Lambda Function URL
05:07 Cold Start Performance and Conclusion
Source code:
github.com/MoonHighway/deno-2-course/tree/main/17-run-deno-on-aws-lambda
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to Deploying Deno Apps
00:37 Setting Up Docker Locally
01:15 Running the App with Docker
02:21 Creating and Using a Docker Config File
03:24 Deploying with Fly.io
04:40 Verifying the Production App
Source code:
github.com/MoonHighway/deno-2-course/tree/main/17-run-deno-with-docker
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to HTTP and Real-Time Data
00:20 Setting Up the WebSocket Server
02:01 Creating the WebSocket Client
04:28 Handling WebSocket Events
08:12 Deploying Your WebSocket Application
08:27 Use Cases for WebSockets
Source code:
github.com/MoonHighway/deno-2-course/tree/main/15-build-a-realtime-websocket-app
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
Learn more about Deno 2: deno.com/2
In this video, Ryan covers the newest features in Deno 2:
00:00 Intro
01:22 Demo: a program in a single file
05:54 All in one toolchain
06:28 DEMO: `deno compile`
08:02 Announcing Deno 2
09:21 DEMO: Next.js
11:41 Node and npm compatibility
14:45 Package management
15:40 DEMO: `deno install`
16:23 JSR
17:37 Deno standard library
18:41 DENO: JSR
24:43 Enterprise features
25:14 Private registries
25:37 Workspaces and monorepos
26:07 Long term support
27:05 Deno is fast
27:37 DEMO: `deno jupyter`
32:05 Outro
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Learn Deno in our new bite-sized tutorial series: deno.co/learn-deno
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to Deno's Standard Library
00:22 Setting Up the Command Line Tool
00:57 Installing and Using Standard Libraries
02:05 Building the Ski Resort Information App
03:17 Handling Command Line Arguments
05:06 Improving Error Handling
06:28 Adding Help and Color Output
08:24 Compiling the Tool for Different Platforms
github.com/MoonHighway/deno-2-course/tree/main/14-build-a-command-line-utility
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introducing the Hono Framework
00:21 Setting Up Hono in Your Project
00:47 Creating Basic Routes with Hono
01:34 Building a Simple Database
02:30 Interacting with localStorage
05:05 Creating REST API Routes
07:55 Handling PUT Requests
09:59 Implementing DELETE Functionality
11:23 Where to Deploy Your Hono Application
github.com/MoonHighway/deno-2-course/tree/main/13-restful-api-with-hono
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to Deno and Node.js Compatibility
00:25 Using Node.js Modules in Deno
00:43 Running Deno with Node.js Built-ins
01:02 Using npm Modules in Deno
01:25 Backward Compatibility and Deno Features
01:51 Running Node.js Scripts with Deno
Source code can be found here: github.com/MoonHighway/deno-2-course
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to Deno and TypeScript
00:19 Type Checking in Deno
01:03 Handy Deno Commands
02:14 Customizing TypeScript in Deno
03:19 Using JSX with Deno
03:53 Importing React in Deno
Source code can be found here: github.com/MoonHighway/deno-2-course
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
github.com/nextjs/deploy-deno
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to JSR Package Management
00:20 Creating and Running Tasks
01:06 Formatting and Linting Configuration
03:01 Handling Import Maps
03:52 Compatibility with Node.js
Source code can be found here: github.com/MoonHighway/deno-2-course
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to Deno and ECMAScript Modules
00:18 Setting Up Your Project
00:33 Importing and Exporting Modules
01:06 Using Relative Paths and File Extensions
01:28 Exporting Default and Other Data Types
01:56 Utilizing Import Meta
02:24 Importing from JSR and npm
04:00 Importing from URLs and Caching Modules
04:42 Understanding Deno's Cache System
Source code can be found here: github.com/MoonHighway/deno-2-course
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to JSR: The Modern JavaScript Registry
00:20 Exploring JSR Features and Benefits
00:49 Navigating the JSR Website
01:16 Using Libraries with JSR
02:09 Publishing Your Own JSR Package
04:47 Creating and Configuring a New Project with Vite
Source code can be found here: github.com/MoonHighway/deno-2-course
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to Deno and Web Standard APIs
00:37 Exploring Fetch API in Deno
01:15 Handling Non-JSON Responses
02:05 Transforming Streams
03:05 Implementing Text Line Stream
04:58 Creating a Reader for a Transformed Stream
Source code can be found here: github.com/MoonHighway/deno-2-course
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to Deno APIs
00:12 Creating and Writing to Files
02:06 Reading and Appending to Files
03:47 Exploring Command Line Arguments
04:19 Using Environment Variables
04:52 Setting Up a Simple Server
Source code can be found here: github.com/MoonHighway/deno-2-course
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to Deno's Built-in Tools
00:21 Formatting Code with Deno
01:32 Linting with Deno
03:09 Testing with Deno
04:14 Running Tests and Checking Coverage
Source code can be found here: github.com/MoonHighway/deno-2-course
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Installing Deno
00:37 Creating a New Deno Project
00:59 Setting Up VS Code for Deno
01:45 Using Deno Extensions and Autocomplete
01:59 Importing Modules in Deno
02:47 Configuring Your Environment
Source code can be found here: github.com/MoonHighway/deno-2-course
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to Deno
00:30 Deno's Key Features
01:08 Security in Deno
01:24 Course Overview and Hands-On Activities
github.com/MoonHighway/deno-2-course
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to Deno's Security Model
00:19 Building a Simple Web Server with Deno
01:07 Running the Server and Granting Permissions
01:49 Understanding Deno's Permission System
02:37 Browser Permission Model Comparison
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Introduction to Deno 2.0
00:07 Interoperability with Node.js
00:21 Using NPM Modules with Deno
00:30 JSR Package Registry
00:50 Managing Dependencies with Import Maps
01:05 Enhanced Developer Experience
Source code can be found here: github.com/MoonHighway/deno-2-course
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
Learn Deno in our new bite-sized tutorial series: deno.co/learn-deno
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Cold open
02:37 Keynote
03:59 Demo: a program in a single file
08:31 All in one toolchain
09:05 Deno compile demo
10:39 Announcing Deno 2
11:58 Next.js demo
14:18 Node and npm compatibility
17:22 Package management
18:17 deno install demo
19:00 JSR
20:14 Deno standard library
21:18 JSR demo
27:20 Enterprise features
27:51 Private registries
28:14 Workspaces and monorepos
28:44 Long term support
29:42 Deno is fast
30:36 Deno jupyter demo
34:42 Outro
35:03 Q&A
Avg HTTP requests per second benchmark: trevorlasn.com/blog/benchmarks-for-node-bun-deno
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Summary of `deno compile` in 1.46
01:29 Compiling Flappybird for Linux and windows
04:00 Bundling assets in the executable
05:30 Specifying an icon for Windows executable
06:17 What's next for `deno compile`
06:54 Check out patchver for fast RC promotions
Resources:
- Flappybird, github.com/littledivy/flappybird
- sui, dynamically inject data into executable formats: github.com/denoland/sui
- patchver, promote exisiting Deno binaries to a different version: github.com/denoland/patchver
- Deno 1.46: deno.com/blog/v1.46#code-signing-for-deno-compile
- Divy's previous internal talk about `deno compile` for building games: youtube.com/watch?v=RKjVcl62J9w
- deno compile documentation: docs.deno.com/runtime/reference/cli/compiler
Deno is a modern, zero-config, all-in-one JavaScript/TypeScript toolchain.
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Intro
01:47 What is `deno compile`?
03:20 The problem with how `deno compile` used to work
05:56 The new, improved `deno compile`
08:36 Comparison to Node and Bun
09:54 Demo on Mac
14:36 Demo on Windows
17:13 Deno compile is smaller than Node and Bun
Link to the game repo: github.com/littledivy/deno-party
Some demos using deno_sdl2:
Shaderplay, a WGSL live playground: github.com/littledivy/shaderplay
Conway's game of life (compute + render pass example): github.com/littledivy/deno_sdl2/blob/webgpu_external_surface/webgpu-examples/gameoflife.ts
Orillusion, a WebGPU game engine example scene: github.com/littledivy/deno_sdl2/blob/webgpu_external_surface/webgpu-examples/orillusion.ts
brendan-duncan/gpucraft: Minecraft-like game using WebGPU.
Gameplay in Deno: youtu.be/vTJvjBG-GLs
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
00:00 Intro and agenda
00:44 What is `deno serve`?
01:50 Why `deno serve`?
03:14 The limits of concurrency
04:04 Using `node:cluster`
05:22 Using `npm:pm2`
06:15 Using web workers / subprocesses + reusePort
08:54 Initial implementation
09:54 Future work
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
Deno's goal is to simplify programming, and part of that is to provide the JavaScript community with a carefully audited standard library (that works in Deno and Node) that offers utility functions for data manipulation, web-related logic, and more. We created the Deno Standard Library in 2021, and four years, 151 releases, and over 4k commits later, we're thrilled to finally announce that it's 30 modules are finally stabilized at v1.
Learn more about the Deno Standard Library here: github.com/denoland/std
Read about our stabilization process for the library here: github.com/denoland/std/issues/4600
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
Here's the code from the workspace demo during this livestream: github.com/dsherret/npm-to-deno-workspace-example
03:08 What's new in 1.45
03:23 Frozen lockfile with `--frozen`
08:21 deno compile with env vars
10:50 prompt and confirm in Jupyter notebooks
13:39 npm lifecycle scripts support (e.g. post-install scripts)
21:00 Workspace demo with Deno Standard Library
32:29 Workspace with Deno and npm
39:27 Incrementally migrating a npm workspace to Deno
Learn more about Deno: deno.com
Read more about JSR:
- deno.com/blog/jsr_open_beta
- deno.com/blog/how-we-built-jsr
- https://deno.com/blog/jsr-is-not-anot...
- https://deno.com/blog/document-javasc...
- jsr.io
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: twitter.com/deno_land
00:00 Intro
00:10 What is a private npm registry?
00:21 Popular npm registry providers
00:35 Demo
Read more about Deno 1.44: deno.com/blog/v1.44
Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: twitter.com/deno_land
00:00 Intro
01:09 Publishing JS package with npm is complicated
03:05 Why is npm so bad?
05:25 How JSR addresses shortcomings of npm
08:00 First class TypeScript support
11:22 JSR is a superset of npm
12:04 JSR is runtime agnostic
12:52 JSR is secure and auditable
13:41 JSR generates docs automagically
14:07 JSR scores packages
15:28 Luca shows JSR website
17:35 Luca publishes a new package to JSR
27:35 Luca installs a new package from JSR
33:00 How auto-generated docs works
34:15 Luca publishes a package to JSR from GitHub
Resources:
- JSR: jsr.io
- Introducing JSR: deno.com/blog/jsr_open_beta
- How we built JSR: deno.com/blog/how-we-built-jsr
- JSR is not another package manager: deno.com/blog/jsr-is-not-another-package-manager
- How to document your JavaScript package: deno.com/blog/document-javascript-package
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: twitter.com/deno_land
Title: History of WebGPU in Deno
Author: Leo Kettmeir
Date: 03/06/2024
Slides: webengineshackfest.org/2024/slides/history_of_webgpu_in_deno_by_leo_kettmeir.pdf
Deno has supported WebGPU since early 2021, however, there were several challenges in providing a performant WebGPU implementation. This talk will cover the series of events and changes required to achieve support.
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: twitter.com/deno_land
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: https:/twitter.com/deno_land
- deno.com/blog/jsr_open_beta
- deno.com/blog/how-we-built-jsr
- deno.com/blog/jsr-is-not-another-package-manager
- deno.com/blog/document-javascript-package
- jsr.io
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: twitter.com/deno_land
Read along here: deno.com/blog/roll-your-own-javascript-runtime
Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: twitter.com/deno_land
Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.
Website: https://deno.land
GitHub: github.com/denoland
Discord: discord.gg/deno
Twitter: twitter.com/deno_land
0:00 Intro
0:40 Native TypeScript support
1:17 Built on web standards
2:02 All-in-one built in tooling
2:58 Secure-by-default
3:45 Simplifying cloud development
Resources:
- deno.com
- github.com/denoland/deno


