Fresh is a Deno web framework built for server rendering, selective client hydration, and file-based routing. Pages ship minimal JavaScript unless you opt in via islands.
Overview
Fresh targets developers who want a full-stack site on Deno with TypeScript and JSX without a heavy client bundle by default. Each route renders on the server as a Preact component, producing HTML first and hydrating only designated interactive islands when needed.
Routing follows a filesystem convention similar to other modern frameworks, with dynamic segments supported. Forms and mutations can be handled on the server using standard request and form data APIs, and partial HTML streaming allows updating page regions without a full reload.
The framework bundles conveniences such as WebSocket endpoints, typed route handlers, middleware chains, layout composition, built-in security helpers, and optional view transitions. Deployment options mentioned include Deno Deploy, Docker images, Cloudflare Workers, or a compiled single binary.
New projects are scaffolded through an init script and local development runs via Deno tasks against the project folder.
Key features
- Server-rendered Preact routes
- Islands-based client hydration
- Zero default client JavaScript
- Filesystem routing
- Server-side form handlers
- HTML partial streaming
- WebSocket route support
- Built-in TypeScript JSX
Use cases
- Marketing and content sites
- Interactive dashboards with few islands
- Edge-deployed Deno applications
- Progressive enhancement forms
- Real-time chat prototypes