Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Deno 5 min read Release mediumAdept

Fresh 1.0

Fresh is a full stack web framework for Deno that renders pages just-in-time on the server and ships zero JavaScript to the client by default, using the islands architecture so only explicitly opted-in components are hydrated in the browser. It uses Preact and JSX/TSX on both server and client, has file-system routing with handlers for custom responses and async data loading, and has no build step: TypeScript and JSX are transpiled on demand, so deployments are near-instant. Version 1.0 is declared production-ready and is well suited to edge runtimes such as Deno Deploy, Netlify Edge Functions and Supabase Edge Functions.

Assumes: JSX and React-style componentsserver-side rendering basics

Related posts

  • Fresh 1.4 – Faster Page Loads, Layouts and More

    Deno mediumAdept

    Fresh 1.4 adds optional ahead-of-time asset compilation via `deno task build`, which serves island assets roughly 45-60x faster on serverless cold starts than on-the-fly JIT compilation; a ~30kB search island that took 4.28s now revives near-instantly. The development server still uses JIT. The release also lets `_app.tsx` render the full html/head/body document, with a fallback to the old template when no html tag is rendered. New features include nested and async `_layout` files with opt-out config, `defineRoute`/`defineLayout`/`defineApp` typing helpers, parenthesized route groups that don't affect URLs, and private `(_components)` and `(_islands)` folders for colocating code.

  • Fresh 1.1 - automatic JSX, plugins, DevTools, and more

    Deno mediumAdept

    Fresh 1.1, Deno's zero-client-JS, no-build-step web framework, switches new projects to automatic JSX via the deno.json jsxImportSource setting. It also adds a first plugin system for injecting styles and scripts, with an official Twind plugin that drops the tw wrapper, plus Preact Signals and Preact DevTools support. Route handlers can call ctx.renderNotFound(), and middleware files can export an array of stacked handlers. Experimental Deno.serve support is opt-in via experimentalDenoServe. An update script with codemods migrates existing projects.

  • Fresh 1.3 – Simplified Route Components and More

    Deno mediumAdept

    Fresh 1.3 lets route components be async functions that load data directly, removing the handler-plus-props-interface boilerplate, while the existing ctx.render() pattern keeps working. Plugins can now inject routes and middlewares, thrown handler errors fall back to the _500.tsx template, and Preact error boundaries can catch rendering errors. Multiple islands can be exported from one file to cut requests, best when grouping islands used on the same page. The release also adds Fresh-specific lint rules, clearer error messages, and uses the now-stable Deno.serve API when available.

  • A Whole Website in a Single JavaScript File

    Deno mediumAdept

    A demo multi-page website fits entirely in one JavaScript file and is server-rendered on demand at the edge with Deno. Routing uses a small `router` module built on `URLPattern`, and JSX is rendered server-side with `nanossr`, which styles via twind. Triple-slash reference comments select exactly which TypeScript libs (dom, dom.asynciterable, deno.ns) are loaded. Hosted on Deno Deploy, the site gets a perfect PageSpeed score and is served from 29 data centers over an anycast IP at no cost.

  • How to Build a Blog with Fresh

    Deno mediumAdept

    A markdown blog can be built with Fresh, Deno's edge-first framework that ships zero client JavaScript by default, using file-based routes, custom GET handlers and server-side rendering. Posts are read from a posts directory with Deno.readDir, front matter is parsed with the std library's extract, and individual posts are served via a dynamic [slug].tsx route that renders markdown through the gfm module with its stylesheet. The finished site deploys to Deno Deploy by linking a GitHub repo with main.ts as the entry point.

The quest for software engineering knowledge.

Look:
Layout: