schultek / jaspr

Modern web framework for building websites in Dart. Supports SPAs, SSR and SSG.
https://jasprpad.schultek.de
MIT License
1.26k stars 78 forks source link

feat: bot detecting + go_router integration for rendering otherwise flutter web #329

Open JohnGalt1717 opened 5 days ago

JohnGalt1717 commented 5 days ago

Description

Right now Flutter is horrible for SEO because even if you were to use some sort of pre-rendering tool, it is generating canvas. Meanwhile Jaspr provides a great rendering system that is super friendly for SEO.

If Jaspr integrated with standard flutter and provided tooling to take go_router and source generate the same urls for jaspr so that we could share all of the same code, and generate simple versions of all of the routes for the search engine bots, we could have the best of both worlds where the bots got their SEO and everyone else got the rich Flutter client.

If there was a way to create a hybrid project that generated both in the same project and setup the rules so that the auto-rendering occured, this would be the best of all worlds.

Additional Context

The intent here is to provide a side-by-side rendering for each page that you care about from your flutter app that would render using jaspr only for the SEO bots, and every other case would use the Flutter SPA.

schultek commented 2 days ago

You can certainly set this up for yourself. Ideally even make a package that does this.

I wouldn't see this as a feature for Jaspr itself though.

JohnGalt1717 commented 1 day ago

Any guidance on how to integrate it with go_router?