News for hackers. Stuff that matters.
Re:From Gatsby gridlock to Astro bliss: my personal site red... by jwngr on Thursday September 26, 2024 @03:02PM (#41661942)
I felt the same way! But I came around. Take a look at the source code for a component [1]. The .astro format is pretty much just TS, CSS, and HTML. I don't even need React anymore. Way less glue code and dependencies than with Gatsby. There is a configuration file and some abstractions for things like collections, but almost everything is opt-in.

[1] https://github.com/jwngr/jwn.gr/blob/master/src/components/b...

Re:From Gatsby gridlock to Astro bliss: my personal site red... by dimitrisnl on Thursday September 26, 2024 @03:06PM (#41661990)
It looks great, but that's a DSL I must learn and re-use nowhere else.
Re:From Gatsby gridlock to Astro bliss: my personal site red... by cpursley on Thursday September 26, 2024 @03:35PM (#41662316)
There's not really any DSL. You just put some TS in the frontmatter for fetching/transforming at build time, TS in a script tab (if needed) and the html is just basic templating that takes props.