{"slug": "how-we-made-a-185-page-flutter-web-app-readable-by-google-and-ai-crawlers", "title": "How we made a 185-page Flutter web app readable by Google and AI crawlers", "summary": "The team behind TypeorDrop, a free Flutter web file-tools site with 185 public URLs, built an open-source Python tool (nexina/flutter-web-seo) that generates per-route static HTML shells at deploy time, giving crawlers real titles, meta tags, structured data and a visually-hidden text block without server-side rendering or headless Chrome. The Merge Word page now exposes 1,104 words to non-JavaScript crawlers instead of the default Flutter shell, and nginx fixes eliminated duplicate slash variants, junk index.html URLs and noindexed code assets. In one week of logs, Googlebot made 717 requests, bingbot 193, ClaudeBot 142, OAI-SearchBot 97, ChatGPT-User 34 and GPTBot 24.", "body_md": "Flutter web draws your app onto a canvas. That is great for users and terrible for crawlers: a fresh `flutter build web` hands Google a page with almost no text, no headings and the same title on every route.\n\nWe run [TypeorDrop](https://www.typeordrop.com), a free file-tools site (PDF, Word, image, audio and video converters) built entirely in Flutter web. It has 185 public URLs. This is how we made every one of them readable without server-side rendering, headless Chrome, or changing a single widget, and what crawlers actually did afterwards.\n\nThe generic tooling is open source: **[nexina/flutter-web-seo](https://github.com/nexina/flutter-web-seo)** (MIT, Python, no dependencies).\n\nAt deploy time, after `flutter build web`, a script takes the built `index.html` as a template and writes one copy per route, for example `/merge-docx/index.html`. Each copy gets:\n\n`<title>`, meta description, canonical URL, Open Graph and Twitter tags`SoftwareApplication`, `BreadcrumbList`, `FAQPage` where there is an FAQ`#seo-content` block\nThe server serves `/merge-docx` straight from `/merge-docx/index.html`. A crawler that runs no JavaScript sees a normal document. A user sees Flutter.\n\nOn our Merge Word page, a crawler without JavaScript now sees **1,104 words** of real content, where it used to see the default Flutter shell.\n\nThe text block must not be `display: none`. We clip it to 1 px (a `visually-hidden` class), keep it in the DOM next to the Flutter host, and never remove it when Flutter mounts. Screen readers can still reach it, and it shows the same content the app shows, so it is not cloaking. A `<noscript>` rule reveals it fully, and if Flutter has not booted after 20 seconds, the page shows it as a plain fallback.\n\nOur shells are generated from the same database rows the app uses (title, H1, intro, steps, FAQ per tool), plus Markdown for blog posts. Change a row, redeploy, and the page and the app agree. The build stops on mistakes: titles over 60 characters, descriptions outside 120 to 160 characters, duplicate titles, a sitemap URL without a page file.\n\nMost Flutter SEO packages stop at the HTML. Half our problems were in nginx:\n\n`/convert-pdf-to-word` and `/convert-pdf-to-word/` were both indexed and ranked 12 positions apart. Now every `/x/` gets a permanent 301 to `/x` in one hop, and `http`, apex and slash variants all reach the final URL in a single redirect.`try_files $uri $uri/index.html @app;` serves `/x/index.html` internally, so nginx never answers with its own 301 to `index.html` and status 200, so Google indexes junk URLs. We keep a generated list of known app routes; anything else gets a real 404.`noindex` on code.`*.js`, `*.mjs`, `*.wasm` and `*.json` get `X-Robots-Tag: noindex`. Crawlers can still fetch them to render, but they don't show up as pages.\nThe repo includes an example nginx config with all four.\n\n`<lastmod>` comes from real change dates (the database row's `updated_at`, or the git date of the source file), never \"today\". A sitemap where everything changed today teaches Google to ignore your dates.`llms.txt` so AI assistants get a short, accurate description of the site.\nFrom our nginx logs for one week (14 to 21 November 2026), counting requests by user agent:\n\n| Crawler | Requests | \n|---|---|\n| Googlebot | 717 | \n| bingbot | 193 | \n| ClaudeBot | 142 | \n| OAI-SearchBot | 97 | \n| ChatGPT-User | 34 | \n| GPTBot | 24 | \n\n`ChatGPT-User` is a person's ChatGPT fetching one of our pages to answer a question, in real time. That only works if the page has text in its HTML. A canvas-only Flutter page gives the assistant nothing to quote.\n\nOne trap: `Google-Extended` is a robots.txt token, not a user agent. It never appears in logs, so a zero there means nothing.\n\nReadable HTML is half the job; Core Web Vitals are the other half. Our mobile PageSpeed score was 60, with 9.9 seconds of Total Blocking Time. Flutter's multi-threaded web renderer needs cross-origin isolation, so we sent two headers:\n\n```\nCross-Origin-Opener-Policy: same-origin\nCross-Origin-Embedder-Policy: credentialless\n```\n\nMobile TBT dropped to **0.2 s** and the home page scored **89**. Browsers without support fall back to the single-threaded renderer automatically. `credentialless` matters if you load third-party iframes: `require-corp` would break most of them.\n\nProbably not if your app sits behind a login: nothing crawls it. If your Flutter web app has public pages that should be found, you have options:\n\n`seo`` esen_seo``hydraline`` flutter_prerender``flutter-web-seo`\nPick the one that matches where your content lives. Ours lives in a database, so generating shells from data was the simplest thing that could work, and it has run in production on every deploy since October.\n\nIf you try it, issues and pull requests are welcome.", "url": "https://wpnews.pro/news/how-we-made-a-185-page-flutter-web-app-readable-by-google-and-ai-crawlers", "canonical_source": "https://dev.to/101rakibulhasan/how-we-made-a-185-page-flutter-web-app-readable-by-google-and-ai-crawlers-nmo", "published_at": "2026-11-24 10:10:34+00:00", "updated_at": "2026-11-24 10:12:46.616561+00:00", "lang": "en", "topics": ["generative-engine-optimization", "ai-crawlers", "ai-search", "structured-data", "developer-tools"], "entities": ["TypeorDrop", "nexina/flutter-web-seo", "Flutter", "Googlebot", "ClaudeBot", "OAI-SearchBot", "GPTBot", "nginx"], "also_reported_by": [], "takeaway": "Generating one static HTML shell per route at deploy time from the same database rows as the app gave a JavaScript-free crawler 1,104 words on the Merge Word page, with the text clipped to 1px rather than display:none so it stays in the DOM and remains accessible.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/how-we-made-a-185-page-flutter-web-app-readable-by-google-and-ai-crawlers", "markdown": "https://wpnews.pro/news/how-we-made-a-185-page-flutter-web-app-readable-by-google-and-ai-crawlers.md", "text": "https://wpnews.pro/news/how-we-made-a-185-page-flutter-web-app-readable-by-google-and-ai-crawlers.txt", "jsonld": "https://wpnews.pro/news/how-we-made-a-185-page-flutter-web-app-readable-by-google-and-ai-crawlers.jsonld"}}