I've been writing a simple single page form app the past few days and I like Fresh a lot. I really appreciate the simplified project layout vs my last setup of a react app project nestled in a parent express project. It just makes the devops, if you would even called it that, of writing a one-person full stack app easier. Deno running TypeScript without a compile to JS adds to this. I'm happy to see the Preact Signals demo to help manage state between islands in 1.1. Thank you for this great framework. :)
Wow, great work! One question - isn't doing the tailwind processing on every page load pretty CPU intensive? Could you foresee opting-in to that as a build step in the future?
Fresh looks seriously cool! I'm especially fond of the plugins concept for bringing in compiled assets like Markdown and SCSS. And Getting started with a `deno run` command is very exciting for new-comers too!<p>Shameless-self promotion: I've been working on a similar web framework built on Deno and Cloudflare Workers. It's called Keywork[1] and it's made for folks who would like to create web apps for the V8 runtime, without getting too attached to a single cloud provider.<p>Keywork has powered all my projects as of recently, but Fresh looks like a serious contender. I would love to chat with the Deno team if they're floating around this HN thread! You're creating amazing stuff!<p>- [1] <a href="https://keywork.app" rel="nofollow">https://keywork.app</a>
Great update! I wonder if Fresh plans to use Deno's (new) HTTP server[1]. Benchmarks for that look incredible (compared to Express).<p>Off-topic but how does the video[2] under Preact Dev Tools look so sharp yet only weight 43KB? Edit: nevermind, the downloaded file's 2.9MB. Must be something up with Chrome's network tab.<p>[1]: <a href="https://deno.com/blog/v1.25#new-experimental-http-server-api" rel="nofollow">https://deno.com/blog/v1.25#new-experimental-http-server-api</a><p>[2]: <a href="https://deno.com/fresh-1.1/preact_devtools.mp4" rel="nofollow">https://deno.com/fresh-1.1/preact_devtools.mp4</a>
I just ran this and got a bad cert error. How should I fix it?<p>deno run -A -r <a href="https://fresh.deno.dev" rel="nofollow">https://fresh.deno.dev</a> my-project<p>Sending fatal alert BadCertificate
error: error sending request for url (<a href="https://fresh.deno.dev/" rel="nofollow">https://fresh.deno.dev/</a>): error trying to connect: invalid peer certificate contents: invalid peer certificate: UnknownIssuer
Is Fresh primarily a server side rendering tool? Or might it be an option for static-ish webpages hosted by GitHub.io?<p>I love the idea of eliminating lots of build boilerplate but I do ultimately want to output static assets for a read-only webpage.
I seriously cannot wrap around my head how in 2022 people really like JSX and all that X-in-JS crap, it's like people doesn't know about separation of concerns or clean code at all.