VOOZH about

URL: https://thenewstack.io/denos-fresh-uses-server-side-rendering-for-faster-apps/

⇱ Deno's Fresh Uses Server-Side Rendering for Faster Apps - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2022-06-30 05:00:01
Deno's Fresh Uses Server-Side Rendering for Faster Apps
Frontend Development / Software Development

Deno’s Fresh Uses Server-Side Rendering for Faster Apps

Jun 30th, 2022 5:00am by Loraine Lawson
👁 Featued image for: Deno’s Fresh Uses Server-Side Rendering for Faster Apps
Image via Fresh.

Deno software engineer Luca Casonato was finishing up the documentation late last week for Tuesday’s official launch of Fresh, a new full-stack web framework for Deno. He took a break to share details on his latest project.

“Fresh is a new style of web framework that’s written for Deno rather than NodeJS,” Casonato, who created Fresh, told The New Stack. “It’s really optimized for edge computing.”

He compared it to Node.js or Vercel, which he said might have serverless functions that run on Amazon Web Services in a single region. Make a request to the server from the U.S. and if the host is in the EU, then the request has to literally transverse the ocean, Casonato said. Instead, Fresh leverages edge computing, where the request is routed to the server nearest the user, he added.

Another JS Framework?

But why another JavaScript framework in an already crowded and potentially unnecessary field of frameworks? First, there’s the speed issue presented by most frameworks, Casonato said. Second, there’s the user or developer experience.

“They’re all not fast enough, or they don’t have a good enough user experience or good enough developer experience,” Casonato said. “With Fresh, we’ve tried to look at all the frameworks, at all the things they do correctly and all the things they don’t do correctly.”

The combination, he contended, is a better framework with fewer downsides than existing frameworks.

“The framework is really built for server-side rendering so it sends very little JavaScript, very little code to the clients, and keeps as much as possible on the server, to make it a really snappy experience for users,” he said.

The majority of the rendering is done on the server, so the client “is only responsible for re-rendering small islands of interactivity,” the announcement stated. That translates into great performance all over the world, Casonato claimed, even on slow devices. Other JavaScript frameworks that send more code to the client often struggle by comparison on slow devices, he said.

Fresh Unboxed

Fresh is based on Deno and Preact, a JavaScript library that promotes itself as an alternative to Meta’s React, which is a JavaScript library for building user interfaces based on UI components.

Fresh combines a routing framework and a templating engine, to render pages on-demand on the server, according to the documentation. Fresh also provides an interface for rendering some components on the client for maximum interactivity, it states. The framework uses Preact and JSX for rendering and templating on both the server and the client.

It’s built to deploy on Deno, a runtime for JavaScript, TypeScript and WebAssembly — so the only installation requirement for Fresh is downloading Deno 1.22.3 or later.

Fresh supports TypeScript out of the box and requires zero configuration, according to the documentation. Perhaps one of its more compelling features, however, is the fact it does not have a build step. Build steps can take up to 10 minutes to run, Casonato pointed out.

”With Fresh, that takes no minutes — it’s immediate, there’s no build step,” he said. “So you can take the source code that you’ve written and immediately deploy it to all of your servers without having to transform it in-between, which can really speed up the development.”

It does take the extra set of transpiring TypeScript code to Javascript first, to execute TypeScript on browsers that do not natively execute TypeScript. That takes milliseconds on the fly, Casonato explained.

“There’s some efforts in the works that will allow browsers to eventually execute some form of TypeScript, but it’s not quite there, so what we have to do for now is take the TypeScript code and strip out all the types before we serve the JavaScript to the browser,” he said. “When a user makes a request for some resource, and the browser is not natively able to handle that resource type, we have to just transform it on the fly.”

Casonato foresees Fresh’s primary competition as being Astro, Remix and Next.js.

The Deno company last week announced it had raised $21 million in an investment round led by Sequoia Capital. It has so far raised $25.9 million in funding over two rounds, according to Crunchbase.

TRENDING STORIES
Loraine Lawson is a veteran technology reporter who has covered technology issues from data integration to security for 25 years. Before joining The New Stack, she served as the editor of the banking technology site Bank Automation News. She has...
Read more from Loraine Lawson
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Deno.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.