Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Enhance tools page with comment generation features and update related tools

Bill Yangc9b61cf36d1a
diff --git a/docs/src/app/(home)/tools/(font-generators)/[slug]/page.tsx b/docs/src/app/(home)/tools/(font-generators)/[slug]/page.tsx
index 67d266e06..5e3cbe137 100644
--- a/docs/src/app/(home)/tools/(font-generators)/[slug]/page.tsx
+++ b/docs/src/app/(home)/tools/(font-generators)/[slug]/page.tsx
@@ -1,6 +1,11 @@
import { ToolPageLayout } from "../../components/ToolPageLayout";
import { FontGeneratorTool } from "../../components/FontGeneratorTool";
+import AICommentForm from "../../components/AICommentForm";
import { platformConfigs, platformList } from "../../components/platform-configs";
+import {
+ commentPlatformConfigs,
+ commentPlatformList,
+} from "../../components/comment-platform-configs";
import type { Metadata } from "next";
import { notFound } from "next/navigation";
@@ -12,15 +17,54 @@ interface PageProps {
// Generate static params for all platforms at build time
export async function generateStaticParams() {
- return platformList.map(platform => ({
+ const fontGenerators = platformList.map((platform) => ({
slug: `${platform.id}-font-generator`,
}));
+
+ const commentGenerators = commentPlatformList.map((platform) => ({
+ slug: `${platform.id}-comment-generator`,
+ }));
+
+ return [...fontGenerators, ...commentGenerators];
}
// Generate metadata dynamically based on slug
-export async function generateMetadata({ params }: PageProps): Promise<Metadata> {
+export async function generateMetadata({
+ params,
+}: PageProps): Promise<Metadata> {
const { slug } = await params;
- // Extract platform ID from slug (remove '-font-generator' suffix)
+
+ // Check if it's a comment generator
+ if (slug.endsWith("-comment-generator")) {
+ const platformId = slug.replace("-comment-generator", "");
+ const platform = commentPlatformConfigs[platformId];
+
+ if (!platform) {
+ return { title: "Comment Generator Not Found" };
+ }
+
+ return {
+ title: `${platform.displayName} | AI-Powered ${platform.name} Comments`,
+ description: platform.description,
+ openGraph: {
+ title: platform.displayName,
+ description: platform.description,
+ type: "website",
+ url: `https://rybbit.com/tools/${platform.id}-comment-generator`,
+ siteName: "Rybbit Documentation",
+ },
+ twitter: {
+ card: "summary_large_image",
+ title: platform.displayName,
+ description: platform.description,
+ },
+ alternates: {
+ canonical: `https://rybbit.com/tools/${platform.id}-comment-generator`,
+ },
+ };
+ }
+
+ // It's a font generator
const platformId = slug.replace("-font-generator", "");
const platform = platformConfigs[platformId];
@@ -51,9 +95,174 @@ export async function generateMetadata({ params }: PageProps): Promise<Metadata>
};
}
-export default async function PlatformFontGeneratorPage({ params }: PageProps) {
+export default async function PlatformToolPage({ params }: PageProps) {
const { slug } = await params;
- // Extract platform ID from slug (remove '-font-generator' suffix)
+
+ // Check if it's a comment generator
+ if (slug.endsWith("-comment-generator")) {
+ const platformId = slug.replace("-comment-generator", "");
+ const platform = commentPlatformConfigs[platformId];
+
+ // Handle invalid platform
+ if (!platform) {
+ notFound();
+ }
+
+ const structuredData = {
+ "@context": "https://schema.org",
+ "@type": "WebApplication",
+ name: platform.displayName,
+ description: platform.description,
+ url: `https://rybbit.com/tools/${platform.id}-comment-generator`,
+ applicationCategory: "Utility",
+ offers: {
+ "@type": "Offer",
+ price: "0",
+ priceCurrency: "USD",
+ },
+ author: {
+ "@type": "Organization",
+ name: "Rybbit",
+ url: "https://rybbit.com",
+ },
+ };
+
+ const educationalContent = (
+ <>
+ <h2 className="text-2xl font-bold text-neutral-900 dark:text-white mb-4">
+ About {platform.name} Comments
+ </h2>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-6">
+ {platform.educationalContent}
+ </p>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Use This Tool
+ </h3>
+ <ol className="space-y-2 text-neutral-700 dark:text-neutral-300 mb-6">
+ <li>
+ <strong>Paste the original content</strong> you want to comment on
+ in the text area
+ </li>
+ <li>
+ <strong>Select your desired tone</strong> (friendly, professional,
+ humorous, etc.)
+ </li>
+ <li>
+ <strong>Choose comment length</strong> based on your preference
+ </li>
+ <li>
+ <strong>Click "Generate Comments"</strong> to create 3 unique
+ variations
+ </li>
+ <li>
+ <strong>Copy your favorite</strong> and paste it into{" "}
+ {platform.name}
+ </li>
+ </ol>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Best Practices for {platform.name} Comments
+ </h3>
+ <ul className="space-y-2 text-neutral-700 dark:text-neutral-300 mb-6">
+ <li>
+ <strong>Be authentic:</strong> Even AI-generated comments should
+ feel genuine and personal
+ </li>
+ <li>
+ <strong>Add context:</strong> Reference specific parts of the
+ original content
+ </li>
+ <li>
+ <strong>Encourage dialogue:</strong> Ask questions or invite further
+ discussion
+ </li>
+ <li>
+ <strong>Match the tone:</strong> Respect the original post's mood
+ and purpose
+ </li>
+ <li>
+ <strong>Personalize before posting:</strong> Edit generated comments
+ to add your unique voice
+ </li>
+ </ul>
+
+ <p className="text-sm text-neutral-600 dark:text-neutral-400 mt-6">
+ <strong>Note:</strong> While this tool generates comments using AI,
+ always review and personalize them before posting. Authentic
+ engagement is key to building genuine connections on {platform.name}.
+ </p>
+ </>
+ );
+
+ const faqs = [
+ {
+ question: `How does the ${platform.name} comment generator work?`,
+ answer: `This tool uses AI to analyze the content you provide and generate contextually relevant comments based on your chosen tone and length preference. It considers ${platform.name}-specific best practices to create authentic, engaging responses.`,
+ },
+ {
+ question: "Can I edit the generated comments before posting?",
+ answer:
+ "Absolutely! We encourage you to personalize any generated comment to match your voice and add specific details. The generated comments are starting points—your personal touch makes them truly authentic.",
+ },
+ {
+ question: "What tones are available?",
+ answer:
+ "You can choose from six tones: Friendly (warm and approachable), Professional (polished and business-appropriate), Humorous (light-hearted and funny), Supportive (encouraging and empathetic), Inquisitive (curious and question-asking), and Critical (thoughtfully analytical).",
+ },
+ {
+ question: "How many comments can I generate?",
+ answer: (
+ <>
+ The tool generates 3 unique comment variations per request. You're
+ limited to 5 requests per minute to ensure fair usage and maintain
+ service quality for all users.
+ </>
+ ),
+ },
+ {
+ question: "Will the comments sound natural?",
+ answer: `Yes! The AI is trained to create authentic, platform-appropriate comments that match ${platform.name}'s culture and style. However, adding your personal touch will make them even more genuine and effective.`,
+ },
+ {
+ question: "How can Rybbit help me track comment engagement?",
+ answer: (
+ <>
+ Rybbit helps you measure which content drives the most engagement
+ and comments on your social media. Track clicks, traffic sources,
+ and content performance to understand what resonates with your
+ audience.{" "}
+ <a
+ href="https://rybbit.com"
+ className="text-emerald-600 hover:text-emerald-500 underline"
+ >
+ Start tracking for free
+ </a>
+ .
+ </>
+ ),
+ },
+ ];
+
+ return (
+ <ToolPageLayout
+ toolSlug={`${platform.id}-comment-generator`}
+ title={platform.displayName}
+ description={platform.description}
+ badge="AI-Powered Tool"
+ toolComponent={<AICommentForm platform={platform} />}
+ educationalContent={educationalContent}
+ faqs={faqs}
+ relatedToolsCategory="social-media"
+ ctaTitle="Track engagement and comment activity with Rybbit"
+ ctaDescription="Measure which content drives the most comments and engagement on your social media platforms."
+ ctaEventLocation={`${platform.id}_comment_generator_cta`}
+ structuredData={structuredData}
+ />
+ );
+ }
+
+ // It's a font generator
const platformId = slug.replace("-font-generator", "");
const platform = platformConfigs[platformId];
@@ -90,7 +299,9 @@ export default async function PlatformFontGeneratorPage({ params }: PageProps) {
{platform.educationalContent}
</p>
- <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">How to Use</h3>
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Use
+ </h3>
<ol className="space-y-2 text-neutral-700 dark:text-neutral-300 mb-6">
<li>
<strong>Type your text</strong> in the input box above
@@ -102,17 +313,61 @@ export default async function PlatformFontGeneratorPage({ params }: PageProps) {
<strong>Click "Copy"</strong> on any style you like
</li>
<li>
- <strong>Paste it</strong> into your {platform.name} posts, comments, or bio
+ <strong>Paste it</strong> into your {platform.name} posts, comments,
+ or bio
</li>
</ol>
<p className="text-sm text-neutral-600 dark:text-neutral-400 mt-6">
- <strong>Note:</strong> These fonts use Unicode characters and work across most platforms and devices. However,
- some fonts may not display correctly on older systems or certain applications.
+ <strong>Note:</strong> These fonts use Unicode characters and work
+ across most platforms and devices. However, some fonts may not display
+ correctly on older systems or certain applications.
</p>
</>
);
+ const fontFaqs = [
+ {
+ question: `How do ${platform.name} font generators work?`,
+ answer: `This tool uses Unicode characters to transform your text into different font styles. Unicode includes thousands of special characters that look like styled versions of regular letters. When you type text, the generator maps each character to its Unicode equivalent in various styles.`,
+ },
+ {
+ question: "Will these fonts work everywhere?",
+ answer: `These Unicode fonts work on most modern platforms and devices, including ${platform.name}, other social media sites, messaging apps, and websites. However, some older systems or applications may not support all Unicode characters and might display them as boxes or question marks.`,
+ },
+ {
+ question: "Can I use these fonts in my bio or username?",
+ answer: `Yes! These Unicode fonts work in most text fields on ${platform.name}, including bios, usernames (where special characters are allowed), posts, comments, and messages. However, some platforms may have restrictions on special characters in certain fields.`,
+ },
+ {
+ question: "Are these fonts safe to use?",
+ answer:
+ "Absolutely! These fonts use standard Unicode characters that are part of the official character encoding system. They're completely safe and won't harm your device or account. However, use them appropriately and avoid excessive styling that might reduce readability.",
+ },
+ {
+ question: "Do I need to install anything?",
+ answer:
+ "No installation required! This is a web-based tool that works directly in your browser. Simply type your text, copy the style you like, and paste it wherever you want to use it. The Unicode characters are supported natively by most systems.",
+ },
+ {
+ question: "How can Rybbit help me track my social media performance?",
+ answer: (
+ <>
+ Rybbit helps you track clicks, engagement, and traffic sources from
+ your {platform.name} posts and bio links. See which content drives the
+ most engagement and optimize your social media strategy.{" "}
+ <a
+ href="https://rybbit.com"
+ className="text-emerald-600 hover:text-emerald-500 underline"
+ >
+ Start tracking for free
+ </a>
+ .
+ </>
+ ),
+ },
+ ];
+
return (
<ToolPageLayout
toolSlug={`${platform.id}-font-generator`}
@@ -120,10 +375,13 @@ export default async function PlatformFontGeneratorPage({ params }: PageProps) {
description={platform.description}
badge="Free Tool"
toolComponent={
- <FontGeneratorTool platformName={platform.name} characterLimit={platform.characterLimit} />
+ <FontGeneratorTool
+ platformName={platform.name}
+ characterLimit={platform.characterLimit}
+ />
}
educationalContent={educationalContent}
- faqs={[]}
+ faqs={fontFaqs}
relatedToolsCategory="social-media"
ctaTitle="Track your social media engagement with Rybbit"
ctaDescription="Monitor clicks, traffic sources, and content performance across all your social platforms."
diff --git a/docs/src/app/(home)/tools/components/AICommentForm.tsx b/docs/src/app/(home)/tools/components/AICommentForm.tsx
new file mode 100644
index 000000000..c59510ac0
--- /dev/null
+++ b/docs/src/app/(home)/tools/components/AICommentForm.tsx
@@ -0,0 +1,248 @@
+"use client";
+
+import { CheckCircle, Copy, Loader2 } from "lucide-react";
+import { useState } from "react";
+import type { CommentPlatformConfig } from "./comment-platform-configs";
+
+interface AICommentFormProps {
+ platform: CommentPlatformConfig;
+}
+
+const toneOptions = [
+ { value: "friendly", label: "Friendly", description: "Warm and approachable" },
+ {
+ value: "professional",
+ label: "Professional",
+ description: "Polished and business-appropriate",
+ },
+ {
+ value: "humorous",
+ label: "Humorous",
+ description: "Light-hearted and funny",
+ },
+ {
+ value: "supportive",
+ label: "Supportive",
+ description: "Encouraging and empathetic",
+ },
+ {
+ value: "inquisitive",
+ label: "Inquisitive",
+ description: "Curious and question-asking",
+ },
+ {
+ value: "critical",
+ label: "Critical",
+ description: "Thoughtfully analytical",
+ },
+];
+
+const lengthOptions = [
+ { value: "short", label: "Short", description: "~50 characters" },
+ { value: "medium", label: "Medium", description: "~100 characters" },
+ { value: "long", label: "Long", description: "~200 characters" },
+];
+
+export default function AICommentForm({ platform }: AICommentFormProps) {
+ const [originalContent, setOriginalContent] = useState("");
+ const [tone, setTone] = useState("friendly");
+ const [length, setLength] = useState("medium");
+ const [comments, setComments] = useState<string[]>([]);
+ const [isLoading, setIsLoading] = useState(false);
+ const [error, setError] = useState("");
+ const [copiedIndex, setCopiedIndex] = useState<number | null>(null);
+ const [remainingRequests, setRemainingRequests] = useState<number | null>(
+ null
+ );
+
+ const generateComments = async () => {
+ if (!originalContent.trim()) {
+ setError("Please paste the content you want to comment on");
+ return;
+ }
+
+ setIsLoading(true);
+ setError("");
+ setComments([]);
+
+ try {
+ const response = await fetch("/api/tools/generate-comment", {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({
+ originalContent: originalContent.trim(),
+ tone,
+ length,
+ platform: platform.id,
+ }),
+ });
+
+ const remaining = response.headers.get("X-RateLimit-Remaining");
+ if (remaining) {
+ setRemainingRequests(parseInt(remaining));
+ }
+
+ if (!response.ok) {
+ const data = await response.json();
+ throw new Error(data.error || "Failed to generate comments");
+ }
+
+ const data = await response.json();
+ setComments(data.comments);
+ } catch (err) {
+ setError(err instanceof Error ? err.message : "An error occurred");
+ } finally {
+ setIsLoading(false);
+ }
+ };
+
+ const copyToClipboard = async (text: string, index: number) => {
+ try {
+ await navigator.clipboard.writeText(text);
+ setCopiedIndex(index);
+ setTimeout(() => setCopiedIndex(null), 2000);
+ } catch (err) {
+ console.error("Failed to copy:", err);
+ }
+ };
+
+ return (
+ <div className="space-y-6">
+ <div>
+ <label
+ htmlFor="original-content"
+ className="block text-sm font-medium text-neutral-700 dark:text-neutral-300 mb-2"
+ >
+ Original Content
+ </label>
+ <textarea
+ id="original-content"
+ rows={6}
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500 resize-y"
+ placeholder={`Paste the ${platform.name} post or content you want to comment on...`}
+ value={originalContent}
+ onChange={(e) => setOriginalContent(e.target.value)}
+ maxLength={platform.characterLimit || 10000}
+ />
+ <p className="mt-1 text-xs text-neutral-500 dark:text-neutral-400">
+ {originalContent.length}
+ {platform.characterLimit && ` / ${platform.characterLimit}`}{" "}
+ characters
+ </p>
+ </div>
+
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
+ <div>
+ <label
+ htmlFor="tone"
+ className="block text-sm font-medium text-neutral-700 dark:text-neutral-300 mb-2"
+ >
+ Tone
+ </label>
+ <select
+ id="tone"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ value={tone}
+ onChange={(e) => setTone(e.target.value)}
+ >
+ {toneOptions.map((option) => (
+ <option key={option.value} value={option.value}>
+ {option.label} - {option.description}
+ </option>
+ ))}
+ </select>
+ </div>
+
+ <div>
+ <label
+ htmlFor="length"
+ className="block text-sm font-medium text-neutral-700 dark:text-neutral-300 mb-2"
+ >
+ Length
+ </label>
+ <select
+ id="length"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ value={length}
+ onChange={(e) => setLength(e.target.value)}
+ >
+ {lengthOptions.map((option) => (
+ <option key={option.value} value={option.value}>
+ {option.label} - {option.description}
+ </option>
+ ))}
+ </select>
+ </div>
+ </div>
+
+ <button
+ onClick={generateComments}
+ disabled={isLoading || !originalContent.trim()}
+ className="w-full px-6 py-3 bg-emerald-600 hover:bg-emerald-500 disabled:bg-neutral-400 dark:disabled:bg-neutral-700 text-white font-medium rounded-lg transition-colors flex items-center justify-center gap-2"
+ >
+ {isLoading ? (
+ <>
+ <Loader2 className="w-5 h-5 animate-spin" />
+ Generating Comments...
+ </>
+ ) : (
+ "Generate Comments"
+ )}
+ </button>
+
+ {remainingRequests !== null && (
+ <p className="text-sm text-center text-neutral-600 dark:text-neutral-400">
+ {remainingRequests} requests remaining this minute
+ </p>
+ )}
+
+ {error && (
+ <div className="p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg">
+ <p className="text-sm text-red-800 dark:text-red-200">{error}</p>
+ </div>
+ )}
+
+ {comments.length > 0 && (
+ <div className="space-y-4">
+ <h3 className="text-lg font-semibold text-neutral-900 dark:text-white">
+ Generated Comments
+ </h3>
+ {comments.map((comment, index) => (
+ <div
+ key={index}
+ className="p-4 bg-white dark:bg-neutral-800 border border-neutral-200 dark:border-neutral-700 rounded-lg"
+ >
+ <div className="flex items-start justify-between gap-3 mb-2">
+ <p className="flex-1 text-neutral-900 dark:text-white whitespace-pre-wrap">
+ {comment}
+ </p>
+ <button
+ onClick={() => copyToClipboard(comment, index)}
+ className="flex-shrink-0 p-2 hover:bg-neutral-100 dark:hover:bg-neutral-700 rounded-lg transition-colors"
+ title="Copy to clipboard"
+ >
+ {copiedIndex === index ? (
+ <CheckCircle className="w-5 h-5 text-emerald-600" />
+ ) : (
+ <Copy className="w-5 h-5 text-neutral-600 dark:text-neutral-400" />
+ )}
+ </button>
+ </div>
+ <p className="text-xs text-neutral-500 dark:text-neutral-400">
+ {comment.length} characters
+ </p>
+ </div>
+ ))}
+ </div>
+ )}
+
+ <div className="p-4 bg-neutral-50 dark:bg-neutral-800/50 border border-neutral-200 dark:border-neutral-700 rounded-lg">
+ <p className="text-sm text-neutral-700 dark:text-neutral-300">
+ <strong>Platform Context:</strong> {platform.contextGuidelines}
+ </p>
+ </div>
+ </div>
+ );
+}
diff --git a/docs/src/app/(home)/tools/components/comment-platform-configs.ts b/docs/src/app/(home)/tools/components/comment-platform-configs.ts
new file mode 100644
index 000000000..0cc4081ce
--- /dev/null
+++ b/docs/src/app/(home)/tools/components/comment-platform-configs.ts
@@ -0,0 +1,286 @@
+export interface CommentPlatformConfig {
+ id: string;
+ name: string;
+ displayName: string;
+ description: string;
+ characterLimit?: number;
+ simpleIconSlug: string;
+ colorHex: string;
+ educationalContent: string;
+ contextGuidelines: string;
+}
+
+export const commentPlatformConfigs: Record<string, CommentPlatformConfig> = {
+ discord: {
+ id: "discord",
+ name: "Discord",
+ displayName: "Discord Comment Generator",
+ description:
+ "Generate engaging Discord comments and replies with AI. Create authentic responses for gaming communities, study groups, and Discord servers.",
+ characterLimit: 2000,
+ simpleIconSlug: "discord",
+ colorHex: "#5865F2",
+ contextGuidelines:
+ "Discord is a casual, community-focused platform. Comments should feel conversational and match the server's vibe. Emojis and reactions are common.",
+ educationalContent: `Discord is a platform built around communities and real-time conversation. Comments and replies are essential for building relationships, participating in discussions, and contributing to server culture.
+
+Effective Discord comments are conversational, contextual, and respectful of the community's tone. Whether you're in a gaming server, study group, or hobby community, your comments should add value to the discussion while matching the server's atmosphere.`,
+ },
+ x: {
+ id: "x",
+ name: "X (Twitter)",
+ displayName: "X (Twitter) Comment Generator",
+ description:
+ "Generate engaging X (Twitter) replies with AI. Create thoughtful responses and join conversations with authentic, concise comments.",
+ characterLimit: 280,
+ simpleIconSlug: "x",
+ colorHex: "#000000",
+ contextGuidelines:
+ "X/Twitter prioritizes brevity and impact. Comments should be concise, engaging, and often use hashtags or mentions strategically.",
+ educationalContent: `X (formerly Twitter) is a fast-paced platform where replies and comments drive conversations and engagement. The 280-character limit means every word counts.
+
+Effective X comments are concise, timely, and add meaningful perspective to the conversation. They can spark discussions, build connections, or showcase expertise. The best replies balance brevity with substance.`,
+ },
+ reddit: {
+ id: "reddit",
+ name: "Reddit",
+ displayName: "Reddit Comment Generator",
+ description:
+ "Generate thoughtful Reddit comments with AI. Create detailed responses for discussions, threads, and subreddit conversations.",
+ characterLimit: 10000,
+ simpleIconSlug: "reddit",
+ colorHex: "#FF4500",
+ contextGuidelines:
+ "Reddit values substance and authenticity. Comments should be detailed, well-reasoned, and respect subreddit culture. Avoid self-promotion.",
+ educationalContent: `Reddit thrives on in-depth discussion and community-driven conversations. Comments can range from brief reactions to comprehensive explanations, and quality content is rewarded with upvotes.
+
+Effective Reddit comments demonstrate understanding of the topic, add unique insights, and respect subreddit rules and culture. The best comments are detailed without being verbose, helpful without being condescending.`,
+ },
+ facebook: {
+ id: "facebook",
+ name: "Facebook",
+ displayName: "Facebook Comment Generator",
+ description:
+ "Generate friendly Facebook comments with AI. Create authentic responses for posts, groups, and page discussions.",
+ characterLimit: 8000,
+ simpleIconSlug: "facebook",
+ colorHex: "#1877F2",
+ contextGuidelines:
+ "Facebook is personal and relationship-focused. Comments should be friendly, supportive, and appropriate for a mixed audience of friends and family.",
+ educationalContent: `Facebook comments appear on posts from friends, family, pages, and groups. They're essential for maintaining relationships and participating in community discussions.
+
+Effective Facebook comments are warm, genuine, and appropriate for a broad audience. They acknowledge the original post, add personal perspective, and maintain a friendly tone. Context matters—comments on a friend's achievement differ from comments on a news article.`,
+ },
+ instagram: {
+ id: "instagram",
+ name: "Instagram",
+ displayName: "Instagram Comment Generator",
+ description:
+ "Generate engaging Instagram comments with AI. Create authentic responses for posts, reels, and stories with the perfect tone.",
+ characterLimit: 2200,
+ simpleIconSlug: "instagram",
+ colorHex: "#E4405F",
+ contextGuidelines:
+ "Instagram is visual and positive. Comments should be brief, supportive, and often include emojis. Engagement is key.",
+ educationalContent: `Instagram comments drive engagement and build community around visual content. Whether on photos, reels, or carousel posts, comments help you connect with creators and participate in conversations.
+
+Effective Instagram comments are positive, authentic, and concise. They reference specific elements of the post, use emojis naturally, and feel genuine rather than generic. The best comments spark conversation or show meaningful appreciation.`,
+ },
+ threads: {
+ id: "threads",
+ name: "Threads",
+ displayName: "Threads Comment Generator",
+ description:
+ "Generate thoughtful Threads replies with AI. Create engaging comments for conversations on Meta's text-based platform.",
+ characterLimit: 500,
+ simpleIconSlug: "threads",
+ colorHex: "#000000",
+ contextGuidelines:
+ "Threads combines Instagram's casual vibe with Twitter's conversation style. Comments should be conversational and encourage dialogue.",
+ educationalContent: `Threads by Meta is designed for text-based conversations and real-time discussions. Replies and comments are central to building connections and participating in trending topics.
+
+Effective Threads comments are conversational, timely, and contribute to ongoing discussions. They balance casual tone with substance, and often invite further conversation through questions or thoughtful perspectives.`,
+ },
+ youtube: {
+ id: "youtube",
+ name: "YouTube",
+ displayName: "YouTube Comment Generator",
+ description:
+ "Generate engaging YouTube comments with AI. Create thoughtful responses for videos, timestamps, and community discussions.",
+ characterLimit: 10000,
+ simpleIconSlug: "youtube",
+ colorHex: "#FF0000",
+ contextGuidelines:
+ "YouTube comments can reference video content, timestamps, or broader discussions. They should add value to the conversation and be respectful.",
+ educationalContent: `YouTube comments create community around video content. They can highlight favorite moments, ask questions, share insights, or discuss topics raised in the video.
+
+Effective YouTube comments reference specific parts of the video (often with timestamps), add unique perspective, or ask thoughtful questions. The best comments contribute to discussion without spoiling content or spamming.`,
+ },
+ tiktok: {
+ id: "tiktok",
+ name: "TikTok",
+ displayName: "TikTok Comment Generator",
+ description:
+ "Generate trendy TikTok comments with AI. Create engaging responses that match TikTok's unique culture and style.",
+ characterLimit: 150,
+ simpleIconSlug: "tiktok",
+ colorHex: "#000000",
+ contextGuidelines:
+ "TikTok comments are often playful, trend-aware, and use platform-specific language. They should be brief and engaging.",
+ educationalContent: `TikTok comments are fast-paced and culturally specific. They reference trends, sounds, inside jokes, and viral formats while building community around short-form video content.
+
+Effective TikTok comments are witty, timely, and culturally aware. They might reference sounds, trends, or popular formats. The best comments balance humor with authenticity and feel native to the platform's unique culture.`,
+ },
+ pinterest: {
+ id: "pinterest",
+ name: "Pinterest",
+ displayName: "Pinterest Comment Generator",
+ description:
+ "Generate helpful Pinterest comments with AI. Create thoughtful responses on pins, boards, and creative projects.",
+ characterLimit: 500,
+ simpleIconSlug: "pinterest",
+ colorHex: "#E60023",
+ contextGuidelines:
+ "Pinterest is inspirational and helpful. Comments should appreciate creativity, ask practical questions, or share related ideas.",
+ educationalContent: `Pinterest comments appear on pins and help build community around creative inspiration, DIY projects, recipes, and ideas. They're often practical and appreciative.
+
+Effective Pinterest comments show genuine appreciation, ask helpful questions, or share related tips. They might request more details, share success with a project, or suggest complementary ideas. The tone is supportive and constructive.`,
+ },
+ vk: {
+ id: "vk",
+ name: "VK",
+ displayName: "VK Comment Generator",
+ description:
+ "Generate engaging VK comments with AI. Create authentic responses for posts and discussions on VKontakte.",
+ characterLimit: 16384,
+ simpleIconSlug: "vk",
+ colorHex: "#0077FF",
+ contextGuidelines:
+ "VK is popular in Russia and Eastern Europe. Comments should be respectful, detailed, and appropriate for the community context.",
+ educationalContent: `VK (VKontakte) is a major social platform in Russia and Eastern Europe. Comments are essential for participating in community discussions, group conversations, and social interactions.
+
+Effective VK comments are thoughtful, respectful, and contextual. They consider cultural norms, add substance to discussions, and maintain appropriate tone for the community. Comments can range from brief reactions to detailed perspectives.`,
+ },
+ bluesky: {
+ id: "bluesky",
+ name: "Bluesky",
+ displayName: "Bluesky Comment Generator",
+ description:
+ "Generate thoughtful Bluesky replies with AI. Create engaging comments for the decentralized social network.",
+ characterLimit: 300,
+ simpleIconSlug: "bluesky",
+ colorHex: "#1185FE",
+ contextGuidelines:
+ "Bluesky values authentic conversation and community. Comments should be substantive, respectful, and contribute meaningfully to discussions.",
+ educationalContent: `Bluesky is a decentralized social network that emphasizes authentic conversation. Replies and comments are central to building community and participating in discussions.
+
+Effective Bluesky comments are thoughtful, genuine, and respectful. They add unique perspective, ask good questions, or build on ideas. The platform values quality over virality, so substance matters more than being first.`,
+ },
+ lemmy: {
+ id: "lemmy",
+ name: "Lemmy",
+ displayName: "Lemmy Comment Generator",
+ description:
+ "Generate thoughtful Lemmy comments with AI. Create detailed responses for discussions in federated communities.",
+ characterLimit: 10000,
+ simpleIconSlug: "lemmy",
+ colorHex: "#00BC8C",
+ contextGuidelines:
+ "Lemmy is Reddit-like and federated. Comments should be detailed, well-reasoned, and respect community guidelines. Substance is valued.",
+ educationalContent: `Lemmy is a federated link aggregator similar to Reddit. Comments drive discussion in communities across different instances, and quality content rises through voting.
+
+Effective Lemmy comments are substantive, well-reasoned, and respect community culture. They demonstrate understanding of the topic, add unique insights, and follow instance and community rules. The federated nature means diverse communities with different norms.`,
+ },
+ slack: {
+ id: "slack",
+ name: "Slack",
+ displayName: "Slack Comment Generator",
+ description:
+ "Generate professional Slack responses with AI. Create helpful replies for team channels and workplace discussions.",
+ characterLimit: 4000,
+ simpleIconSlug: "slack",
+ colorHex: "#4A154B",
+ contextGuidelines:
+ "Slack is professional and team-focused. Comments should be clear, helpful, and appropriate for workplace communication. Respect async work.",
+ educationalContent: `Slack is a workplace communication platform where comments and replies happen in threads, channels, and direct messages. Effective communication keeps teams aligned and projects moving.
+
+Effective Slack comments are clear, concise, and actionable. They respect people's time, use threads appropriately, and maintain professional tone while matching team culture. The best replies answer questions completely, provide context, and move discussions forward.`,
+ },
+ mastodon: {
+ id: "mastodon",
+ name: "Mastodon",
+ displayName: "Mastodon Comment Generator",
+ description:
+ "Generate thoughtful Mastodon replies with AI. Create engaging comments for the federated social network.",
+ characterLimit: 500,
+ simpleIconSlug: "mastodon",
+ colorHex: "#6364FF",
+ contextGuidelines:
+ "Mastodon is federated and community-driven. Comments should be respectful, substantive, and mindful of instance culture and content warnings.",
+ educationalContent: `Mastodon is a federated social network with diverse communities across different instances. Replies and comments should respect instance rules, community norms, and content warning practices.
+
+Effective Mastodon comments are thoughtful, respectful, and contextual. They consider the instance culture, use content warnings when appropriate, and contribute meaningfully to conversations. The federated nature means diverse communities with different expectations.`,
+ },
+ warpcast: {
+ id: "warpcast",
+ name: "Warpcast",
+ displayName: "Warpcast Comment Generator",
+ description:
+ "Generate engaging Warpcast replies with AI. Create thoughtful comments for Farcaster protocol conversations.",
+ characterLimit: 320,
+ simpleIconSlug: "farcaster",
+ colorHex: "#8A63D2",
+ contextGuidelines:
+ "Warpcast is crypto-native and tech-forward. Comments should be substantive, insightful, and contribute to the decentralized social graph.",
+ educationalContent: `Warpcast is the primary client for Farcaster, a decentralized social protocol. Comments and replies build your on-chain social graph and reputation.
+
+Effective Warpcast comments are thoughtful, technically informed, and contribute value to conversations. They demonstrate understanding of crypto/tech topics, ask good questions, or provide unique insights. Quality engagement builds reputation in the protocol.`,
+ },
+ telegram: {
+ id: "telegram",
+ name: "Telegram",
+ displayName: "Telegram Comment Generator",
+ description:
+ "Generate engaging Telegram comments with AI. Create thoughtful responses for channels, groups, and discussions.",
+ characterLimit: 4096,
+ simpleIconSlug: "telegram",
+ colorHex: "#26A5E4",
+ contextGuidelines:
+ "Telegram spans casual to professional contexts. Comments should match the channel/group culture and be clear and respectful.",
+ educationalContent: `Telegram comments appear in channels and group chats, ranging from casual conversations to professional announcements. The context determines appropriate tone and style.
+
+Effective Telegram comments are clear, contextual, and respectful. They consider whether it's a public channel, private group, or discussion thread. The best comments add value without cluttering important channels.`,
+ },
+ nostr: {
+ id: "nostr",
+ name: "Nostr",
+ displayName: "Nostr Comment Generator",
+ description:
+ "Generate thoughtful Nostr replies with AI. Create engaging comments for the decentralized protocol.",
+ characterLimit: undefined,
+ simpleIconSlug: "nostr",
+ colorHex: "#8E30EB",
+ contextGuidelines:
+ "Nostr is decentralized and censorship-resistant. Comments should be substantive and contribute to open discourse.",
+ educationalContent: `Nostr is a decentralized protocol for social communication. Comments and replies are cryptographically signed and distributed across relays, creating censorship-resistant conversations.
+
+Effective Nostr comments are thoughtful, substantive, and contribute to open discourse. They demonstrate understanding of decentralization principles while maintaining respectful dialogue. The protocol's nature emphasizes authenticity and free expression.`,
+ },
+ dribbble: {
+ id: "dribbble",
+ name: "Dribbble",
+ displayName: "Dribbble Comment Generator",
+ description:
+ "Generate constructive Dribbble comments with AI. Create thoughtful feedback on design work and creative projects.",
+ characterLimit: undefined,
+ simpleIconSlug: "dribbble",
+ colorHex: "#EA4C89",
+ contextGuidelines:
+ "Dribbble is a design community. Comments should be constructive, specific, and appreciate the creative work while offering helpful feedback.",
+ educationalContent: `Dribbble is a community for designers to share work and receive feedback. Comments should be constructive, specific, and help creators improve while appreciating their effort.
+
+Effective Dribbble comments are detailed, constructive, and demonstrate design understanding. They might highlight specific elements, suggest improvements, or ask about design decisions. The best feedback is actionable, respectful, and balances praise with helpful critique.`,
+ },
+};
+
+export const commentPlatformList = Object.values(commentPlatformConfigs);
diff --git a/docs/src/app/(home)/tools/page.tsx b/docs/src/app/(home)/tools/page.tsx
index b1a52cdf8..526a33463 100644
--- a/docs/src/app/(home)/tools/page.tsx
+++ b/docs/src/app/(home)/tools/page.tsx
@@ -23,6 +23,7 @@ import {
Zap,
} from "lucide-react";
import { platformList } from "./components/platform-configs";
+import { commentPlatformList } from "./components/comment-platform-configs";
import {
SiDiscord,
SiX,
@@ -221,13 +222,22 @@ const platformIconMap: Record<string, any> = {
dribbble: SiDribbble,
};
-const socialMediaTools = platformList.map(platform => ({
+const fontGeneratorTools = platformList.map(platform => ({
href: `/tools/${platform.id}-font-generator`,
icon: platformIconMap[platform.id],
title: platform.displayName,
description: `Transform your text into unique Unicode fonts for ${platform.name}. Stand out with stylish text.`,
}));
+const commentGeneratorTools = commentPlatformList.map(platform => ({
+ href: `/tools/${platform.id}-comment-generator`,
+ icon: platformIconMap[platform.id],
+ title: platform.displayName,
+ description: `Generate engaging AI-powered comments for ${platform.name}. Create authentic, contextual responses.`,
+}));
+
+const socialMediaTools = [...fontGeneratorTools, ...commentGeneratorTools];
+
function ToolCard({ tool }: { tool: { href: string; icon: any; title: string; description: string } }) {
const Icon = tool.icon;
return (
@@ -290,7 +300,7 @@ export default function ToolsPage() {
<div className="mb-16">
<div className="flex items-center gap-3 mb-8">
<MessageCircle className="w-6 h-6 text-emerald-600 dark:text-emerald-400" />
- <h2 className="text-2xl font-bold text-neutral-900 dark:text-white">Social Media Font Generators</h2>
+ <h2 className="text-2xl font-bold text-neutral-900 dark:text-white">Social Media Tools</h2>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-2">
{socialMediaTools.map(tool => (
diff --git a/docs/src/app/api/tools/generate-comment/route.ts b/docs/src/app/api/tools/generate-comment/route.ts
new file mode 100644
index 000000000..ce9cae030
--- /dev/null
+++ b/docs/src/app/api/tools/generate-comment/route.ts
@@ -0,0 +1,122 @@
+import { callOpenRouter } from "@/lib/openrouter";
+import { getClientIP, rateLimit } from "@/lib/rate-limit";
+import { NextRequest, NextResponse } from "next/server";
+import { z } from "zod";
+
+const requestSchema = z.object({
+ originalContent: z.string().min(1).max(5000),
+ tone: z.enum([
+ "friendly",
+ "professional",
+ "humorous",
+ "supportive",
+ "inquisitive",
+ "critical",
+ ]),
+ length: z.enum(["short", "medium", "long"]),
+ platform: z.string(),
+});
+
+const lengthTargets = {
+ short: 50,
+ medium: 100,
+ long: 200,
+};
+
+export async function POST(request: NextRequest) {
+ try {
+ // Rate limiting - 5 requests per minute
+ const ip = getClientIP(request);
+ const rateLimitResult = rateLimit(
+ `comment-generator:${ip}`,
+ 5,
+ 60 * 1000
+ );
+
+ const headers = new Headers({
+ "X-RateLimit-Limit": rateLimitResult.limit.toString(),
+ "X-RateLimit-Remaining": rateLimitResult.remaining.toString(),
+ "X-RateLimit-Reset": new Date(rateLimitResult.reset).toISOString(),
+ });
+
+ if (!rateLimitResult.success) {
+ return NextResponse.json(
+ { error: "Rate limit exceeded. Please try again later." },
+ { status: 429, headers }
+ );
+ }
+
+ // Parse and validate request
+ const body = await request.json();
+ const validatedData = requestSchema.parse(body);
+
+ const targetLength = lengthTargets[validatedData.length];
+
+ // Call OpenRouter to generate comments
+ const prompt = `You are a social media expert helping create authentic, engaging comments for ${validatedData.platform}.
+
+Original content to comment on:
+${validatedData.originalContent}
+
+Generate 3 diverse comments with the following requirements:
+- Tone: ${validatedData.tone}
+- Target length: ~${targetLength} characters (be flexible, but stay reasonably close)
+- Make each comment unique and approach the content from different angles
+- Sound natural and authentic, not robotic or generic
+- Be contextually relevant to the original content
+- Match the culture and style of ${validatedData.platform}
+- Don't use hashtags unless they're genuinely relevant and natural
+- Avoid emojis unless the ${validatedData.tone} tone naturally calls for them
+
+Return ONLY a JSON array of comment strings in this exact format:
+["comment 1 text here", "comment 2 text here", "comment 3 text here"]
+
+Do not include any markdown formatting, explanation, or additional text - just the raw JSON array of strings.`;
+
+ const response = await callOpenRouter([
+ {
+ role: "user",
+ content: prompt,
+ },
+ ]);
+
+ // Parse JSON response
+ let comments;
+ try {
+ // Extract JSON from response
+ const jsonMatch = response.match(/\[[\s\S]*\]/);
+ if (!jsonMatch) {
+ throw new Error("No JSON array found in response");
+ }
+ comments = JSON.parse(jsonMatch[0]);
+
+ // Validate it's an array of strings
+ if (
+ !Array.isArray(comments) ||
+ !comments.every((c) => typeof c === "string")
+ ) {
+ throw new Error("Invalid comment format");
+ }
+ } catch {
+ return NextResponse.json(
+ { error: "Failed to parse generated comments. Please try again." },
+ { status: 500, headers }
+ );
+ }
+
+ return NextResponse.json({ comments }, { headers });
+ } catch (error) {
+ if (error instanceof z.ZodError) {
+ return NextResponse.json(
+ { error: "Invalid request data", details: z.treeifyError(error) },
+ { status: 400 }
+ );
+ }
+
+ console.error("Comment generation error:", error);
+ return NextResponse.json(
+ { error: "Failed to generate comments. Please try again." },
+ { status: 500 }
+ );
+ }
+}
diff --git a/docs/src/components/RelatedTools.tsx b/docs/src/components/RelatedTools.tsx
index 449e18b8e..8efd3714e 100644
--- a/docs/src/components/RelatedTools.tsx
+++ b/docs/src/components/RelatedTools.tsx
@@ -249,6 +249,114 @@ const allTools: Tool[] = [
href: "/tools/dribbble-font-generator",
category: "social-media",
},
+ {
+ name: "Discord Comment Generator",
+ description: "Generate engaging Discord comments and replies with AI",
+ href: "/tools/discord-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "X (Twitter) Comment Generator",
+ description: "Generate engaging X (Twitter) replies with AI",
+ href: "/tools/x-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Reddit Comment Generator",
+ description: "Generate thoughtful Reddit comments with AI",
+ href: "/tools/reddit-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Facebook Comment Generator",
+ description: "Generate friendly Facebook comments with AI",
+ href: "/tools/facebook-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Instagram Comment Generator",
+ description: "Generate engaging Instagram comments with AI",
+ href: "/tools/instagram-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Threads Comment Generator",
+ description: "Generate thoughtful Threads replies with AI",
+ href: "/tools/threads-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "YouTube Comment Generator",
+ description: "Generate engaging YouTube comments with AI",
+ href: "/tools/youtube-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "TikTok Comment Generator",
+ description: "Generate trendy TikTok comments with AI",
+ href: "/tools/tiktok-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Pinterest Comment Generator",
+ description: "Generate helpful Pinterest comments with AI",
+ href: "/tools/pinterest-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "VK Comment Generator",
+ description: "Generate engaging VK comments with AI",
+ href: "/tools/vk-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Bluesky Comment Generator",
+ description: "Generate thoughtful Bluesky replies with AI",
+ href: "/tools/bluesky-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Lemmy Comment Generator",
+ description: "Generate thoughtful Lemmy comments with AI",
+ href: "/tools/lemmy-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Slack Comment Generator",
+ description: "Generate professional Slack responses with AI",
+ href: "/tools/slack-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Mastodon Comment Generator",
+ description: "Generate thoughtful Mastodon replies with AI",
+ href: "/tools/mastodon-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Warpcast Comment Generator",
+ description: "Generate engaging Warpcast replies with AI",
+ href: "/tools/warpcast-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Telegram Comment Generator",
+ description: "Generate engaging Telegram comments with AI",
+ href: "/tools/telegram-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Nostr Comment Generator",
+ description: "Generate thoughtful Nostr replies with AI",
+ href: "/tools/nostr-comment-generator",
+ category: "social-media",
+ },
+ {
+ name: "Dribbble Comment Generator",
+ description: "Generate constructive Dribbble comments with AI",
+ href: "/tools/dribbble-comment-generator",
+ category: "social-media",
+ },
];
interface RelatedToolsProps {