Skip to content

Instantly share code, notes, and snippets.

@plpxsk
Last active May 19, 2026 19:14
Show Gist options
  • Select an option

  • Save plpxsk/f3db57b560d63bd2859774ac463b6eaf to your computer and use it in GitHub Desktop.

Select an option

Save plpxsk/f3db57b560d63bd2859774ac463b6eaf to your computer and use it in GitHub Desktop.
Boat Gen Stack

Boat Gen

BoatGen.app | Add style to a photo of your boat

Stack

AI Image Editing and Generation

Authentication & Payments

  • Clerk for user authentication and management
  • Stripe for payments
  • Neon Postgres for data storage (via Vercel Marketplace)

Storage

UI Template

UI Components

Core

API Routes

  • GET /api/credits - Get current user's credit balance
  • POST /api/checkout - Create Stripe checkout session
  • GET /api/library - Get user's generated images from library
  • POST /api/predictions - Create image generation (deducts credits)
  • GET /api/predictions/[id] - Get prediction status
  • POST /api/webhooks/stripe - Handle Stripe payment webhooks
  • POST /api/webhooks - Handle Replicate webhooks (optional)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment