Anyone use astro.build with Meteor?

It seems like

could be a good pairing with Meteor for a few scenarios:

  • build static front ends with Astro using any framework (React, Vue, Svelte, Solid, Angular, etc) with ahead-of-time static site generation (SSG), and connect them to Meteor backends
    • I have a repo that shows how to import Meteor into a plain static frontend, technically any frontend could be easily connected to Meteor
  • Astro has a backend that includes server-side rendering (SSR) for all modern frameworks (with a plugin system for hooking up non-officially supported frameworks to SSR). This means it may be possible to import Meteor APIs into Astro’s backend
    • I haven’t tried this yet

By taking advantage of Astro, Meteor might be able to take advantage of its framework-agnostic way of supporting SSR and SSG, expanding its reach to all modern frameworks in a single way that lifts the work off of Meteor’s own shoulders and gives the SSR/SSG benefits to more Meteor users regardless of their frontend framework.

Basically Astro.js is similar to Next.js, Nuxt, SvelteKit, and other similar meta frameworks, but the difference between those and Astro is that those support a single component system, while Astro supports all popular components systems (with plugins to easily add more).

3 Likes

It’s an great idea. Is it possible?