What is Astro?
Astro is a web framework made to build fast, content-focused websites. It focuses on delivering HTML to the browser while only loading JavaScript when it is needed for interactive components. Astro renders components into HTML by default. When a component needs interactivity, JavaScript can be added to the page. This helps keep websites lightweight while still allowing developers to create interactive experiences.
You could even use JavaScript UI components, CSS libraries, themes, and integrations into your own project so the customization is endless! One of Astro’s most interesting features is its Island Architecture. This allows developers to build a page mostly with static HTML while adding interactive components, or “islands,” wherever they are needed. For example, a blog could have a static article with an interactive comment section. Only the interactive part needs to load JavaScript, helping keep the website fast.
But what should you use it for? Well, most people use it for blogs, portfolios, landing pages, documentation, and more. With all these benefits, I thought it would be fun to give Astro a try. Maybe you should too!
Why I Started Working with Astro
It began with my starting position as a software developer intern at VPRO. Most of the projects were run with the framework, and I needed to adapt to that way of working. I read the documentation of Astro that they provided and started my own test project. With my beginner-level knowledge of web development I only tested the island architecture and how it worked. My skills with HTML/CSS and JavaScript were also not the best, so I thought it would be the best if I could try and learn as much as possible with Astro whilst also learning more and more coding languages.
My Experience So Far
I would say as of right now I’m still learning a lot of new ways to implement things with Astro. My next goal is to experiment with JavaScript UI components and CSS libraries in Astro. I want to understand how these tools can work together and how they can improve the functionality and design of my projects. With my current internship going on, I will hopefully have a new way of looking at Astro at the end of the intern period.
Whilst making this blog, I also have it working with the Astro framework to get even more experience because I want to have the full package! Currently, this blog is also made with a template, which means a good goal for me is to learn how its components, layouts and pages work together. With that I could gradually make it more of my own style.
What I Have Learned
Working with Astro has helped me improve my understanding of web development.
Some of the things I have learned so far with VPRO:
- Built a Tips page with scoped CSS and Astro layouts, reducing duplicated markup across pages. It was used as a documentation tool for how the use the project. With my struggle point having to try and figure out the custom elements provided with the importing the Thematic classification to the HTML file.”
- Had 1 on 1 coaching from my internship supervisor on the basics of Astro like updating node modules and making shortcut commands with the package.json.
For projects you can look for them on https://www.vpro.nl/vpro-medialab and search for:
The VPRO projects that are named are not on the site yet except for Digitaal noodpakket you can find it here: https://digitaal-noodpakket.vpro.nl/. The rest are still internal.
Content transformaties - A tool that transcribes audio files and uses AI to automatically generate clips.
archief ontsluiting - A search tool that helps users find relevant videos in an archive.
Digitaal noodpakket - A digital emergency kit designed to provide useful tools and information when internet access is unavailable.
Some of the things I learned so far with the making of this blog:
- Learned how to organize site content with Astro content collections and typed frontmatter for blog posts, so new articles can be added as Markdown files without touching the layout.
- Learning how to start from a template to a completely new project effectively by reading the documentation provided by the author.
For the content of this blog you can go to this github link https://github.com/notsosaltyasiankid/CodingBlog
Looking Ahead
Astro is really a fun tool to work with it really made me have fun with coding again after a long time! I’ve also noticed that other companies are using Astro, so developing my skills with it could be valuable for my future as a software developer.
Of course, I still have a lot to learn, but I see Astro as a good starting point. I’m looking forward to discovering more about the framework, improving my coding skills, and seeing how my projects develop over time.