Platform-Agnostic Astro Migration Framework
This framework adapts the Webflow process to any source platform. The extraction mechanism changes, but the evidence and acceptance model remains stable.
Maturity note: only the Webflow and WordPress paths have been exercised on real production migrations. The rows below for Squarespace, Wix, Drupal, static HTML, and custom content management systems are alpha implementations. They describe the expected shape of each migration but have not been proven end to end. Validate each step against the actual platform and report corrections.
Every platform adapter and migration workflow must preserve the mandatory production gate in PRODUCTION-RELEASE-POLICY.md. The built candidate must pass native iOS Safari Simulator testing and must receive 100 for Performance, Accessibility, Best Practices, and SEO in PageSpeed Insights for both mobile and desktop before production.
Source Platform Matrix
Section titled “Source Platform Matrix”| Source | Primary exports | Common hidden dependencies | Migration emphasis |
|---|---|---|---|
| Webflow | ZIP, CMS CSV, API, DevLink | Generated classes, interactions, hosted assets | Component extraction, CMS mapping, CSS ownership |
| WordPress | REST API, XML, database, media uploads | Shortcodes, plugins, theme templates | Content normalization, redirects, media and SEO metadata |
| Squarespace | XML, page HTML, hosted assets | Blocks, commerce, forms | Block mapping, asset capture, form replacement |
| Wix | API, CSV, rendered pages | Velo code, dynamic datasets | Route discovery, data export, interaction replacement |
| Drupal | JSON:API, database, files | Views, modules, field configuration | Content-type schemas, taxonomy, redirects |
| Static HTML | Files and assets | Inline scripts, server rules | Route inventory, component extraction, metadata cleanup |
| Custom CMS | API, database, templates | Undocumented fields and business rules | Contract discovery, repeatable exporter, validation |
Invariant Migration Tracks
Section titled “Invariant Migration Tracks”Every source should be handled through these tracks:
- Source capture and archive.
- Route and redirect inventory.
- Content model and publication-state mapping.
- Asset discovery and localization.
- Design token and component extraction.
- Interaction replacement.
- Forms and backend integration.
- Metadata, structured data, and discovery.
- Responsive and visual parity.
- Accessibility.
- WebKit and native Safari testing.
- Performance and build optimization.
- Staging and production verification.
Adapter Contract
Section titled “Adapter Contract”A source-platform adapter should emit a common intermediate model:
interface MigratedPage { route: string; legacyUrls: string[]; kind: string; title: string; description?: string; sections: MigratedSection[]; assets: MigratedAssetReference[]; seo?: MigratedSeo; source: SourceEvidence;}The adapter should also emit:
- Asset manifest.
- Redirect map.
- Duplicate report.
- Skipped-record report.
- Unsupported-structure report.
- Source evidence links or file references.
This keeps platform-specific extraction separate from Astro component rendering.
Contribution Opportunity
Section titled “Contribution Opportunity”Future contributors can add:
- Platform adapters.
- Example content schemas.
- Asset downloaders.
- Redirect generators.
- Metadata normalizers.
- Playwright route-audit helpers.
- Visual comparison tools.
- Cloud deployment examples.
- Case studies with measured results.
Adapters should avoid site-specific secrets and should include fixtures or synthetic examples that can be shared publicly.