🎨 OG Template Manager

Customize how your flipbook preview looks on Discord, Twitter, Facebook, and WhatsApp.

📋 Rules for Your og-generator.js File

📖 How to Create a Custom Template

  1. Download the current default template using the button below.
  2. Edit the React.createElement styles (fonts, colors, layout, blur amount, image size, etc.).
  3. Test it locally by uploading below. The API will automatically restart.
  4. Test the result by sharing a flipbook link on Discord or visiting /api/og/YOUR_FLIPBOOK_ID.
  5. If something breaks, the backup is saved automatically (check the success message for the backup path).
📥 Download Default Template (og-design-default.js)

⬆️ Upload Your Custom Template

Upload a custom og-generator.js file to replace the current design.

⚠️ Automatic Backup: The system creates a backup before replacing your file.
Backup path: /opt/flipbook-api/og-generator.backup.[timestamp].js

🔄 Alternative Methods

Via SSH (Manual):

nano /opt/flipbook-api/og-generator.js pm2 restart flipbook-api

Via cURL (Command Line):

curl -X POST https://flipbook.gitgpt.chat/api/og/upload-template -F "file=@my-custom-og.js"
🔍 Preview OG Image | 📊 OG Stats | 📚 Flipbook History