quote-api / frontend /index.html
ilhamdev's picture
fix(navbar): resolve mobile header collision, reflow secondary actions to drawer, and pass anti-slop audit
beff9f5
Raw History Blame Contribute Delete
45.8 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Telegram Quote Maker & Generator REST API | Mang Rusdi</title>
<meta name="description"
content="Generate high-resolution Telegram chat bubble quotes, transparent stickers, and vertical stories. Web customizer and public REST API on qc.mangrusdi.my.id." />
<meta name="keywords"
content="telegram quote generator, fake chat maker, quotly api, telegram sticker quote, quote maker web, telegram bot api" />
<meta name="author" content="Rusdi Ilham" />
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />
<meta name="google-site-verification" content="GSC_VERIFICATION_TOKEN" />
<link rel="canonical" href="https://qc.mangrusdi.my.id/" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<meta property="og:url" content="https://qc.mangrusdi.my.id/" />
<meta property="og:site_name" content="Quote Studio" />
<meta property="og:title" content="Telegram Quote Maker & Generator REST API" />
<meta property="og:description"
content="Generate high-resolution Telegram chat bubble quotes, transparent stickers, and vertical stories with real-time preview and free REST API." />
<meta property="og:image" content="https://qc.mangrusdi.my.id/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Telegram Quote Studio Interface" />
<!-- Twitter Cards -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Telegram Quote Maker & Generator REST API" />
<meta name="twitter:description"
content="Generate high-resolution Telegram chat bubble quotes, transparent stickers, and vertical stories with real-time preview and free REST API." />
<meta name="twitter:image" content="https://qc.mangrusdi.my.id/og-image.png" />
<!-- JSON-LD Structured Data for Google Search Console (App, Org, FAQ, Breadcrumbs) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebApplication",
"@id": "https://qc.mangrusdi.my.id/#app",
"name": "Telegram Quote Maker & Generator REST API",
"url": "https://qc.mangrusdi.my.id/",
"applicationCategory": "MultimediaApplication",
"operatingSystem": "All",
"inLanguage": "en",
"description": "Generate Telegram message bubble quotes, transparent stickers, and 9:16 vertical stories with live preview and open REST API endpoints.",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"author": {
"@type": "Person",
"name": "Rusdi Ilham",
"url": "https://github.com/RusdiEneri"
}
},
{
"@type": "Organization",
"@id": "https://qc.mangrusdi.my.id/#organization",
"name": "Hisoka Labs",
"url": "https://qc.mangrusdi.my.id/",
"logo": "https://qc.mangrusdi.my.id/favicon.png",
"sameAs": [
"https://github.com/RusdiEneri",
"https://github.com/RusdiEneri/quote"
]
},
{
"@type": "BreadcrumbList",
"@id": "https://qc.mangrusdi.my.id/#breadcrumbs",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://qc.mangrusdi.my.id/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Studio Customizer",
"item": "https://qc.mangrusdi.my.id/#studio"
},
{
"@type": "ListItem",
"position": 3,
"name": "REST API Documentation",
"item": "https://qc.mangrusdi.my.id/#api-docs"
},
{
"@type": "ListItem",
"position": 4,
"name": "FAQ",
"item": "https://qc.mangrusdi.my.id/#faq"
}
]
},
{
"@type": "FAQPage",
"@id": "https://qc.mangrusdi.my.id/#faq",
"mainEntity": [
{
"@type": "Question",
"name": "How to generate quote stickers using the REST API?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Send an HTTP POST request to https://qc.mangrusdi.my.id/generate with Content-Type: application/json and a messages array payload containing sender details and message text. The server returns high resolution PNG or WebP image data."
}
},
{
"@type": "Question",
"name": "Which output formats are supported?",
"acceptedAnswer": {
"@type": "Answer",
"text": "The API supports PNG lossless image rendering with full alpha transparency, as well as WebP format for optimized file size in web and bot integrations."
}
},
{
"@type": "Question",
"name": "Can I use custom avatar pictures?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. Provide a public image URL or upload an image file through the web customizer, which converts local photos into base64 format automatically."
}
},
{
"@type": "Question",
"name": "Is there a health check endpoint?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes, send an HTTP GET request to https://qc.mangrusdi.my.id/status to check server uptime and operational status."
}
}
]
}
]
}
</script>
<!-- Fonts & Icons -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
rel="stylesheet" />
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="alternate icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/favicon.png" />
<!-- Stylesheets -->
<link rel="stylesheet" href="./src/styles/base.css" />
<link rel="stylesheet" href="./src/styles/components.css" />
<link rel="stylesheet" href="./src/styles/preview.css" />
</head>
<body>
<div id="app" class="app-layout">
<!-- Top Navbar -->
<header class="navbar">
<a href="#studio" class="brand" title="Quote Studio Home">
<img src="/favicon.png" alt="Quote Studio Logo" class="brand-logo" width="44" height="44" />
<div class="brand-title-wrap">
<h1 class="brand-title">Quote Studio <span class="brand-tag">Neubrutal</span></h1>
<p class="brand-sub">Telegram Quote Generator & REST API</p>
</div>
</a>
<nav class="nav-links" aria-label="Page Navigation">
<a href="#studio" class="nav-anchor">Studio</a>
<a href="#api-docs" class="nav-anchor">API Endpoints</a>
<a href="#specs" class="nav-anchor">Formats</a>
<a href="#faq" class="nav-anchor">FAQ</a>
<div class="mobile-nav-divider"></div>
<a href="https://wa.me/6281233649676?text=Halo%20Mang%20Rusdi%2C%20saya%20tertarik%20dengan%20Quote%20Studio%20API"
target="_blank" rel="noopener noreferrer" class="nav-anchor mobile-drawer-btn mobile-drawer-wa" data-track="click_wa"
title="Chat Developer via WhatsApp">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor">
<path
d="M12.04 2c-5.46 0-9.91 4.45-9.91 9.91 0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38c1.45.79 3.08 1.21 4.74 1.21 5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.816 9.816 0 0 0 12.04 2m.01 1.67c2.2 0 4.26.86 5.82 2.41a8.176 8.176 0 0 1 2.41 5.83c0 4.54-3.7 8.24-8.24 8.24-1.48 0-2.93-.4-4.2-1.15l-.3-.18-3.12.82.83-3.04-.2-.31a8.21 8.21 0 0 1-1.26-4.38c0-4.54 3.7-8.24 8.24-8.24m4.52 11.53c-.25-.13-1.47-.72-1.7-.81-.23-.08-.39-.13-.56.13-.17.25-.64.81-.79.97-.14.17-.29.19-.54.06-.25-.13-1.06-.39-2.02-1.25-.75-.67-1.26-1.5-1.41-1.75-.14-.25-.02-.39.11-.51.11-.11.25-.29.38-.44.12-.14.17-.25.25-.42.08-.17.04-.31-.02-.44-.06-.13-.56-1.34-.76-1.84-.2-.48-.41-.42-.56-.43h-.48c-.17 0-.44.06-.67.31-.23.25-.88.86-.88 2.1s.9 2.44 1.03 2.61c.12.17 1.77 2.7 4.29 3.79.6.26 1.07.41 1.44.53.6.19 1.15.16 1.58.1.48-.07 1.47-.6 1.68-1.18.21-.58.21-1.07.15-1.18-.06-.11-.23-.17-.48-.29z" />
</svg>
<span>Chat via WhatsApp</span>
</a>
<a href="https://github.com/RusdiEneri/quote" target="_blank" rel="noopener noreferrer"
class="nav-anchor mobile-drawer-btn mobile-drawer-github" title="GitHub Repository">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path
d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22">
</path>
</svg>
<span>GitHub Repository</span>
</a>
</nav>
<div class="nav-actions">
<div id="apiStatusBadge" class="status-badge checking">
<span class="status-dot"></span>
<span id="apiStatusText" class="status-text">Checking API...</span>
</div>
<!-- Neubrutalism Light / Dark Mode Toggle -->
<button type="button" id="themeToggleBtn" class="theme-toggle-btn" title="Toggle Light / Dark Mode"
aria-label="Toggle Light or Dark Theme">
<svg id="themeIconSun" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2.5">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
<svg id="themeIconMoon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2.5" style="display: none;">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button>
<a href="https://wa.me/6281233649676?text=Halo%20Mang%20Rusdi%2C%20saya%20tertarik%20dengan%20Quote%20Studio%20API"
target="_blank" rel="noopener noreferrer" class="whatsapp-btn" data-track="click_wa"
title="Chat Developer via WhatsApp">
<svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor">
<path
d="M12.04 2c-5.46 0-9.91 4.45-9.91 9.91 0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38c1.45.79 3.08 1.21 4.74 1.21 5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.816 9.816 0 0 0 12.04 2m.01 1.67c2.2 0 4.26.86 5.82 2.41a8.176 8.176 0 0 1 2.41 5.83c0 4.54-3.7 8.24-8.24 8.24-1.48 0-2.93-.4-4.2-1.15l-.3-.18-3.12.82.83-3.04-.2-.31a8.21 8.21 0 0 1-1.26-4.38c0-4.54 3.7-8.24 8.24-8.24m4.52 11.53c-.25-.13-1.47-.72-1.7-.81-.23-.08-.39-.13-.56.13-.17.25-.64.81-.79.97-.14.17-.29.19-.54.06-.25-.13-1.06-.39-2.02-1.25-.75-.67-1.26-1.5-1.41-1.75-.14-.25-.02-.39.11-.51.11-.11.25-.29.38-.44.12-.14.17-.25.25-.42.08-.17.04-.31-.02-.44-.06-.13-.56-1.34-.76-1.84-.2-.48-.41-.42-.56-.43h-.48c-.17 0-.44.06-.67.31-.23.25-.88.86-.88 2.1s.9 2.44 1.03 2.61c.12.17 1.77 2.7 4.29 3.79.6.26 1.07.41 1.44.53.6.19 1.15.16 1.58.1.48-.07 1.47-.6 1.68-1.18.21-.58.21-1.07.15-1.18-.06-.11-.23-.17-.48-.29z" />
</svg>
<span>WhatsApp</span>
</a>
<a href="https://github.com/RusdiEneri/quote" target="_blank" rel="noopener noreferrer" class="nav-link-btn"
title="GitHub Repository">
<span>GitHub</span>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path
d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22">
</path>
</svg>
</a>
<button type="button" class="mobile-menu-btn" id="mobileMenuBtn" aria-label="Toggle navigation menu"
aria-expanded="false">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="3" y1="6" x2="21" y2="6"></line>
<line x1="3" y1="12" x2="21" y2="12"></line>
<line x1="3" y1="18" x2="21" y2="18"></line>
</svg>
</button>
</div>
</header>
<!-- Breadcrumb Navigation Bar (Point 6) -->
<nav aria-label="Breadcrumb" class="breadcrumb-nav">
<ol class="breadcrumb-list">
<li class="breadcrumb-item"><a href="/">Home</a></li>
<li class="breadcrumb-sep" aria-hidden="true">/</li>
<li class="breadcrumb-item"><a href="#studio">Studio</a></li>
<li class="breadcrumb-sep" aria-hidden="true">/</li>
<li class="breadcrumb-item current" aria-current="page">Customizer</li>
</ol>
</nav>
<!-- Mobile View Switcher (Visible on small screens) -->
<div class="mobile-studio-switcher" role="tablist" aria-label="Studio View Switcher">
<button type="button" class="studio-tab-btn active" id="tabEditorBtn" role="tab" aria-selected="true"
aria-controls="editorPanel">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 20h9"></path>
<path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>
</svg>
<span>Customizer</span>
</button>
<button type="button" class="studio-tab-btn" id="tabPreviewBtn" role="tab" aria-selected="false"
aria-controls="previewPanel">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
<span>Live Preview</span>
<span class="tab-badge" id="previewBadgeLive">Live</span>
</button>
</div>
<!-- Main Studio Grid -->
<main class="studio-container" id="studio">
<!-- Left: Form Controls Panel -->
<section class="panel editor-panel active-mobile-view" id="editorPanel" aria-labelledby="editorHeading">
<div class="panel-header">
<h2 id="editorHeading" class="panel-title">Quote Customizer</h2>
<button id="resetFormBtn" type="button" class="btn-text" data-track="click_cta_reset"
title="Reset form to default values">Reset</button>
</div>
<form id="quoteForm" class="editor-form" autocomplete="off">
<!-- Anti-Spam Honeypot (Point 13) -->
<div class="hp-trap" aria-hidden="true">
<label for="hpWebsite">Leave this field blank</label>
<input type="text" id="hpWebsite" name="hp_website" tabindex="-1" autocomplete="off" />
</div>
<!-- Section: Sender Info -->
<div class="form-section" role="group" aria-labelledby="senderInfoHeading">
<div class="section-title" id="senderInfoHeading">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
<circle cx="12" cy="7" r="4"></circle>
</svg>
<span>Sender Information</span>
</div>
<div class="form-row">
<div class="form-group flex-2">
<label for="senderName">Sender Name <span class="required">*</span></label>
<input type="text" id="senderName" name="senderName" class="form-input" value="Mang Rusdi"
maxlength="64" placeholder="e.g. Rusdi Ilham" required />
</div>
<div class="form-group flex-1">
<label for="senderTitle">Role / Tag</label>
<input type="text" id="senderTitle" name="senderTitle" class="form-input" value="Owner" maxlength="32"
placeholder="e.g. Admin" />
</div>
</div>
<!-- Avatar Management -->
<div class="form-group">
<label for="avatarUrl">Avatar Photo</label>
<div class="avatar-tabs">
<div class="avatar-input-wrapper">
<input type="url" id="avatarUrl" name="avatarUrl" class="form-input"
value="https://avatars.githubusercontent.com/u/108991206?v=4"
placeholder="Paste image URL (https://...)" />
<label for="avatarUploadInput" class="upload-btn" title="Upload image from computer">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="17 8 12 3 7 8"></polyline>
<line x1="12" y1="3" x2="12" y2="15"></line>
</svg>
<span>Upload</span>
</label>
<input type="file" id="avatarUploadInput" accept="image/*" class="file-hidden"
aria-label="Upload Avatar Image" />
</div>
</div>
<div class="avatar-quick-pick">
<span class="quick-pick-label">Presets:</span>
<button type="button" class="preset-avatar-btn"
data-url="https://avatars.githubusercontent.com/u/108991206?v=4">Rusdi</button>
<button type="button" class="preset-avatar-btn"
data-url="https://api.dicebear.com/7.x/bottts/svg?seed=Telegram">Bot</button>
<button type="button" class="preset-avatar-btn"
data-url="https://api.dicebear.com/7.x/notionists/svg?seed=Felix">Alex</button>
</div>
</div>
</div>
<!-- Section: Message Content -->
<div class="form-section" role="group" aria-labelledby="messageContentHeading">
<div class="section-title" id="messageContentHeading">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
</svg>
<span>Message Content</span>
</div>
<div class="form-group">
<div class="label-row">
<label for="messageText">Chat Text <span class="required">*</span></label>
<span id="charCountBadge" class="char-count-badge">78 / 3000</span>
</div>
<textarea id="messageText" name="messageText" class="form-textarea" rows="3" maxlength="3000"
placeholder="Type Telegram message..."
required>Halo semuanya! Quote API Telegram sekarang sudah live dan siap digunakan 🚀</textarea>
</div>
<!-- Reply Quote Switch -->
<div class="toggle-group">
<label class="switch-container">
<input type="checkbox" id="replyToggle" class="switch-input" checked />
<span class="switch-slider"></span>
<span class="switch-label">Include Quoted Reply</span>
</label>
</div>
<div id="replyFields" class="nested-fields">
<div class="form-group">
<label for="replyName">Reply To (User)</label>
<input type="text" id="replyName" class="form-input" value="Dika Ardnt" maxlength="64"
placeholder="Quoted user name" />
</div>
<div class="form-group">
<label for="replyText">Quoted Message</label>
<input type="text" id="replyText" class="form-input" value="Kapan Quote API selesai dideploy?"
maxlength="1000" placeholder="Quoted text preview" />
</div>
</div>
<!-- Media Attachment Switch -->
<div class="toggle-group">
<label class="switch-container">
<input type="checkbox" id="mediaToggle" class="switch-input" />
<span class="switch-slider"></span>
<span class="switch-label">Include Attachment Image</span>
</label>
</div>
<div id="mediaFields" class="nested-fields hidden">
<div class="form-group">
<label for="mediaUrl">Media Image URL</label>
<input type="url" id="mediaUrl" class="form-input" placeholder="https://example.com/photo.jpg" />
</div>
</div>
</div>
<!-- Section: Output & Styling -->
<div class="form-section" role="group" aria-labelledby="outputStyleHeading">
<div class="section-title" id="outputStyleHeading">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="10"></circle>
<path d="m4.93 4.93 4.24 4.24"></path>
<path d="m14.83 9.17 4.24-4.24"></path>
<path d="m14.83 14.83 4.24 4.24"></path>
<path d="m9.17 14.83-4.24 4.24"></path>
</svg>
<span>Output Style & Layout</span>
</div>
<div class="form-row">
<div class="form-group flex-1">
<label for="quoteType">Format Type</label>
<select id="quoteType" class="form-select">
<option value="quote" selected>Quote Bubble (Sticker)</option>
<option value="stories">Stories (9:16 Vertical)</option>
<option value="image">Image Card (Canvas)</option>
</select>
</div>
<div class="form-group flex-1">
<label for="imageFormat">File Format</label>
<select id="imageFormat" class="form-select">
<option value="png" selected>PNG (Lossless)</option>
<option value="webp">WebP (Compact)</option>
</select>
</div>
</div>
<div class="form-row">
<div class="form-group flex-1">
<label for="bgColor">Background Color</label>
<div class="color-picker-row">
<input type="color" id="bgColor" class="color-swatch" value="#1b1e23"
aria-label="Color Picker Swatch" />
<input type="text" id="bgColorText" class="form-input hex-input" value="#1b1e23"
aria-label="Hex Color Code" />
</div>
</div>
<div class="form-group flex-1" id="watermarkGroup">
<label for="watermark">Watermark (Stories/Image)</label>
<input type="text" id="watermark" class="form-input" value="qc.mangrusdi.my.id" maxlength="64"
placeholder="Watermark text" />
</div>
</div>
<!-- Color Palette Quick Pick -->
<div class="palette-group">
<span class="quick-pick-label">Telegram Themes:</span>
<button type="button" class="palette-btn active" data-color="#1b1e23" style="background: #1b1e23"
title="Dark Slate" aria-label="Dark Slate Theme"></button>
<button type="button" class="palette-btn" data-color="#0f172a" style="background: #0f172a"
title="Midnight" aria-label="Midnight Theme"></button>
<button type="button" class="palette-btn" data-color="#182533" style="background: #182533"
title="Telegram Dark" aria-label="Telegram Dark Theme"></button>
<button type="button" class="palette-btn" data-color="#212d3b" style="background: #212d3b"
title="Telegram Blue" aria-label="Telegram Blue Theme"></button>
<button type="button" class="palette-btn" data-color="#2d132c" style="background: #2d132c"
title="Deep Plum" aria-label="Deep Plum Theme"></button>
<button type="button" class="palette-btn" data-color="#172e27" style="background: #172e27"
title="Forest Dark" aria-label="Forest Dark Theme"></button>
</div>
</div>
<!-- Generate Action Button -->
<div class="form-actions">
<button id="generateBtn" type="button" class="btn-primary" data-track="click_cta_generate">
<span class="btn-icon">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<circle cx="8.5" cy="8.5" r="1.5"></circle>
<polyline points="21 15 16 10 5 21"></polyline>
</svg>
</span>
<span class="btn-text-label">Generate Quote Image</span>
</button>
</div>
</form>
</section>
<section class="panel preview-panel" id="previewPanel" aria-labelledby="previewHeading">
<div class="panel-header">
<h2 id="previewHeading" class="panel-title">Interactive Live Preview</h2>
<div class="preview-mode-tag" id="previewModeTag">Quote Mode</div>
</div>
<!-- Live Preview Metadata Strip -->
<div class="preview-meta-strip">
<span class="preview-meta-item">Format: <strong id="prevFormatMeta">PNG (512px max)</strong></span>
<span class="preview-meta-item">Theme: <strong id="prevBgMeta">#1B1E23</strong></span>
</div>
<!-- Telegram Bubble Simulated Preview Box -->
<div class="preview-stage-container" id="previewStage">
<div class="telegram-quote-card" id="simulatedBubble">
<div class="tg-avatar-col">
<img id="prevAvatar" src="https://avatars.githubusercontent.com/u/108991206?v=4" alt="Avatar"
class="tg-avatar" />
</div>
<div class="tg-bubble-col">
<div class="tg-bubble-header">
<span id="prevSenderName" class="tg-sender-name">Mang Rusdi</span>
<span id="prevSenderTitle" class="tg-sender-badge">Owner</span>
</div>
<!-- Quoted Reply Area in Bubble -->
<div id="prevReplyBox" class="tg-reply-box">
<div class="tg-reply-line"></div>
<div class="tg-reply-content">
<div id="prevReplyName" class="tg-reply-name">Dika Ardnt</div>
<div id="prevReplyText" class="tg-reply-text">Kapan Quote API selesai dideploy?</div>
</div>
</div>
<!-- Media Preview in Bubble -->
<div id="prevMediaBox" class="tg-media-box hidden">
<img id="prevMediaImg" src="" alt="Attached media" class="tg-media-img" />
</div>
<!-- Main Message Text -->
<div id="prevMessageText" class="tg-message-text">Halo semuanya! Quote API Telegram sekarang sudah live
dan siap digunakan 🚀</div>
<!-- Message Meta Footer -->
<div class="tg-message-meta">
<span class="tg-timestamp" id="prevTimestamp">21:30</span>
<svg class="tg-checks" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>
</div>
</div>
</div>
<!-- Real Server Generated Result Container -->
<div id="generatedResultBox" class="generated-box hidden">
<div class="result-header">
<span class="result-badge">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path>
<polyline points="22 4 12 14.01 9 11.01"></polyline>
</svg>
Rendered by Quote API
</span>
<div class="result-info" id="resultMeta">PNG • 512x360</div>
</div>
<div class="result-preview-image-wrap">
<img id="renderedImage" src="" alt="Rendered Quote Output" class="rendered-image" />
</div>
<div class="result-actions">
<a id="downloadBtn" href="#" download="telegram-quote.png" class="btn-secondary"
data-track="click_cta_download">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="3" x2="12" y2="3"></line>
</svg>
Download Image
</a>
<button id="copyImageBtn" type="button" class="btn-outline" data-track="click_cta_copy_image">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
</svg>
Copy to Clipboard
</button>
</div>
</div>
<!-- Developer API Integration Drawer -->
<div class="api-playground-box">
<div class="playground-header">
<span class="playground-title">Developer Integration Snippet</span>
<div class="playground-actions">
<div class="tab-buttons">
<button type="button" class="tab-btn active" data-tab="curl">cURL</button>
<button type="button" class="tab-btn" data-tab="js">JavaScript</button>
<button type="button" class="tab-btn" data-tab="py">Python</button>
</div>
<button id="copySnippetBtn" type="button" class="copy-snippet-btn" data-track="click_cta_copy_snippet"
title="Copy code snippet">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
</svg>
<span class="copy-label">Copy</span>
</button>
</div>
</div>
<div class="snippet-viewer">
<pre><code id="codeSnippet" class="code-block">curl -X POST https://qc.mangrusdi.my.id/generate ...</code></pre>
</div>
</div>
</section>
</main>
<!-- Section: API Reference & Parameter Documentation -->
<section class="content-section" id="api-docs" aria-labelledby="apiDocsHeading">
<div class="section-header">
<h2 id="apiDocsHeading" class="section-heading">REST API Reference & Endpoints</h2>
<p class="section-desc">
Directly integrate Telegram quote generation into your Telegram bots, web apps, or backend services using our
public endpoints.
</p>
</div>
<div class="table-responsive">
<table class="api-table">
<thead>
<tr>
<th>Method</th>
<th>Endpoint</th>
<th>Description</th>
<th>Content-Type</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="method-tag post">POST</span></td>
<td><code class="endpoint-path">https://qc.mangrusdi.my.id/generate</code></td>
<td>Main quote generator endpoint (returns base64 image and dimensions)</td>
<td><code>application/json</code></td>
</tr>
<tr>
<td><span class="method-tag post">POST</span></td>
<td><code class="endpoint-path">https://qc.mangrusdi.my.id/api/generate</code></td>
<td>Secondary proxy route for flexible integrations</td>
<td><code>application/json</code></td>
</tr>
<tr>
<td><span class="method-tag get">GET</span></td>
<td><code class="endpoint-path">https://qc.mangrusdi.my.id/status</code></td>
<td>Operational health check and service uptime info</td>
<td><code>application/json</code></td>
</tr>
</tbody>
</table>
</div>
<!-- Request Body Schema Documentation -->
<div class="section-header" style="margin-top: 2rem;">
<h3 class="section-heading" style="font-size: 1.15rem;">Request Payload Schema (JSON)</h3>
<p class="section-desc">
Payload properties accepted by the <code>POST /generate</code> endpoint.
</p>
</div>
<div class="table-responsive">
<table class="api-table">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Requirement</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="endpoint-path">messages</code></td>
<td><code>Array&lt;Object&gt;</code></td>
<td><span class="required">Required</span></td>
<td>Array of message objects to be stacked into quote bubble canvas.</td>
</tr>
<tr>
<td><code class="endpoint-path">messages[].from.name</code></td>
<td><code>string</code></td>
<td><span class="required">Required</span></td>
<td>Sender display name shown at the top of the chat bubble.</td>
</tr>
<tr>
<td><code class="endpoint-path">messages[].text</code></td>
<td><code>string</code></td>
<td><span class="required">Required</span></td>
<td>The text message content. Supports Markdown &amp; emojis.</td>
</tr>
<tr>
<td><code class="endpoint-path">messages[].from.title</code></td>
<td><code>string</code></td>
<td>Optional</td>
<td>Role badge next to the sender name (e.g. "Admin", "Owner").</td>
</tr>
<tr>
<td><code class="endpoint-path">messages[].from.photo.url</code></td>
<td><code>string</code></td>
<td>Optional</td>
<td>Public image URL or base64 data URI for sender avatar.</td>
</tr>
<tr>
<td><code class="endpoint-path">messages[].replyMessage</code></td>
<td><code>Object</code></td>
<td>Optional</td>
<td>Quoted reply box containing <code>name</code> and <code>text</code>.</td>
</tr>
<tr>
<td><code class="endpoint-path">type</code></td>
<td><code>string</code></td>
<td>Optional</td>
<td><code>"quote"</code> (sticker, 512px max), <code>"stories"</code> (9:16), or <code>"image"</code>
(canvas).</td>
</tr>
<tr>
<td><code class="endpoint-path">format</code></td>
<td><code>string</code></td>
<td>Optional</td>
<td>Image compression format: <code>"png"</code> (lossless) or <code>"webp"</code>.</td>
</tr>
<tr>
<td><code class="endpoint-path">backgroundColor</code></td>
<td><code>string</code></td>
<td>Optional</td>
<td>Hex color string for chat bubble background (default: <code>"#1b1e23"</code>).</td>
</tr>
<tr>
<td><code class="endpoint-path">watermark</code></td>
<td><code>string</code></td>
<td>Optional</td>
<td>Branding watermark text applied on Stories and Canvas layouts.</td>
</tr>
</tbody>
</table>
</div>
</section>
<!-- Section: Output Formats & Specs -->
<section class="content-section" id="specs" aria-labelledby="specsHeading">
<div class="section-header">
<h2 id="specsHeading" class="section-heading">Supported Output Layouts</h2>
<p class="section-desc">
Choose the layout format suited to your media channel: transparent stickers, vertical stories, or wide canvas
cards.
</p>
</div>
<div class="modes-grid">
<div class="mode-card">
<h3 class="mode-card-title">Quote Bubble (Sticker)</h3>
<p class="mode-card-desc">
Standard Telegram message bubble rendered with transparent background, ideal for creating Telegram sticker
packs and bot replies.
</p>
<ul class="mode-specs-list">
<li>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
512px standard sticker width
</li>
<li>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
Full alpha channel transparency
</li>
<li>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
Supports replies and badges
</li>
</ul>
</div>
<div class="mode-card">
<h3 class="mode-card-title">Vertical Stories (9:16)</h3>
<p class="mode-card-desc">
High-resolution vertical format designed for Telegram Stories, WhatsApp Status, and Instagram Reels with
custom background themes.
</p>
<ul class="mode-specs-list">
<li>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
1080 x 1920 portrait canvas
</li>
<li>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
4x supersampling resolution
</li>
<li>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
Custom watermark placement
</li>
</ul>
</div>
<div class="mode-card">
<h3 class="mode-card-title">Image Card (Canvas)</h3>
<p class="mode-card-desc">
Horizontal card presentation featuring elevation shadows, rounded frames, and clean padding for social media
embeds and articles.
</p>
<ul class="mode-specs-list">
<li>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
1280 x 720 landscape canvas
</li>
<li>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
Soft elevation shadow
</li>
<li>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
Lossless PNG and compact WebP
</li>
</ul>
</div>
</div>
</section>
<!-- Section: Frequently Asked Questions -->
<section class="content-section" id="faq" aria-labelledby="faqHeading">
<div class="section-header">
<h2 id="faqHeading" class="section-heading">Frequently Asked Questions</h2>
<p class="section-desc">
Common questions regarding integration, file formats, and server capabilities.
</p>
</div>
<div class="faq-grid">
<details class="faq-item" open>
<summary class="faq-summary">How do I generate quote stickers using the REST API?</summary>
<div class="faq-answer">
Send an HTTP POST request to <code>https://qc.mangrusdi.my.id/generate</code> with header
<code>Content-Type: application/json</code>. Include a <code>messages</code> array containing the sender
name, avatar URL, and text message. The server processes the canvas in approximately 1 to 2 seconds and
returns the resulting base64 image.
</div>
</details>
<details class="faq-item">
<summary class="faq-summary">Which image formats and transparency settings are supported?</summary>
<div class="faq-answer">
The API natively supports PNG and WebP. For standard sticker bubbles, PNG preserves complete alpha
transparency, making it ready to upload directly as a Telegram sticker. WebP provides smaller payloads for
web rendering and mobile bandwidth efficiency.
</div>
</details>
<details class="faq-item">
<summary class="faq-summary">Can I supply local avatar pictures without public hosting?</summary>
<div class="faq-answer">
Yes. The web customizer includes an upload button that reads your local image file and converts it into a
base64 data URI (<code>data:image/png;base64,...</code>). The backend accepts both HTTP image links and
base64 data URIs for avatars and attachments.
</div>
</details>
<details class="faq-item">
<summary class="faq-summary">Is there a health check endpoint to monitor API uptime?</summary>
<div class="faq-answer">
Yes. A simple HTTP GET request to <code>https://qc.mangrusdi.my.id/status</code> returns a JSON object
containing operational status, server availability, and uptime duration.
</div>
</details>
</div>
</section>
<!-- Site Footer -->
<footer class="site-footer">
<div class="footer-top">
<div>
<div class="footer-brand-text">Quote Studio</div>
<p class="footer-sub">Open-Source Telegram Quote Generator & REST API Engine</p>
</div>
<div class="footer-links">
<a href="#studio" class="footer-link">Customizer</a>
<a href="#api-docs" class="footer-link">Documentation</a>
<a href="#specs" class="footer-link">Layout Formats</a>
<a href="#faq" class="footer-link">FAQ</a>
<a href="https://wa.me/6281233649676?text=Halo%20Mang%20Rusdi%2C%20saya%20tertarik%20dengan%20Quote%20Studio%20API"
target="_blank" rel="noopener noreferrer" class="footer-link" data-track="click_wa">WhatsApp</a>
<a href="https://github.com/RusdiEneri/quote" target="_blank" rel="noopener noreferrer"
class="footer-link">GitHub Repo</a>
<a href="https://huggingface.co/spaces/ilhamdev/quote-api" target="_blank" rel="noopener noreferrer"
class="footer-link">Hugging Face Space</a>
</div>
</div>
<div class="footer-bottom">
<p>&copy; 2026 Mang Rusdi. Built with Bun, Hono, Node-Canvas, and Vite.</p>
<p>Licensed under MIT. Open for personal and bot automation projects.</p>
</div>
</footer>
<!-- Global Toast Container -->
<div id="toast" class="toast hidden" role="alert" aria-live="polite"></div>
</div>
<script type="module" src="./src/main.js"></script>
</body>
</html>