Home / Companies / Strapi / Blog / Post Details
Content Deep Dive

Fresh Explained: Unpacking Deno's Innovative Web Framework

Blog post from Strapi

Post Details
Company
Date Published
Author
Paul Bratslavsky
Word Count
3,637
Language
English
Hacker News Points
-
Summary

Fresh is a full-stack web framework designed for the Deno runtime, emphasizing server-rendered applications with zero client-side JavaScript by default, unless explicitly opted in via its islands architecture. Built on Web Standards APIs and using Preact for rendering, Fresh facilitates server-first rendering, generating complete HTML on the server and only sending JavaScript to the browser for components designated within specific directories. Fresh 2.x offers enhancements such as a programmatic App() API, Vite integration for bundling, and faster boot times. The framework includes built-in plugins for common web development needs and adheres to Deno's security model, requiring explicit permission for network, file system, and environment access. Fresh's islands architecture allows selective client-side hydration, ensuring only necessary interactive elements ship JavaScript, which enhances performance and SEO, particularly for server-rendered applications, content sites, and e-commerce frontends. With Vite replacing esbuild as the optional bundler, and React/Preact aliasing now automatic, Fresh provides a straightforward setup with minimal configuration, making it an attractive choice for developers focused on performance and minimal client overhead in the Deno ecosystem.