Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Official Astro 6 template for Mindful Auth authentication on Cloudflare Workers with D1/Tape storage.
Mindful Auth Astro 6 Template is an official public boilerplate that gives Astro 6 developers a pre-configured authentication stack backed by Cloudflare Workers and D1 or Tape databases.
This template is a starting point for building an Astro 6 application with a complete authentication system handled by Mindful Auth. It runs on Cloudflare Workers, uses Astro 6's Content Layer, Middleware, and CSP, and stores user data in your own Cloudflare D1 or Tape instance. The project is published by Mindful Auth and maintained by contributor lomaymi. It produces a deployable Astro site with login flows, account management, and bot protection included.
npm run build then npx wrangler deploy to push the project to the edge.The quick start requires creating a Mindful Auth account, setting up the frontend from this template, adding Cloudflare Turnstile credentials, configuring email webhooks (Postmark, Resend, or n8n/Make/Zapier), initializing the backend with D1 Tables or a Tape Workspace, onboarding your deployment hostname, and deploying the worker. An INTERNAL_API_KEY must be added as an encrypted secret in the Cloudflare dashboard, never in .env.
You need Node.js 22+, a Cloudflare account (the free tier works for D1 and Workers), Turnstile Site and Secret Keys, a registered subdomain for the Mindful Auth dashboard, and the Wrangler CLI installed and authenticated.
Yes, Turnstile site and secret keys are required for bot protection. They are free from Cloudflare.
Email flows are not bundled directly; the README instructs you to connect Postmark, Resend, or automation tools like Make, n8n, or Zapier to handle transactional emails.
The project is specifically engineered for Cloudflare Workers and D1; the Wrangler config and deployment steps are tied to that platform.
