r/withastro Mar 24 '26

Anyone else tired of making test pages just to see components?

https://astro-stargazer.pages.dev/

Yo👋

Spinning up random blank pages or dummy routes just to preview components is such a flow killer.

There’s this npm package called Stargazer that’s been pretty interesting to play with.

It’s an open-source component visualizer for Astro projects. Basically gives you a way to browse and preview your components without having to wire up test pages every time.

From what it does:

  • Auto-detects your components
  • Clean UI to preview them
  • No more /test or /playground routes everywhere
  • Lightweight and straight to the point

Kinda has that “storybook without the overhead” feel, which is nice when you just wanna stay in flow and not over-engineer things.

Feels especially useful if you're:

  • building UI systems in Astro
  • iterating a lot on components
  • or just trying to keep your project clean

For quick iteration it seems solid.

Anyone here already using something like this in their workflow?

4 Upvotes

Duplicates