Lovable Cookbook
38 community-built, battle-tested prompts — copy, adapt, and build faster.
Progressive Web App (PWA) Setup
Make your app installable on mobile devices with offline support, app icons, and native-like experience.
Systematic Error Debugging & Resolution
Structured error reporting template that guides you through providing all context needed for Lovable to diagnose and fix bugs quickly.
Social Media Cards & Sharing Optimization
Set up Open Graph, Twitter Cards, and platform-specific sharing previews with proper image sizing.
Complete Stripe Payment Integration
Set up a production-ready Stripe payment flow with secure key storage, webhooks, pricing tables, and an admin API testing dashboard.
Complete Application Security & RLS Hardening
Lock down your application with Row Level Security, secure API key handling, authentication hardening, and protection against client-side attacks.
Security Requirements Checklist
A comprehensive checklist to audit and verify your application's security posture across database, API, client-side, and authentication layers.
Zero Trust Security Audit & Implementation
Audit your entire application against Zero Trust principles — verify every request, enforce least-privilege access, and eliminate implicit trust.
Red Team Security Scan & Vulnerability Assessment
Simulate a full red team engagement — probe for exploitable vulnerabilities across authentication, database, edge functions, and client-side code.
Production Readiness Checklist & Console Cleanup
Prepare your application for production by removing debug logs, verifying RLS policies, and running a comprehensive go-live checklist.
Resend Email Integration Setup
Complete Resend email integration with edge functions, admin panel, templates, history, and settings management.
SEO Optimization Checklist
Complete search engine optimization setup with meta tags, structured data, sitemaps, and Core Web Vitals optimization.
Production Feature Release Validator
Triple-check your new feature before going live. Validates UI/UX consistency, functional correctness, edge function reliability, and performance impact.
Secrets and Key Management Audit
Scan your project for hardcoded secrets, exposed API keys, and credentials that shouldn't be in client code.
Optimized Image Delivery
Set up modern image optimization with WebP/AVIF conversion, responsive srcsets, lazy loading, and CDN caching.
Build-time Security Constraints
Use BEFORE generating features to enforce security invariants from the start — authorization, validation, secrets, and safe rendering.
Content Security Policy (CSP) Implementation
Add a Content Security Policy to prevent XSS attacks, clickjacking, and code injection by whitelisting trusted content sources.
Post-generation Security Audit
Use AFTER feature generation to verify all security invariants were properly implemented.
Mobile Responsive Design Conversion
Transform your app to be fully mobile-responsive with proper stacking, full-width elements, and optimized touch targets.
Clean Up LM Spaghetti Code
Refactor AI-generated code that has become messy — extract components, consolidate logic, and improve maintainability.
UAT Test Plan Generator
Have Lovable analyze your project and generate a comprehensive UAT test plan tailored to your specific features, flows, and data schema.
Input Validation Contract
Define strict validation schemas for all user inputs using Zod — reject bad data before it reaches your database.
SOC 2 Compliance Audit & Readiness Score
Run a comprehensive SOC 2 readiness review across all 5 Trust Service Criteria. Get a scored checklist (0–100), gap analysis, and prioritized remediation plan.
Egress Cost Optimization & Caching Strategy
Reduce your application's egress costs by optimizing images, storage files, database queries, API responses, and implementing effective caching strategies.
Setup Stripe Promo Codes on Checkout
Add promotional code support to your Stripe checkout with validation, tracking, and customer-friendly error handling.
Build a Viral Referral Program with Tracking
Implement a complete referral system with unique links, reward tracking, and viral loop mechanics.
Platform Marketing Content Generator
Generate comprehensive marketing strategies including social media posts, email sequences, and landing page copy.
Server-side Authorization Matrix (authZ)
Build a complete authorization matrix that enforces access control server-side via RLS and policies.
Magic Link Authentication Setup
Implement passwordless authentication using Supabase magic links, polished login UI, email customization with Resend, secure session handling, and route guards.
Output Encoding and XSS Hardening
Identify unsafe HTML rendering patterns and implement strict sanitization to prevent XSS attacks.
SQL Injection and Data Access Review
Review all database access for injection vulnerabilities — replace string concatenation with parameterized queries.
Typeform-Style User Onboarding Flow
Create a sleek, one-question-at-a-time onboarding experience with progress tracking, validation, and responsive design.
Admin Dashboard with Data Tables
Build a complete admin dashboard featuring data tables with sorting, filtering, pagination, CRUD operations, and role-based access control.
Password Reset with Resend
Set up a complete password reset flow with custom Resend email templates, including forgot password UI and secure token handling.
Edge Function Debugging with Log Analysis
Step-by-step template for debugging edge function issues by providing function context, error details, and log references for systematic diagnosis.
Attack Simulation Sanity Check
Have the AI roleplay as an attacker and attempt to break your app's security — then fix any vulnerabilities found.
User Analytics Dashboard with Recharts
Build a real-time analytics dashboard tracking key metrics like signups, active users, and retention using Recharts, date range filters, and automated aggregation.
Support Ticket System with Admin Management
Create a complete support ticketing system with user-facing submission forms and a full admin panel to manage, prioritize, and resolve tickets.
Application Cost & Performance Audit
Conduct a comprehensive audit of your app's frontend, backend, and infrastructure to identify cost savings and performance improvements.