r/github • • Aug 03 '26

Question GitHub reads the source code wrong?

Post image

I don't know why, but GitHub is telling me that my website is developed in JavaScript by 80+% which is absolute nonsense. The site is at least 60% pure Astro code. Is it some kind of a bug?

🔗 The repo.

277 Upvotes

38 comments sorted by

View all comments

1

u/throw4w4y40 Aug 07 '26

Am I the only one asking "what the hell is astro?"

1

u/wqonart Aug 07 '26

Astro is a web framework and static site generator build on top of Node.js. The Astro code is simply HTML, CSS and JavaScript under the same document with some tweaks and shortcuts. If you know for example 11ty or Jekyll, it is very similar. Astro allows you develop your website faster, with clear project structure and you can code parts of a website as components, create dynamic layouts and set rules, how your page should generate. In the end during build, Astro compile your entire project to simple, lightweight, pure static .html document.

1

u/Local_Interaction_99 Aug 07 '26

That is the definition of a javascript framework… a JAVASCRIPT, the github code analysis is just the endings e.g. .js => javascript it doesnt check for framework)

1

u/wqonart Aug 07 '26

I know, but the redditor asked what is Astro