TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Astro 1.0 – a web framework for building fast, content-focused websites

452 pointsby danielskoglyalmost 3 years ago

44 comments

CharlesWalmost 3 years ago
I&#x27;m looking at <a href="https:&#x2F;&#x2F;docs.astro.build&#x2F;en&#x2F;concepts&#x2F;why-astro&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.astro.build&#x2F;en&#x2F;concepts&#x2F;why-astro&#x2F;</a> and I still can&#x27;t tell what&#x27;s interesting and unique about this as compared to other options in this space.<p>I acknowledge that this might be a PEBKAC situation, but I&#x27;d love to hear thoughts from people who used Next.js, Remix, or whatever and found Astro to be a revelation.<p>It seems like Astro&#x27;s creators believe &quot;content-focused&quot; is a differentiator, but I find that confusing since content-focused sites are a popular use case for web frameworks that are also suitable for more complex apps.
评论 #32402029 未加载
评论 #32404002 未加载
评论 #32402460 未加载
评论 #32402226 未加载
评论 #32402037 未加载
评论 #32408857 未加载
评论 #32401996 未加载
评论 #32406042 未加载
评论 #32408762 未加载
评论 #32407251 未加载
评论 #32401981 未加载
评论 #32416857 未加载
garfieldnatealmost 3 years ago
I used Astro recently to rebuild my personal website&#x2F;portfolio, and I really enjoyed it. I&#x27;m not a frontend dev and I quickly get overwhelmed by all of the choices and the breakneck speed that the web ecosystem changes at. Astro was exactly what I needed. It&#x27;s optimized for spending most of your time writing content in markdown, but it gives you complete freedom to seamlessly add web code of any complexity you like. MDX is just markdown plus custom components, and Astro lets you drop in stuff from React, Vue or Angular, so you&#x27;re not restricted to whatever components you can find for the single framework that you choose at the beginning of your project. Everything possible is made static. I found it to be pretty intuitive and I don&#x27;t feel boxed in by it. This is how I want to make (frontend-only) websites in the future.<p>My biggest issues using it (admittedly in the beta state) were 1) wrong line numbers printed for errors due to extensive rewriting and transpilation without source mappings and 2) no built-in image optimization (there is a third-party tool that works well enough, but for a content-first framework this doesn&#x27;t seem good enough to me).<p>[Edit]: Ah, I see in the 1.0 they have built-in image optimization :) I&#x27;ll have to try that out.
评论 #32409932 未加载
评论 #32409687 未加载
oneplanealmost 3 years ago
Sometimes all the frameworks that re-invent MVC (but in a detached fashion) and tout &quot;server side rendering&quot; just feel like we&#x27;ve come full circle where we&#x27;re just serving a static view cache that was generated from models and data using a controller.<p>The big difference here (as with other JavaScript-based renderers) is of course the &quot;use one tool&#x2F;language for everything&quot; aspect which to me is a bit of a &#x27;meh&#x27;-benefit.<p>At this point, while all the renderers get better and simpler, we&#x27;re still in a situation where complexity or writing code hasn&#x27;t really gone away, it just shifted around to new places. Perhaps at some point we get to the HTML + WebComponents stage again (kinda like MDX and React mixing), and classic Apache Server-Side Includes become the new hot thing again.
评论 #32407283 未加载
robertakarobinalmost 3 years ago
After having tried and given up on so, so many SSG frameworks, I&#x27;m loving Astro. In particular:<p>- Templates are plain HTML&#x2F;Javascript, instead of some other templating language (e.g. Jekyll&#x2F;Liquid)<p>- Typescript out of the box<p>- SCSS out of the box<p>- Easy remote builds on Netlify<p>- Scoped stylesheets<p>- No overcomplicated build process&#x2F;customization (e.g. Webpack)<p>- Supports Markdown, YAML, JSON, all the things<p>- It builds really quickly<p>And all of that is with virtually no additional configuration. It&#x27;s great.<p>Also a big bonus: the team is super friendly and very responsive!
评论 #32404717 未加载
jackconsidinealmost 3 years ago
I&#x27;ve used Astro my company&#x27;s landing page for the past year or so [0]. We write blog posts in Notion and port them right to the site and the experience has been fantastic. There are a few understanding quirks with regard to using React etc within Astro (it&#x27;s SSR&#x27;d unless you add the &quot;client&quot; attribute, and counter-intuitively the Component Lifecycle doesn&#x27;t run the same). For client landing pages, we&#x27;ll use Astro too- occasionally they&#x27;ll want a CMS to write their own blog posts without a Git &#x2F; commit pipeline. In those cases, Netlify CMS plugs in seamlessly and has a generous free tier.<p>[0] <a href="https:&#x2F;&#x2F;koptional.com" rel="nofollow">https:&#x2F;&#x2F;koptional.com</a>
评论 #32401714 未加载
评论 #32403352 未加载
j-pbalmost 3 years ago
Really interesting stuff especially for existing jam stack websites, but oh god<p>&gt; This vision of a better web is why Netlify is bullish on Astro<p>can&#x27;t this horrible stock market and crypto bro lingo stay in the casino bubble.
trinovantesalmost 3 years ago
One thing that&#x27;s not too clear to me is if it&#x27;s possible to use existing UI libraries. For example, to install Vue&#x27;s Quasar component library I need to run<p><pre><code> import { createApp } from &#x27;vue&#x27; import { Quasar } from &#x27;quasar&#x27; app = createApp() app.use(Quasar) </code></pre> But since astro abstracts away the root Vue application, I don&#x27;t see how this is possible anymore.<p>Astro might make sense for a blog where you don&#x27;t need a full blown component library but for any other web application, I&#x27;m skeptical of its capabilities.
ijustwanttovotealmost 3 years ago
If you are trying to &quot;flip&quot; websites, SSG isn&#x27;t the way to go. I created websites with my own SSG using Javascript, Eleventy, Nuxt, Next.<p>But when I create a website now, I got to stick with Wordpress because they are easier to sell and non tech people can use it.
评论 #32406119 未加载
itcrowdalmost 3 years ago
It always annoys me when I read something like:<p><pre><code> To try Astro on your local machine, run npm create astro@latest in any terminal. </code></pre> because it doesn&#x27;t make it clear to me what to do before this command will actually do anything. No, running this command will <i>not work</i> in any terminal.
评论 #32407594 未加载
评论 #32402998 未加载
评论 #32405422 未加载
评论 #32403898 未加载
评论 #32409432 未加载
fareeshalmost 3 years ago
I used a static site generator for all of these benefits in the past, but the rebuilding process is a total nightmare.<p>The site has about 20 categories, and each category has about 100 images. Every time the team adds a new image or category, the deployment&#x2F;building task clones the repo and then the build process generates all the optimally sized images again and then re-uploads multiple gigabytes to the host. Is there a way around this type of problem with static site generators?
评论 #32402681 未加载
评论 #32404472 未加载
评论 #32407700 未加载
ryansolidalmost 3 years ago
So excited for this. SSR with Astro is a gamechanger which opens up its usage to so many different avenues. Great strides with framework interop too. Named Slots really closing the gaps.<p>And of course any framework where SolidJS can shine so bright is going to be the top of my list.<p>Congratulations on an amazing release.
WuxiFingerHoldalmost 3 years ago
I&#x27;m developing in-house business apps, so I&#x27;m probably a bit ignorant regarding the new trend of all these SSR&#x2F;hybrid&#x2F;transitional frameworks. But I&#x27;m curious:<p>Is the difference in page loading speed really that significant? SolidJS or Svelte apps with lazy component loading are already pretty fast - Ryan Carnatio has shown some benchmarks on his Youtube streams where the differences are in the ballpark of around 50-500 ms IIRC. Is it a mobile client thing? Or more like &quot;We are Amazon and every 0.1 seconds waiting for the page some xyz customers leave and therefore costs as quite some money&quot;?<p>I mean, those frameworks are really complex. Is it worth it if you already use a fast and small SPA framework like SolidJS or Svelte?
评论 #32408900 未加载
biztosalmost 3 years ago
&gt; What People are Saying<p>&gt; Astro works with the tools you already love, but this requires a lot of effort to get right. Luckily, Astro is supported by some amazing partners across the industry who support our vision for a faster web.<p>Fast&#x2F;easy content-focused websites are a subject dear to my heart but far from my day-jobs, so I&#x27;m always happy to hear about people making the thing I never quite finish making.<p>But the above quote is... weird?<p>The first thing &quot;people&quot; are saying about Astro is it&#x27;s a pain in the butt, however &quot;luckily&quot; you can spend money on companies to make it less so?
评论 #32407943 未加载
progxalmost 3 years ago
Could this not be a complete replacement for Next, Nuxt, SvelteKit, ... ?<p><a href="https:&#x2F;&#x2F;docs.astro.build&#x2F;en&#x2F;comparing-astro-vs-other-tools&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.astro.build&#x2F;en&#x2F;comparing-astro-vs-other-tools&#x2F;</a><p>&quot;Both XXX and Astro are frameworks for building websites. XXX does best with highly dynamic websites (like dashboards and inboxes) while Astro does best with highly static websites (like content and eCommerce websites).&quot;<p>This explanation is used for every XXX framework, but i can&#x27;t really see why. With components you can show high dynamic data, so for me there is no difference if i use XXX or Astro.<p>Did somebody has some real life examples, that could explain the difference?<p>Or why it could be better to stay with XXX and not use Astro.<p>Currently we want to switch our svelte project to SvelteKit, git rid of our custom fiddle (router, etc.). But when i see Astro now, i think about what speak against using Astro? But at the moment it seems that it has many additional benefits?
jlarky2012almost 3 years ago
Congrats guys. Astro+SolidJS is the future :)
dfabulichalmost 3 years ago
Here&#x27;s the link to their &quot;Astro vs. X&quot; page. <a href="https:&#x2F;&#x2F;docs.astro.build&#x2F;en&#x2F;comparing-astro-vs-other-tools&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.astro.build&#x2F;en&#x2F;comparing-astro-vs-other-tools&#x2F;</a><p>They compare Astro to Docusaurus, Elder.js, Eleventy, Gatsby, Hugo, Jekyll, SvelteKit, Next.js, Nuxt, Remix, VuePress, and Zola.<p>(For some reason, this page doesn&#x27;t appear linked anywhere from their documentation&#x27;s table of contents, and isn&#x27;t even linked from the &quot;Why Astro?&quot; page. It&#x27;s almost like they&#x27;re trying to hide it or something!)<p><a href="https:&#x2F;&#x2F;docs.astro.build&#x2F;en&#x2F;concepts&#x2F;why-astro&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.astro.build&#x2F;en&#x2F;concepts&#x2F;why-astro&#x2F;</a>
评论 #32417175 未加载
akmittalalmost 3 years ago
Can anyone explain if it&#x27;s replacement of Next&#x2F;remix to build complex sites or more like a SSG?
评论 #32402399 未加载
评论 #32402045 未加载
nprateemalmost 3 years ago
TBH if it comes with some decent starter templates it&#x27;s a massives step up from what the python world offers.<p>I&#x27;ve been looking to make a simple website recently - landing page, user sign up, taking payments, then access to a simple react one-pager. It&#x27;s all doable but with django you just have to do everything, even if you start with the cookicutter.<p>I just want something where I can pick from a good base template, then get started, not spend days plugging all the parts together. If this helps with that I&#x27;ll check it out. What would you use for the user data? Firebase, etc.?
评论 #32410698 未加载
xpealmost 3 years ago
Publishing with a SSG is so complex (and for many good reasons, as other comments mention). When anything gets this this complex, I pine for an end to end optimization targeting simplicity.<p>And I don&#x27;t think the static site generator is the driving force for complexity here. The web ecosystem really seems nuts when you step back. When it comes to publishing on the web, I would really like to see something simpler gain traction.<p>Browsers are both amazing and amazingly complicated. I would like to see the 80&#x2F;20 rule applied to see what comes after HTML -- maybe a reboot for 2023?<p>Surely I&#x27;m missing something that already exists?
评论 #32406253 未加载
lloydatkinsonalmost 3 years ago
It’s a really great tool I’ve been using since last year. I had previously attempted using Nuxt but that’s a real mess and I never actually got to writing anything. Now I’m using Astro and I’ve got a few articles and it’s a really pleasant developer experience. A lot of static site generators I have found needed more time configuring and writing code for leaving less time in the day for posts etc. I haven’t found this with Astro.<p>The ability to totally not send any JS at all apart from what you manually add such as framework specific components is really something.
mwcampbellalmost 3 years ago
&gt; If your project falls into the second “application” camp, Astro might not be the right choice for your project…<p>Plenty of applications in the second category (logged-in admin dashboards, to-do lists, etc.) have been developed using server-first frameworks, and some of us still prefer to develop web applications that way. Is Astro missing any key features for dynamic server-first applications, e.g. form submission and validation support? If not, I think the Astro developers might be selling Astro and MPAs short.
评论 #32403500 未加载
评论 #32402151 未加载
daemondalmost 3 years ago
There are a lot of open source projects similar to astro. Here is a comparison of the popularity and product iteration trend of them. <a href="https:&#x2F;&#x2F;ossinsight.io&#x2F;collections&#x2F;static-site-generator" rel="nofollow">https:&#x2F;&#x2F;ossinsight.io&#x2F;collections&#x2F;static-site-generator</a> You can see that astro&#x27;s popularity is on the rise. I think it&#x27;s worth keeping an eye on.
zbirdalmost 3 years ago
&gt; Astro was a catalyst that caused developers to ask, ‘Do we really need to ship all that JavaScript?’ The reintroduction of multi-page apps (MPAs) in a modern context is a huge opportunity for developers in the Jamstack ecosystem to make the web better for users.<p>So we&#x27;re back to multi-page websites now? K.<p>I&#x27;m still writing my html and CSS by hand.
knowsuchagencyalmost 3 years ago
How does Astro compare to QWIK <a href="https:&#x2F;&#x2F;qwik.builder.io&#x2F;docs&#x2F;overview" rel="nofollow">https:&#x2F;&#x2F;qwik.builder.io&#x2F;docs&#x2F;overview</a> ? Has anyone tried using both? It seems like they&#x27;re both attempting to address the hydration problem from different angles
评论 #32406783 未加载
lukewiwaalmost 3 years ago
I&#x27;ve been searching for something like this. JSX templates but compiles completely down to static html. Closest I found was `lume` from the deno ecosystem. It&#x27;s mostly fine but you can be a little hamstrung in what js libraries are compatible.<p>Might try this out at some point.
gherkinnnalmost 3 years ago
Excited to see where this goes. For me it fills the niche of simple md -&gt; html with lots of room to expand.<p>I like working with TS, JSX is fab, and I never enjoyed Hugo or Jekyl. Next.js is nice but too much for this case. Gatsby is not nice and doesn’t do much. Astro sounds just about right.
shodan757almost 3 years ago
Not to be &quot;that guy&quot;, but could you please put the language in the title when posting stuff like this? We all have our language preferences, and I&#x27;d rather not have to go digging just to figure out if a project is relevant to me.
评论 #32404553 未加载
jsdevtomalmost 3 years ago
We&#x27;ve built multiple websites with Astro.js, including customer facing ones such as bustinger.com, and love it.<p>Simple to use, blazing fast results. JSX. Use another framework you like inside it (e.g. React, svelte).
rcarralmost 3 years ago
Been using this the last week to convert an 11ty website and really enjoying it so far. Very cool to just be able to use whatever JS framework you want for a component and just drop it in.
thwrowawayalmost 3 years ago
It provides themes; as does Next.js&#x2F;Versel, mui, etc. Are seasoned developers usually forking from these provided designs? What value do you guys ascribe to provided themes?
fullofdevalmost 3 years ago
Currently using Hugo for my static site generator that required blog-like. Otherwise write pure HTML will do it. Congrats for the Astro team though reaching v1!
mouzogualmost 3 years ago
another day, another js framework
avivoalmost 3 years ago
I&#x27;m curious if Astro supports git-backed visual editing? I can&#x27;t seem to find that, but it would rather useful if so! (ala tinacms.io , stackbit, etc.)
recroadalmost 3 years ago
Provide and migration path from Wordpress and I&#x27;m in!
wiradikusumaalmost 3 years ago
Content-focused websites -- so it&#x27;s like Hugo, Jekyll and other static site generators? (the HTMLs are precompiled so we can host just the files)
scastielalmost 3 years ago
Very nice! I was thinking about migrating my blog which has been running with Eleventy for the past few years. It might be the perfect opportunity :)
评论 #32401883 未加载
hestefiskalmost 3 years ago
It looks a bit like serverside Blazor components but with JS as the backend instead of C#?
cube2222almost 3 years ago
This look very cool overall!<p>Could you please explain the tradeoffs vs tools like Hugo and Docusaurus?
评论 #32402350 未加载
gavinrayalmost 3 years ago
Serious question: Why does Astro need a custom file format?<p>The format looks identical to MDX
评论 #32402364 未加载
评论 #32402109 未加载
swyxalmost 3 years ago
congrats team on 1.0!!! huge milestone!<p>inevitable question that always can use answering - what can you share about Astro&#x27;s company business plan&#x2F;business model at this time?
erikthiartalmost 3 years ago
What makes thins better than say PHP + Tailwinds?
oxffalmost 3 years ago
Why does it feel like there are million solutions and wheel reinventions like this. Why can&#x27;t they converge on 1-2 solutions?
评论 #32403410 未加载
pembrookalmost 3 years ago
Is there a static site generator out there that doesn&#x27;t require a ridiculous build process every time I do an update?<p>Inevitably, when a new &quot;hot&quot; SSG comes on the scene, I try it, and then go back to compare it to the old &quot;hot&quot; SSG from 2 years ago. Yet, I can never get the old test site I set up running again without massive annoyances. This has happened multiple times.<p>As far as I&#x27;m concerned, there&#x27;s zero reason your landing pages and blog should require 3,000 dependencies to run.<p>And like all SSGs, I see no mention of sane SEO defaults on the homepage. Let me guess--with Astro I&#x27;m going to have to set all of this up myself?
评论 #32404014 未加载
评论 #32402755 未加载
评论 #32402501 未加载
评论 #32403155 未加载
评论 #32403261 未加载
评论 #32402663 未加载
评论 #32403640 未加载
评论 #32402305 未加载
评论 #32403915 未加载
评论 #32402423 未加载
评论 #32402188 未加载
评论 #32404017 未加载
评论 #32405225 未加载
评论 #32402764 未加载
评论 #32404146 未加载
评论 #32402418 未加载
评论 #32405695 未加载
评论 #32405998 未加载
评论 #32406168 未加载
stoicjumbotronalmost 3 years ago
Really excited for this release!