Preact VS fresh

Compare Preact vs fresh and see what are their differences.

Preact

⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM. (by preactjs)

fresh

The next-gen web framework. (by denoland)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
Preact fresh
108 122
35,928 11,766
0.7% 1.2%
9.3 9.7
7 days ago 3 days ago
JavaScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Preact

Posts with mentions or reviews of Preact. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-17.

fresh

Posts with mentions or reviews of fresh. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-13.
  • Fly.it Has GPUs Now
    5 projects | news.ycombinator.com | 13 Feb 2024
    Because I have secret magical powers that you probably don't, it's basically free for me. Here's the breakdown though:

    The application server uses Deno and Fresh (https://fresh.deno.dev) and requires a shared-1x CPU at 512 MB of ram. That's $3.19 per month as-is. It also uses 2GB of disk volume, which would cost $0.30 per month.

    As far as post generation goes: when I first set it up it used GPT-3.5 Turbo to generate prose. That cost me rounding error per month (maybe like $0.05?). At some point I upgraded it to GPT-4 Turbo for free-because-I-got-OpenAI-credits-on-the-drama-day reasons. The prose level increase wasn't significant.

    With the GPU it has now, a cold load of the model and prose generation run takes about 1.5 minutes. If I didn't have reasons to keep that machine pinned to a GPU (involving other ridiculous ventures), it would probably cost about 5 minutes per day (increased the time to make the math easier) of GPU time with a 40 GB volume (I now use Nous Hermes Mixtral at Q5_K_M precision, so about 32 GB of weights), so something like $6 per month for the volume and 2.5 hours of GPU time, or about $6.25 per month on an L40s.

    In total it's probably something like $15.75 per month. That's a fair bit on paper, but I have certain arrangements that make it significantly less cheap for me. I could re-architect Arsène to not have to be online 24/7, but it's frankly not worth it when the big cost is the GPU time and weights volume. I don't know of a way to make that better without sacrificing model quality more than I have to.

    For a shitpost though, I think it'd totally worth it to pay that much. It's kinda hilarious and I feel like it makes for a decent display of how bad things could get if we go full "AI replaces writers" like some people seem to want for some reason I can't even begin to understand.

    I still think it's funny that I have to explicitly tell people to not take financial advice from it, because if I didn't then they will.

  • Deno in 2023
    8 projects | news.ycombinator.com | 5 Feb 2024
    Deno has also created a Next.js competitor, Fresh. I found it a few weeks ago and am starting to go through the docs, looks like a good overall concept. https://fresh.deno.dev/
  • React is actively harmful if your website is static
    3 projects | news.ycombinator.com | 3 Jan 2024
  • We need an official backend web framework
    2 projects | /r/Deno | 11 Dec 2023
    https://fresh.deno.dev/ - Fresh embraces the tried and true design of server side rendering and progressive enhancement on the client side.
  • Hacktoberfest 2023 Recap
    10 projects | dev.to | 27 Oct 2023
    Along the way, I not only got the oppurtunity to revise old concepts that had blurred in my memory, but also learnt about new technologies like Fresh.js, a framework from Deno (a js runtime engine) that uses Preact, a React Routing library and used Chakra UI for the first time.
  • Why Can't I Just Use This Function? The Struggles with Code Reusability in JS
    2 projects | dev.to | 25 Oct 2023
    A whole project might be released as a server or framework. Frameworks like fresh, and astro) both have had things deep within them that I've wanted to reuse, within fresh it's the esbuild configuration, and islands functionality, and within astro it's the rendering of astro files themselves.
  • JavaScript First, Then TypeScript
    5 projects | dev.to | 15 Oct 2023
    The Fresh framework by Deno cited an improved developer experience due to tighter feedback loops.
  • Framework Interoperable Component Libraries Using Lit Web Components.
    8 projects | dev.to | 8 Oct 2023
    I've thought about this a lot while using other frameworks like Deno Fresh which uses Preact under the hood, mainly for JSX templating, but also for islands functionality. Within that framework you can't really use React component libraries. You start to think more about generating static HTML like this example from the Deno blog [A Whole Website in a Single JavaScript File, cont'd](https://deno.com/blog/a-whole-website-in-a-single-js-file-continued, which shows building a simple webpage with routes all in one typescript file, a site that serves no Javascript to the browser.
  • Next.js, Just Why?
    2 projects | news.ycombinator.com | 9 Sep 2023
    https://fresh.deno.dev/

    Deno supports importing node modules now so you can import whatever dependency you desire. I even used browser imports on the server, it's so flexible.

    Island based hydration is a great idea and it's a super productive framework to use. Fresh uses Preact, I spent the last few months using it and I never caught myself fighting with the framework, unlike nextjs where it's a constant struggle

  • Node.js vs. Deno vs. Bun: JavaScript runtime comparison
    9 projects | dev.to | 6 Sep 2023
    Deno also has a tooling ecosystem around it to enable developers to jumpstart their projects. Fresh is a web framework built for Deno and Lume is their static site generator.

What are some alternatives?

When comparing Preact and fresh you can also consider the following projects:

astro - The web framework for content-driven websites. ⭐️ Star to support our work!

react-18 - Workgroup for React 18 release.

Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.

solid - A declarative, efficient, and flexible JavaScript library for building user interfaces.

remix - Build Better Websites. Create modern, resilient user experiences with web fundamentals.

lit - Lit is a simple library for building fast, lightweight web components.

Svelte - Cybernetically enhanced web apps

Vue.js - This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

lit-element - LEGACY REPO. This repository is for maintenance of the legacy LitElement library. The LitElement base class is now part of the Lit library, which is developed in the lit monorepo.

qwik - Instant-loading web apps, without effort

SvelteKit - web development, streamlined

Mithril.js - A JavaScript Framework for Building Brilliant Applications