Best of Deno โ 2024
- 1
- 2
Neonยท2y
Wrapping My Mind Around Node.js Runtimes
Explore the innovations in JavaScript runtimes with a detailed look at Deno and Bun, and how they compare to Node.js. Understand the core components of a JavaScript runtime, the security and complexity issues in Node.js, and how Deno and Bun address these issues with features like built-in TypeScript support, enhanced security, and improved performance.
- 3
Laravel Newsยท2y
Basset is an alternative way to load CSS & JS assets
Basset is a better asset helper for Laravel that allows you to load CSS and JS assets directly from the URL. It removes the limitations of the traditional asset() function and provides features such as downloading assets from CDNs, loading vendor and non-public assets, preventing double-loading of assets, and improving performance by using HTTP/2.
- 4
- 5
Denoยท1y
Build a Database App with Drizzle ORM and Deno
This tutorial guides you through setting up Drizzle ORM with Deno and PostgreSQL to manage dinosaur data. It covers installing dependencies, configuring Drizzle ORM, defining schemas, and interacting with the database using helper functions. The post concludes with suggestions for enhancing your application with complex database relationships, REST API implementation, validation, and error handling.
- 6
Beyond Fireshipยท1y
JavaScript performance is weird... Write scientifically faster code with benchmarking
Learn how to scientifically measure JavaScript performance using the Deno runtime's benchmarking tool. Discover the fastest ways to loop over arrays, optimize array includes operations with Set, and compare various sorting algorithms like bubble sort, quick sort, and merge sort. This methodical approach helps avoid premature optimization and ensures robust code performance.
- 7
Node.js developersยท1y
How are you all feeling about sharing Bun and Deno updates here too?
A discussion is raised about whether updates on Deno and Bun, which are server-side JavaScript runtimes similar to Node.js and aim for npm-like compatibility, should be shared in a Node.js developers group. Members are asked if they agree or if they'd prefer the focus to remain exclusively on Node.js.
- 8
Hacker Newsยท1y
Lightweight HTML templating library for any-side rendering
Mizu is a versatile HTML templating library that supports any-side rendering, allowing developers to create dynamic content easily. The post demonstrates how to use Mizu with Deno, Node.js, and other environments to render HTML and generate static files. Examples show the usage of Mizu's render method to inject context into templates and generate different file types.
- 9
Community Picksยท1y
Web Software Development
The free online course covers the development and testing of web applications with a comprehensive introduction to both server-side and client-side technologies. Key technologies include Deno, Hono, Deno KV, PostgreSQL, Svelte, Playwright, TailwindCSS, HTML, CSS, and JavaScript. The course platform improves continuously using data gathered from user interactions for better learning experiences.
- 10
Cloudflareยท1y
The story of web framework Hono, from the creator of Hono
Hono is a fast, lightweight web framework that works across various JavaScript environments, including Cloudflare Workers, Deno, Bun, and Node.js. It uses a Trie tree-based router and adheres to Web Standards, ensuring a 'write once, run anywhere' experience. Hono simplifies development with concise syntax, built-in middleware, strong type system, and server-side JSX support. It also has features for authentication, context model for state management, and robust testing capabilities. Recent updates include static site generation, client components, and file-based routing, allowing full-stack application development.
- 11
- 12
Dev Squadยท1y
๐ Automate Your PostgreSQL Backups with Ease! ๐ณ
Simplify database management with a robust system for backup and restore using Deno, Docker, and Cloudflare R2. Features include automated backups via cron or on-demand, seamless restores from local files or R2, and easy cloud integration. To get started, clone the appropriate repo, configure your environment file, and run the specified Deno tasks.
- 13
Denoยท1y
Self-contained Executable Programs with Deno Compile
Deno compile allows developers to turn JavaScript and TypeScript programs into self-contained, cross-platform binaries, eliminating the need for a runtime or dependencies. Deno 2 has introduced improvements such as support for npm packages, smaller binary sizes, and code signing. The process simplifies deployment, improves startup times, and offers enhanced security through preserveable permission flags. Examples include creating a single executable, cross-compiling for different OS, code signing, and even compiling npm packages for performance boosts.
- 14
Denoยท1y
Build a Database App in 3 Minutes
Building a database application with Deno 2 and Drizzle ORM has been made easier with npm compatibility. The post guides you through installing necessary dependencies, setting up configurations, and defining schemas for a PostgreSQL database. It covers both inferring existing tables and creating new ones, and explains how to use Drizzle to manage data with TypeScript types. The tutorial concludes with performing CRUD operations on the database.
- 15
Supabaseยท1y
Executing Dynamic JavaScript Code on Supabase with Edge Functions
Supabase allows developers to execute dynamic JavaScript code in Edge Functions, enhancing flexibility and reducing the need for redeployments. Edge Functions execute at the edge for faster response times. Users can modify and run JavaScript code on the fly, supported by SQL scripts and helper functions like `edge.http_request`, `edge_wrapper`, and `edge.get_secret`. This setup increases the versatility of applications, enabling tasks like generating embeddings or creating users via the admin API.
- 16
Denoยท2y
Programming should be simple
Programming should be simple. Ryan Dahl, the creator of Node.js, critiques the complexity of modern Node.js setups, highlighting cumbersome processes like configuring TypeScript. He introduces Deno, a new platform that prioritizes simplicity, integrating TypeScript support out-of-the-box, providing all-in-one tooling, and ensuring security by default, while maintaining compatibility with existing npm packages.
- 17
- 18
Community Picksยท2y
This Month in React, February 2024: React 19 (but more details), Apple tries to kill PWAs
This post provides updates on various topics including React Native in different industries, the React Strict DOM project, the new releases of Remix, the Deno JavaScript registry, the implementation of hot module replacement, the pmdrs WebGL uikit, and the updates from the 100th TC39 meeting.
- 19
Denoยท1y
Run your Next.js SSR app on Deno Deploy
Next.js, a powerful metaframework for building server-rendered or statically generated web applications, can now leverage Deno Deploy for server-side rendering (SSR). This guide shows you how to deploy a Next.js app with SSR on Deno Deploy, either by linking a GitHub repository or using the command line. The post also highlights new features in Deno 2.1, such as first-class Wasm support, improved package management, and long-term support.
- 20
- 21
Socketยท2y
Deno Standard Library Stabilized After 4 Years and 4,000 Commits
The Deno team has stabilized its Standard Library after four years and 4,000 commits. This library includes high-quality TypeScript packages for various utilities and aims to simplify common development tasks. Compatible with Node.js, Cloudflare Workers, and browsers with bundlers, it helps manage dependencies efficiently. The library is published under the @std scope and can be independently versioned, making updates more manageable. The next phase involves the development of Deno 2, which promises enhanced performance and compatibility.
- 22
Denoยท1y
How to convert CommonJS to ESM
ECMAScript modules (ESM) are the modern standard for writing JavaScript, supporting features like async loading and better compatibility. This post guides you through updating the syntax of a legacy CommonJS project to ESM, including changes in import/export statements and package.json configurations. Removing 'use strict' and using shims for globals like __dirname and __filename are also discussed. Tools like VSCode and various npm packages can assist in the transition. Adopting ESM can alleviate compatibility issues and streamline development.
- 23
Community Picksยท2y
Deno 2.0 by Ryan Dahl
Deno 2.0 aims to continue the optimization goals of Node.js in a more expansive and modern manner. It includes built-in support for NPM, enforceable security constraints, and a key-value database called Deno KV. Deno Deploy is a serverless platform optimized for fast reads, ideal for building eCommerce sites or application servers at the edge. Deno 2.0 is set to introduce more features like cache, persistent queues, and background workers to enhance the development of global services.
- 24
Community Picksยท2y
Git Granary
Git Granary is a custom-built Git LFS server designed for self-hosting alongside a Gitea instance. It supports multiple runtimes including Bun, Deno, and Node, with Deno being the primary one used. The implementation allows handling large file storage locally with the option of temporary public accessibility for deployments. Granary is open source and MIT licensed, making it available for those interested in experimenting with an alternative LFS solution.
- 25
Denoยท1y
Deploying Deno with Docker
Deploying a Deno application with Docker is straightforward. First, ensure Docker is installed, then run the Docker commands to map ports and specify the Deno version. You can also create a Docker config file for easier setup. Once tested locally, deploy the app to a hosting provider like fly.io, which allows quick deployment by creating and launching a Docker image in the desired region.