Generate types, services, and Astro Actions automatically.
pnpm dlx strapi2front@latest
Type-safe
Actions
I18N Ready
Flexible Architecture
Auth Support
Multi-Framework Support
Don't waste time
defining interfaces
strapi2front
reads the Strapi schema
and generates
native Astro Actions.
◇ Project configuration detected ┌ strapi2front setup │ ◇ Detected Configuration ─────╮ │ │ │ Framework: Astro v^5.16.15 │ │ TypeScript: enabled │ │ Package Manager: pnpm │ │ │ ├──────────────────────────────╯ │ ◇ What is your Strapi URL? │ http://localhost:1337 │ ◇ What is your Strapi API token? │ YOUR API TOKEN │ ◇ What version of Strapi are you using? │ Strapi v5 │ ◇ Where should we generate the Strapi files? │ src/strapi │ ◇ What would you like to generate? │ Types, Services, Astro Actions │ ◇ Detected Configuration │ Framework: Astro v5.16.15 │ TypeScript: enabled │ Package Manager: pnpm │ ◇ Setup complete! │ v Created strapi.config.ts │ v Updated .env with Strapi credentials │ │ Next steps: │ 1. Run npx strapi2front sync to generate types │ 2. Import types from src/strapi/types │ 3. Import services from src/strapi/services │ └ Happy Coding!