DenoAn internal talk where Divy (github.com/littledivy) dives into how to use `deno compile` to compile a HTML/JS game into a desktop program for Mac/Linux and Windows.
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
How to `deno compile` a web game to desktopDeno2024-09-04 | An internal talk where Divy (github.com/littledivy) dives into how to use `deno compile` to compile a HTML/JS game into a desktop program for Mac/Linux and Windows.
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
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_landDeno under the hood: op2Deno2024-12-12 | An internal talk at a team offsite where Divy describes the internals of Deno 2. This is helpful for developers interested in contributing to Deno or simply understand how it works.
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
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)
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 binaryCan Deno be your new package manager?Deno2024-12-02 | Deno is also a JavaScript and TypeScript package manager, with the commands `deno install`, `deno add`, `deno remove`, and more.
Website: deno.com GitHub: github.com/denoland Discord: discord.gg/deno Twitter: https:/twitter.com/deno_landDeploy Deno to AWS LambdaDeno2024-11-19 | In this video, we explore how to run Deno on AWS Lambda, leveraging serverless pricing to save costs and improve scalability. The tutorial covers using the AWS Lambda adapter project, setting up the Dockerfile, building a Docker image, configuring AWS CLI, and pushing the image to the Elastic Container Registry (ECR). We then create a Lambda function to host the app, discussing critical concepts such as cold start performance and providing a practical example to get your Deno app up and running on AWS Lambda.
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
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_landDeploying Deno with DockerDeno2024-11-14 | In this video, we explore how to deploy a Deno app using Docker and Fly.io. We'll start by running the app locally with Docker, mapping the necessary ports, and creating Docker config files. After testing locally, we'll deploy the app using Fly.io, demonstrating how to install Fly, authenticate, and launch the app in production. By the end of this tutorial, you'll see how easy it is to get a Deno app up and running in production.
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
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_landBuild a Real-Time WebSocket ApplicationDeno2024-11-12 | In this episode, we introduce WebSockets for real-time data communication. Using Deno's WebStandard API, we walk through the process of developing a WebSocket server and client. We explore upgrading HTTP connections to WebSockets, handling events such as 'open', 'message', and 'close'. This tutorial covers everything needed to build a web application that uses WebSockets for efficient real-time data transfer.
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
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.
Website: deno.com GitHub: github.com/denoland Discord: discord.gg/deno Twitter: https:/twitter.com/deno_landBuild a Command Line UtilityDeno2024-11-07 | Learn to build a command line tool using Deno's standard library. You'll explore how to parse arguments, handle flags, and provide helpful messages using utility functions. Follow along as we build a ski resort information app, handle errors gracefully, and compile the script into an executable for multiple platforms, including Windows, MacOS, and Linux. By the end of this video, you'll understand how to take full advantage of Deno's features to develop and distribute your own CLI tools.
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
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_landBuild an API server with TypeScriptDeno2024-11-05 | In this video, learn how to create a REST API using the Hono framework with Deno. We cover the process from setting up the project, creating routes, and managing data through a simple CRUD application. Using Hono with Deno makes it easy to build a scalable API that can be deployed to your favorite hosting provider.
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
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_landBackward Compatibility with Node.js and npmDeno2024-10-31 | Explore how to integrate Deno into your existing Node.js projects seamlessly. In this video, we'll use Node.js standard libraries and npm modules with simple prefixes, maintain compatibility with CommonJS projects, and make use of Deno's features like dependency installation, formatting, and linting. Make the transition of your Node.js projects effortlessly without the need for major rewrites.
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
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_landTypeScript and JSX in DenoDeno2024-10-29 | In this tutorial, learn how to natively process TypeScript and JSX using Deno without needing additional tools like ts-node or tsconfig. We'll demonstrate type checking with Deno commands, customize TypeScript compiler settings using the deno.json file, and handle imports for libraries such as React. Discover how Deno simplifies TypeScript and JSX development, offering powerful configuration and support for different environments.
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
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_landsetting up typescript is an easy 47 step process #nodejs #node #typescript #javascript #codingDeno2024-10-24 | Check out the full video on our channel @deno_landConfiguration with deno.jsonDeno2024-10-24 | In this video, we use the deno.json file to manage dependencies and configurations in your Deno projects. Learn how to create and configure tasks like 'start' and 'format' to streamline your workflow. We'll also explore customizing formatting and linting rules, and understand the concept of import maps for cleaner imports. Then we'll take a look at compatibility between Deno's deno.json and Node's package.json for seamless project integration.
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
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_landECMAScript Modules in DenoDeno2024-10-24 | In this video, we explore how Deno handles ECMAScript modules (ESM) natively, simplifying module management. Learn to create and import modules using relative paths, leveraging default exports, and utilizing ECMAScript features. Import libraries from various sources, including JSR, npm, and URLs. Finally, we cover Deno's caching features for remote modules, enhancing efficiency and supporting offline workflows.
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
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_landPublishing Modules with JSRDeno2024-10-22 | In this episode, we look at JSR (the JavaScript Registry), a modern registry optimized for TypeScript and ES modules. Learn how JSR extends the npm ecosystem to support various runtimes like Deno, Bun, and Cloudflare Workers. Follow along as we demonstrate searching for and integrating with the Oak HTTP library, and then publish a custom package. We walk through the entire process from setup, installation, to publishing, and provide tips for ensuring your package is well-documented and consumable by other developers.
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
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_landBrowser APIs in DenoDeno2024-10-22 | In this episode, explore how Deno leverages web standard APIs. We'll walk through examples using fetch, transforming streams, and reading HTML data line-by-line in the terminal. Learn how to utilize Deno’s built-in features such as Canvas, internationalization, and WebSockets.
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
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_landDeno Namespace APIsDeno2024-10-22 | In this video, we explore the powerful APIs provided by Deno in the global namespace. We demonstrate file system operations like creating, reading, writing, and appending to files using Deno's built-in methods. Then, examine how to handle command line arguments, environment variables, and set up a basic server. Reduce the need for external APIs with these Deno built-in APIs.
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
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_landAll-in-one tooling for JavaScript and TypeScript developmentDeno2024-10-16 | Discover how Deno simplifies project setup compared to Node.js by eliminating the need for third-party dependencies. We demonstrate Deno's automatic code formatting with 'deno fmt', code analysis with 'deno lint', and testing capabilities using 'deno test'. Explore how to run these tools on entire directories or individual files, manage linting rules, and check code coverage with no need to set anything up.
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
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_landYour Deno Development EnvironmentDeno2024-10-16 | Learn to install Deno using curl, add it to your path, and set up a new Deno project from scratch. Congfigure the installation of the Deno extension in VS Code, initializing workspace configurations, and utilizing features like autocomplete and hints. The video also covers importing modules and setting up shell completions for various CLI tools.
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
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_landWhat is Deno?Deno2024-10-16 | Learn about Deno, an open-source runtime built on V8 and Rust, offering default support for TypeScript, linting, formatting, and testing. Created by Ryan Dahl who created Node.js, Deno addresses previous challenges of Node while being fast, flexible, and secure by default. This episode introduces web-standard features like fetch and WebSockets, and explains its opt-in permission system for sensitive APIs.
00:00 Introduction to Deno 00:30 Deno's Key Features 01:08 Security in Deno 01:24 Course Overview and Hands-On Activities
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_landRuntime Security in DenoDeno2024-10-16 | Deno prioritizes security by default, requiring developers to explicitly opt-in for accessing sensitive information like file systems and networks. We demonstrate building a simple web server using the deno.serve function in server.ts, showcasing how Deno asks for permissions to use network resources. The video also highlights how Deno's permission system is similar to browsers, promoting secure app runtime by controlling access to APIs. Learn how to manage permissions efficiently in your Deno applications.
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_landWhats New in Deno?Deno2024-10-16 | Deno 2.0 introduces powerful features for backwards compatibility with Node.js, supporting core APIs and NPM modules. But more importantly, it integrates with JSR, a new versatile package registry. The update enhances dependency management through import maps and simplifies project migrations.
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
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_landwhen you accidentally npm install loodash #nodejs #node #programming #coding #javascriptDeno2024-10-10 | Check out the full video on our channel @deno_landProgramming Should Be SimpleDeno2024-10-09 | Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
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&ADeno Live StreamDeno2024-10-03 | ...Denos Secret SauceDeno2024-10-01 | Read more about Rusty V8: deno.com/blog/rusty-v8-stabilized
Website: https://deno.land GitHub: github.com/denoland Discord: discord.gg/deno Twitter: https:/twitter.com/deno_landWebGPU Windowing in DenoDeno2024-08-14 | Second half of Divy's talk at a Deno offsite that dives into WebGPU Windowing in Deno.
Website: deno.com GitHub: github.com/denoland Discord: discord.gg/deno Twitter: https:/twitter.com/deno_landBuilding games with DenoDeno2024-08-13 | This was an internal talk given by Divy about `deno compile`, how it works, size comparisons, and how to build a game with it.
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
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_landSTOP Reinventing The WheelDeno2024-08-08 | Many programming languages have standard libraries. What about JavaScript? 🤔️
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.
Website: https://deno.land GitHub: github.com/denoland Discord: discord.gg/deno Twitter: https:/twitter.com/deno_landMonorepos and workspaces in DenoDeno2024-07-17 | With 1.45, Deno now supports workspaces. Join our livestream where we go over Deno's new workspaces support, demo how you can use it, and show how to use Deno/Node hybrid workspaces.
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.compublishing a TypeScript module to npm vs. JSRDeno2024-07-10 | Here are side by side steps of publishing a TypeScript module to npm vs. JSR.
Website: https://deno.land GitHub: github.com/denoland Discord: discord.gg/deno Twitter: twitter.com/deno_landPrivate npm registries in DenoDeno2024-06-26 | You can consume npm packages from a private npm registry in Deno 1.44. Here's how to do it.
00:00 Intro 00:10 What is a private npm registry? 00:21 Popular npm registry providers 00:35 Demo
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
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.
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