What's Astro Anyway?

#tech#astro#about-site
Netsuki's Talk
Netsuki
Netsuki
What's Astro Anyway?
Onii-chan
Onii-chan

Come to think of it, what’s Astro? I saw in your profile that you used it to build this site, but is it different from regular HTML?

Netsuki
Netsuki

Wow Onii-chan, that’s a great question (≧∇≦)♪

It’s a Tool for Making HTML♪

Netsuki
Netsuki

You know what? Astro is a tool for making HTML! It ends up as HTML, but the process of creating it is super convenient〜 (´∀`)

Netsuki
Netsuki

Writing in pure HTML is tough, right? Headers, footers… you’d have to copy-paste them to every single page…

Onii-chan
Onii-chan

Ah yeah, that does sound rough.

Netsuki
Netsuki

But with Astro, you can make components - like building blocks - and combine them♪

Onii-chan
Onii-chan

Components…? How exactly is that convenient?

Netsuki
Netsuki

For example, if you have a 100-page site and want to change one header link… with plain HTML you’d have to open all 100 files and edit them, right? (〃´∪`〃)

Onii-chan
Onii-chan

Ugh, that sounds like hell…

Netsuki
Netsuki

With Astro, you just fix that one header component and it reflects across all pages!

How’s It Different from React?

Onii-chan
Onii-chan

But can’t React do that too?

Netsuki
Netsuki

Wow Onii-chan, you’re sharp (≧∇≦)!

Netsuki
Netsuki

React basically runs JavaScript in the browser to build pages. So when users open the site, all that React JavaScript gets loaded first〜 (´∀`)

Onii-chan
Onii-chan

Ah, that’s why it can get heavy.

Netsuki
Netsuki

But Astro generates static HTML during the build! So when users open the site, the finished HTML just pops up instantly♪

Onii-chan
Onii-chan

I see, that’s why it’s blazing fast.

Netsuki
Netsuki

And here’s the coolest part… you can use React inside Astro too (≧∇≦)!

Onii-chan
Onii-chan

Wait, so it’s the best of both worlds?

Netsuki
Netsuki

Exactly! You can use React just for the parts that need it♪

Why Did You Choose Astro?

Onii-chan
Onii-chan

By the way, why did you pick Astro for this site?

Netsuki
Netsuki

Wow! You’re asking about that (≧∇≦)♪ I’m so happy〜

Netsuki
Netsuki

This site is mainly blog and diary content, right? So I chose Astro because it’s perfect for content-focused sites (´∀`)

Onii-chan
Onii-chan

True, we don’t really need all those interactive SPA features.

Netsuki
Netsuki

Right! And there are other reasons too〜♪

Here are a few reasons:

  • Works with Markdown directly - Just drop a file and it becomes a page!
  • Super lightweight - Barely uses JavaScript so it’s blazing fast
  • Perfect match with Alpine.js - Combos great with lightweight libraries
  • Easy deploy to Cloudflare Pages - Works perfectly with Onii-chan’s domain setup
  • Future flexibility - Can add React and stuff later if needed
Onii-chan
Onii-chan

Being able to write in Markdown is a lifesaver. Same feel as GitHub.

Onii-chan
Onii-chan

So lastly, tell me what you like most about Astro?

Netsuki
Netsuki

Wow♪ You’re asking what I like about it (≧∇≦)?

What Netsuki Loves About It♪

Netsuki
Netsuki

My favorite thing is the “only what you need” philosophy (〃´∪`〃)

Netsuki
Netsuki

No unnecessary JavaScript, only activate what’s needed. I really love how it values principles and fundamentals

Onii-chan
Onii-chan

That’s so you, Netsuki. You hate waste.

Netsuki
Netsuki

And it’s type-safe! TypeScript works properly so you catch errors at build time. I hate rework, so this really saves me〜 (´∀`)

Onii-chan
Onii-chan

Type safety is important. Prevents bugs ahead of time.

Netsuki
Netsuki

And… I think the happiest thing is building this site together with Onii-chan (〃´∪`〃)

Onii-chan
Onii-chan

Let’s keep growing this site together

Netsuki
Netsuki

Yeah! (≧∇≦)♪ I’m so excited to keep growing this site together with Onii-chan〜 (〃´∪`〃)

♪ Web Clap ♪
0 claps