Astro 7.0

(astro.build)

150 points by saikatsg3 hours ago

13 comments

  • Princesseuh3 hours ago
    I made the Rust compiler and the Rust Markdown pipeline (<a href="https:&#x2F;&#x2F;satteri.bruits.org" rel="nofollow">https:&#x2F;&#x2F;satteri.bruits.org</a>) in this, let me know if you have any questions, glad to answer anything!
    • genshii1 hour ago
      Just moved my astro project over to v7 and saterri the other day. Writing MDAST&#x2F;HAST plugins is <i>so</i> much better&#x2F;easier, so great job there :)
    • ZeWaka2 hours ago
      How does Satteri compare to a standard library like marked (<a href="https:&#x2F;&#x2F;github.com&#x2F;markedjs&#x2F;marked" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;markedjs&#x2F;marked</a>)?
      • Princesseuh2 hours ago
        It depends in what regards you mean, I have some benchmarks here if you&#x27;d like to take a look at those: <a href="https:&#x2F;&#x2F;github.com&#x2F;Princesseuh&#x2F;web-markdown-benchmark" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Princesseuh&#x2F;web-markdown-benchmark</a><p>The TL;DR is that `marked` is very light, but a bit on the slower side compared to Sätteri and `markdown-it` (and its forks). I&#x27;m not sure how friendly the extensibility is, but Sätteri re-use the same AST format as the unified ecosystem, which might feel more friendly.<p>Both good options, though!
        • ZeWaka1 hour ago
          We just use `marked` currently for some light markdown rendering in a game engine. This does look like it offers much better extensibility if we ever needed that - thanks for the clarity!
    • BSTRhino1 hour ago
      Very cool! What was the trickiest part of coding Sätteri?
      • Princesseuh1 hour ago
        It was tough to create a plugin API that was both performant and intuitive. Especially since the library people were migrating from (remark&#x2F;rehype) was very laissez-faire in regard to the data you have access to, visiting patterns, etc.<p>Crossing data between Rust and JS is inherently kinda slow (relatively), so there&#x27;s a constant push and pull between flexibility and performance that&#x27;s not always easy to reason about!
    • toddmorey3 hours ago
      Thanks for your work on this!
    • BorisMelnik2 hours ago
      great job, that is a huge accomplishment.
    • stronglikedan2 hours ago
      love the color scheme
    • keepupnow2 hours ago
      For the good of humanity, I must ask... How much Claude? How much human?
  • pier252 hours ago
    It&#x27;s very cool to see the JS ecosystem reducing dependencies and I hope this trend continues.<p>Astro has gone from 247 deps in v6 to 190 in v7.<p><a href="https:&#x2F;&#x2F;node-modules.dev&#x2F;#install=astro@7.0.6" rel="nofollow">https:&#x2F;&#x2F;node-modules.dev&#x2F;#install=astro@7.0.6</a><p><a href="https:&#x2F;&#x2F;node-modules.dev&#x2F;#install=astro@6.0.0" rel="nofollow">https:&#x2F;&#x2F;node-modules.dev&#x2F;#install=astro@6.0.0</a>
    • Princesseuh2 hours ago
      This was actually part of the reason I made the Rust markdown processing, the unified ecosystem is a lot of deps!<p>I still have some plans in this area that should reduce the overall count further, though.
  • matsemann2 hours ago
    I probably only use 1 % of Astro&#x27;s features, but I like how it&#x27;s enabled me to build static sides as back in the days, but with a build pipeline.<p>So I can use components, reuse stuff, include stuff etc, basically what I would do with PHP back in the days, but now it spits out a compiled page I can host for cheap (often even free). And easy to add in some interactivity when needed. Like I render a list as a component, and very easy to ship some dynamic filtering on the frontend using the same code, but the content is still statically in the html, so served fast and good SEO.
  • keepupnow3 hours ago
    &quot;The .astro compiler has been rewritten in Rust.&quot;.<p>I&#x27;m personally awaiting the rewrite to assembly.
    • wofo1 hour ago
      Rust is so powerful it rewrites your code to assembly on-demand every time you compile ;)
  • AgentME1 hour ago
    The AI Enhancements section was interesting. I&#x27;ve been wondering about the best practices for agents interacting with long-running dev servers, and Astro 7&#x27;s approach (run in background and have a logs command) seems like a good model.
  • microflash2 hours ago
    The switch to strict HTML compilation is just not cool, and actively prevents upgrading sites which need to deal with remote content that is not written in strict HTML.<p>I also wish there could be a general purpose content processing API so I can plug a different format than markdown (such as typst)
    • Princesseuh2 hours ago
      This does not affect remote content, only the content written in .astro files. If you have remote content you&#x27;d use something like `set:html`: <a href="https:&#x2F;&#x2F;docs.astro.build&#x2F;en&#x2F;reference&#x2F;directives-reference&#x2F;#sethtml" rel="nofollow">https:&#x2F;&#x2F;docs.astro.build&#x2F;en&#x2F;reference&#x2F;directives-reference&#x2F;#...</a><p>See this example: <a href="https:&#x2F;&#x2F;stackblitz.com&#x2F;edit&#x2F;github-ug3paw61?file=src%2Fpages%2Findex.astro" rel="nofollow">https:&#x2F;&#x2F;stackblitz.com&#x2F;edit&#x2F;github-ug3paw61?file=src%2Fpages...</a>
      • microflash2 hours ago
        Unfortunately, I&#x27;ve also come across .astro files that I&#x27;m not allowed to touch and yet have to work with them (some internal corporate dinosaur which has not been updated for a while).<p>For my personal site, it was a 5 minute work, as usual :)
    • BorisMelnik2 hours ago
      this terrified me lol I&#x27;m on 5.1.x on most of my sites
  • cassidoo2 hours ago
    I upgraded my website recently and it&#x27;s exciting! That being said, I admit my builds didn&#x27;t get faster (they actually on average slowed down a bit). Hopefully that improves, but worth noting.
    • MatthewPhillips1 hour ago
      How many pages is it? The performance improvements are mostly for larger sites (thousands of pages) and especially when using a lot of MDX.<p>We&#x27;re working on incremental builds which should help as well: <a href="https:&#x2F;&#x2F;github.com&#x2F;withastro&#x2F;roadmap&#x2F;issues&#x2F;1388" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;withastro&#x2F;roadmap&#x2F;issues&#x2F;1388</a>
  • fnoef2 hours ago
    I really really like Astro, but I&#x27;m either getting old or it&#x27;s something else.<p>I just recently updated my website to Astro 6 and now... there&#x27;s Astro 7. Maybe by the time I update, Astro 8 will be a few weeks in the future.
    • MatthewPhillips1 hour ago
      We unfortunately released Astro 6 only a few weeks before Vite 8 &#x2F; Rolldown came out, which is why we did Astro 7 so soon. But there are very few breaking changes compared to Astro 6. That being said, some of these performance improvements (the Sätteri processor) are available in Astro 6 too.
    • ulimn2 hours ago
      (As an outsider, ) I suspect it&#x27;s because the Rust rewrite was big enough to bump the main version number.
      • Princesseuh2 hours ago
        It was partially that, but mostly the Vite version with the Rolldown bundling etc. We typically always need to do a major whenever Vite releases one because it tends to impact us a lot compared to other frameworks for various reasons.
  • mordras1 hour ago
    For me currently nothing beats Astro + Claude Code for building sites, maybe with some image generator sprinkled in. Build time improvements are always welcome, great job!
  • shay_ker1 hour ago
    I saw the integration with Hono - hadn&#x27;t heard of it before, do many people use it?
  • stevoo2 hours ago
    I have been trying to convince my marketing department to replace there archaic wordpress with an Astro build with AstroCMS and markdown for there needs.<p>I have build several sites using Astro 6, and i am finding the ease of building the sites amazing and exceptional in SEO as well.
  • big_toast2 hours ago
    Are these typical build speeds on static sites these days? It&#x27;s slower than I expected for a rust re-write. (Or I guess maybe the portion re-written in rust is only a small part of the build pipeline time?)<p>My understanding is that astro isn&#x27;t considered particularly slow?
    • Princesseuh29 minutes ago
      Yeah, the parts rewritten in Rust here as only parts of the bottleneck. A lot of it is still JavaScript (including the user&#x27;s code!). If Astro was just .md -&gt; HTML, it&#x27;d of course be much faster.
  • turkeyboi2 hours ago
    Exhausting