Fireship · @fireship
a fresh new web framework is out
Uploaded June 29, 2022 · Length 3:25
Summary
fresh web framework review: zero js to browser, server-side rendering, typescript support, island's architecture, dino deploy
- fresh web framework
- zero js to browser
- server-side rendering
- typescript support
- islands architecture
- dino deploy
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:01
it is june 29 2022 and you're watching
- 0:04
the code report well it's that time of
- 0:06
the week again a fresh new web framework
- 0:08
has been born and i know exactly what
- 0:10
you're
- 0:15
do thinking anymore it's name is
- 0:17
fresh and it's dripping like literally
- 0:19
the logo is dripping but more
- 0:21
importantly it has some awesome features
- 0:23
it ships zero javascript to the browser
- 0:25
by default has no build step during
- 0:26
development and is based on the island's
- 0:28
architecture which i'll explain in
- 0:30
detail in just a minute fresh is a full
- 0:32
stack framework for server-side
- 0:33
rendering like ruby on rails or laravel
- 0:36
but you write your apps in typescript
- 0:37
because it's built on top of dino which
- 0:39
if you don't know is a javascript
- 0:41
runtime alternative to node.js dino was
- 0:43
created by ryan dull the same guy who
- 0:45
created node.js because he wasn't
- 0:47
totally happy with the way things turned
- 0:48
out the first time and it's my fault and
- 0:50
i'm very sorry and unfortunately it's
- 0:53
impossible to undo now it is officially
- 0:56
pronounced dino and not deno as i messed
- 0:58
up in this video but the benefit of
- 1:00
using it for a web framework is that you
- 1:01
get first class typescript support out
- 1:03
of the box in addition you can build and
- 1:05
deploy your app without a build step
- 1:07
while most javascript developers are
- 1:08
bragging about increasing build times by
- 1:10
10 percent dino developers just don't
- 1:12
even have a build step fresh can be
- 1:14
deployed to the edge instantly with dino
- 1:15
deploy the simplicity here is really
- 1:17
awesome one drawback though is that dino
- 1:19
has a much smaller ecosystem when
- 1:21
compared to node.js and not all npm
- 1:23
packages are compatible the most
- 1:25
interesting thing about fresh though is
- 1:26
that it's based on the island's
- 1:28
architecture which is also known as
- 1:30
partial hydration the idea is that you
- 1:32
build a website using a javascript
- 1:33
framework in this case fresh uses preact
- 1:36
for the ui but instead of sending
- 1:37
javascript code to the browser you
- 1:39
render everything to static html on the
- 1:42
server that means by default the only
- 1:43
thing the end user gets is a static html
- 1:46
page which is much faster for the
- 1:47
browser to load and render in many cases
- 1:50
though a website will need more
- 1:51
interactivity than just static html and
- 1:54
that's where islands come in but first
- 1:55
respect to jason miller who's the first
- 1:57
person to describe the island's
- 1:58
architecture and also the creator of the


