🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Add page name generation tools and enhance related tools section
Bill Yang9d3c5aed9c19
diff --git a/docs/src/app/(home)/tools/(font-generators)/[slug]/page.tsx b/docs/src/app/(home)/tools/(font-generators)/[slug]/page.tsxindex 5e3cbe137..5a3d49b52 100644--- a/docs/src/app/(home)/tools/(font-generators)/[slug]/page.tsx+++ b/docs/src/app/(home)/tools/(font-generators)/[slug]/page.tsx@@ -1,11 +1,16 @@import { ToolPageLayout } from "../../components/ToolPageLayout";import { FontGeneratorTool } from "../../components/FontGeneratorTool";import AICommentForm from "../../components/AICommentForm";+import PageNameGenerator from "../../components/PageNameGenerator";import { platformConfigs, platformList } from "../../components/platform-configs";import {commentPlatformConfigs,commentPlatformList,} from "../../components/comment-platform-configs";+import {+ pageNamePlatformConfigs,+ pageNamePlatformList,+} from "../../components/page-name-platform-configs";import type { Metadata } from "next";import { notFound } from "next/navigation";@@ -25,7 +30,11 @@ export async function generateStaticParams() {slug: `${platform.id}-comment-generator`,}));- return [...fontGenerators, ...commentGenerators];+ const pageNameGenerators = pageNamePlatformList.map((platform) => ({+ slug: `${platform.id}-page-name-generator`,+ }));++ return [...fontGenerators, ...commentGenerators, ...pageNameGenerators];}// Generate metadata dynamically based on slug@@ -34,6 +43,36 @@ export async function generateMetadata({}: PageProps): Promise<Metadata> {const { slug } = await params;+ // Check if it's a page name generator+ if (slug.endsWith("-page-name-generator")) {+ const platformId = slug.replace("-page-name-generator", "");+ const platform = pageNamePlatformConfigs[platformId];++ if (!platform) {+ return { title: "Page Name Generator Not Found" };+ }++ return {+ title: `${platform.displayName} | AI-Powered ${platform.pageType} Names`,+ description: platform.description,+ openGraph: {+ title: platform.displayName,+ description: platform.description,+ type: "website",+ url: `https://rybbit.com/tools/${platform.id}-page-name-generator`,+ siteName: "Rybbit Documentation",+ },+ twitter: {+ card: "summary_large_image",+ title: platform.displayName,+ description: platform.description,+ },+ alternates: {+ canonical: `https://rybbit.com/tools/${platform.id}-page-name-generator`,+ },+ };+ }+// Check if it's a comment generatorif (slug.endsWith("-comment-generator")) {const platformId = slug.replace("-comment-generator", "");@@ -98,6 +137,164 @@ export async function generateMetadata({export default async function PlatformToolPage({ params }: PageProps) {const { slug } = await params;+ // Check if it's a page name generator+ if (slug.endsWith("-page-name-generator")) {+ const platformId = slug.replace("-page-name-generator", "");+ const platform = pageNamePlatformConfigs[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}-page-name-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} {platform.pageType} Names+ </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>Describe your {platform.pageType.toLowerCase()}</strong> -+ What's it about? What topics will you cover?+ </li>+ <li>+ <strong>Add keywords (optional)</strong> - Include specific terms+ you want in the name+ </li>+ <li>+ <strong>Choose name length</strong> - Short, medium, or long+ </li>+ <li>+ <strong>Click "Generate Names"</strong> to get 5 unique suggestions+ </li>+ <li>+ <strong>Copy your favorite</strong> and use it for your{" "}+ {platform.name} {platform.pageType.toLowerCase()}+ </li>+ </ol>++ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">+ Best Practices for {platform.name} {platform.pageType} Names+ </h3>+ <ul className="space-y-2 text-neutral-700 dark:text-neutral-300 mb-6">+ <li>+ <strong>Keep it memorable:</strong> Choose a name that's easy to+ remember and spell+ </li>+ <li>+ <strong>Make it relevant:</strong> The name should clearly reflect+ your content or purpose+ </li>+ <li>+ <strong>Consider SEO:</strong> Include keywords that people might+ search for+ </li>+ <li>+ <strong>Check availability:</strong> Make sure the name isn't+ already taken on {platform.name}+ </li>+ <li>+ <strong>Think long-term:</strong> Choose a name that will still work+ as your {platform.pageType.toLowerCase()} grows+ </li>+ </ul>++ <p className="text-sm text-neutral-600 dark:text-neutral-400 mt-6">+ <strong>Note:</strong> Always check if your chosen name is available+ on {platform.name} before committing to it. The best names are unique,+ memorable, and accurately represent your content.+ </p>+ </>+ );++ const faqs = [+ {+ question: `How does the ${platform.name} ${platform.pageType} name generator work?`,+ answer: `This tool uses AI to analyze your topic and keywords, then generates creative, memorable ${platform.pageType.toLowerCase()} names that are optimized for ${+ platform.name+ }. It considers platform-specific best practices and naming conventions.`,+ },+ {+ question: "Can I customize the generated names?",+ answer:+ "Absolutely! The generated names are starting points. Feel free to modify them, combine elements from different suggestions, or use them as inspiration for your own variations.",+ },+ {+ question: "What makes a good name?",+ answer: `A good ${platform.pageType.toLowerCase()} name is memorable, easy to spell, relevant to your content, and unique. It should give potential members or followers a clear idea of what to expect while being catchy enough to remember.`,+ },+ {+ question: "How many names can I generate?",+ answer:+ "The tool generates 5 unique name suggestions per request. You're limited to 5 requests per minute. If you need more options, try adjusting your topic description or keywords for different variations.",+ },+ {+ question: "Are the names guaranteed to be available?",+ answer: `No, the tool generates creative name suggestions but doesn't check availability on ${platform.name}. Always verify that your chosen name is available on the platform before using it.`,+ },+ {+ question: "How can Rybbit help me grow my presence?",+ answer: (+ <>+ Rybbit helps you track engagement, clicks, and traffic sources from+ your {platform.name} presence. Understand what content resonates with+ your audience and optimize your 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}-page-name-generator`}+ title={platform.displayName}+ description={platform.description}+ badge="AI-Powered Tool"+ toolComponent={<PageNameGenerator platform={platform} />}+ educationalContent={educationalContent}+ faqs={faqs}+ relatedToolsCategory="social-media"+ ctaTitle={`Grow your ${platform.name} presence with Rybbit`}+ ctaDescription={`Track performance and engagement from your ${platform.name} ${platform.pageType.toLowerCase()} to understand what works.`}+ ctaEventLocation={`${platform.id}_page_name_generator_cta`}+ structuredData={structuredData}+ />+ );+ }+// Check if it's a comment generatorif (slug.endsWith("-comment-generator")) {const platformId = slug.replace("-comment-generator", "");diff --git a/docs/src/app/(home)/tools/components/PageNameGenerator.tsx b/docs/src/app/(home)/tools/components/PageNameGenerator.tsxnew file mode 100644index 000000000..9a01db100--- /dev/null+++ b/docs/src/app/(home)/tools/components/PageNameGenerator.tsx@@ -0,0 +1,218 @@+"use client";++import { CheckCircle, Copy, Loader2 } from "lucide-react";+import { useState } from "react";+import type { PageNamePlatformConfig } from "./page-name-platform-configs";++interface PageNameGeneratorProps {+ platform: PageNamePlatformConfig;+}++const lengthOptions = [+ { value: "short", label: "Short", description: "1-2 words, concise" },+ { value: "medium", label: "Medium", description: "2-4 words, balanced" },+ { value: "long", label: "Long", description: "4-6 words, descriptive" },+];++export default function PageNameGenerator({+ platform,+}: PageNameGeneratorProps) {+ const [topic, setTopic] = useState("");+ const [keywords, setKeywords] = useState("");+ const [length, setLength] = useState("medium");+ const [names, setNames] = 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 generateNames = async () => {+ if (!topic.trim()) {+ setError(`Please describe your ${platform.pageType.toLowerCase()}`);+ return;+ }++ setIsLoading(true);+ setError("");+ setNames([]);++ try {+ const response = await fetch("/api/tools/generate-page-name", {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({+ topic: topic.trim(),+ keywords: keywords.trim(),+ length,+ platform: platform.id,+ pageType: platform.pageType,+ characterLimit: platform.characterLimit,+ }),+ });++ 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 names");+ }++ const data = await response.json();+ setNames(data.names);+ } 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="topic"+ className="block text-sm font-medium text-neutral-700 dark:text-neutral-300 mb-2"+ >+ {platform.pageType} Topic/Purpose+ </label>+ <textarea+ id="topic"+ rows={3}+ 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={`Describe what your ${platform.pageType.toLowerCase()} is about (e.g., "A gaming community for strategy game players" or "Tech startup focused on AI tools")`}+ value={topic}+ onChange={(e) => setTopic(e.target.value)}+ maxLength={500}+ />+ <p className="mt-1 text-xs text-neutral-500 dark:text-neutral-400">+ {topic.length} / 500 characters+ </p>+ </div>++ <div>+ <label+ htmlFor="keywords"+ className="block text-sm font-medium text-neutral-700 dark:text-neutral-300 mb-2"+ >+ Keywords (Optional)+ </label>+ <input+ id="keywords"+ type="text"+ 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"+ placeholder="Keywords to include (e.g., gaming, tech, creative)"+ value={keywords}+ onChange={(e) => setKeywords(e.target.value)}+ maxLength={100}+ />+ </div>++ <div>+ <label+ htmlFor="length"+ className="block text-sm font-medium text-neutral-700 dark:text-neutral-300 mb-2"+ >+ Name 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>++ <button+ onClick={generateNames}+ disabled={isLoading || !topic.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 Names...+ </>+ ) : (+ "Generate Names"+ )}+ </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>+ )}++ {names.length > 0 && (+ <div className="space-y-4">+ <h3 className="text-lg font-semibold text-neutral-900 dark:text-white">+ Generated {platform.pageType} Names+ </h3>+ {names.map((name, 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-center justify-between gap-3">+ <p className="flex-1 text-lg font-medium text-neutral-900 dark:text-white">+ {name}+ </p>+ <button+ onClick={() => copyToClipboard(name, 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 mt-1">+ {name.length} characters+ {platform.characterLimit &&+ ` / ${platform.characterLimit} limit`}+ </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 Guidelines:</strong> {platform.contextGuidelines}+ </p>+ </div>+ </div>+ );+}diff --git a/docs/src/app/(home)/tools/components/page-name-platform-configs.ts b/docs/src/app/(home)/tools/components/page-name-platform-configs.tsnew file mode 100644index 000000000..acf0857b1--- /dev/null+++ b/docs/src/app/(home)/tools/components/page-name-platform-configs.ts@@ -0,0 +1,276 @@+export interface PageNamePlatformConfig {+ id: string;+ name: string;+ displayName: string;+ description: string;+ simpleIconSlug: string;+ colorHex: string;+ pageType: string; // e.g., "Page", "Community", "Server", "Channel", "Group"+ characterLimit?: number;+ educationalContent: string;+ contextGuidelines: string;+}++export const pageNamePlatformConfigs: Record<+ string,+ PageNamePlatformConfig+> = {+ linkedin: {+ id: "linkedin",+ name: "LinkedIn",+ displayName: "LinkedIn Page Name Generator",+ description:+ "Generate professional LinkedIn company page names with AI. Create memorable names for your business page that attract followers and establish credibility.",+ simpleIconSlug: "linkedin",+ colorHex: "#0A66C2",+ pageType: "Company Page",+ characterLimit: 100,+ contextGuidelines:+ "LinkedIn page names should be professional, clear, and reflect your brand identity. They appear in search results and help people find your business.",+ educationalContent: `LinkedIn company pages are essential for businesses to establish their professional presence, share updates, and attract talent. A strong page name is memorable, searchable, and clearly communicates what your organization does.++Effective LinkedIn page names are professional, concise, and optimized for search. They should reflect your brand while being easy to remember and type. The best names balance creativity with clarity.`,+ },+ discord: {+ id: "discord",+ name: "Discord",+ displayName: "Discord Server Name Generator",+ description:+ "Generate creative Discord server names with AI. Create unique, engaging names for gaming communities, study groups, and Discord servers.",+ simpleIconSlug: "discord",+ colorHex: "#5865F2",+ pageType: "Server",+ characterLimit: 100,+ contextGuidelines:+ "Discord server names should reflect the community's theme and be memorable. They can be fun, creative, or descriptive depending on your server's purpose.",+ educationalContent: `Discord servers are communities built around shared interests, games, or topics. Your server name is the first thing potential members see and sets the tone for your community.++Effective Discord server names are creative, memorable, and reflect the community's purpose. They can be playful, professional, or thematic depending on your audience. The best names make people curious to join.`,+ },+ x: {+ id: "x",+ name: "X (Twitter)",+ displayName: "X (Twitter) Name Generator",+ description:+ "Generate catchy X (Twitter) display names with AI. Create memorable names that stand out in the timeline and attract followers.",+ simpleIconSlug: "x",+ colorHex: "#000000",+ pageType: "Display Name",+ characterLimit: 50,+ contextGuidelines:+ "X/Twitter display names should be memorable and reflect your brand or personality. They appear next to your @handle and help you stand out.",+ educationalContent: `Your X (Twitter) display name appears next to your @username and is what most people will see when you tweet. It can include spaces, emojis, and special characters, making it more flexible than your @handle.++Effective X display names are memorable, searchable, and reflect your brand or personality. They help you stand out in crowded feeds and make it easy for people to recognize your content.`,+ },+ reddit: {+ id: "reddit",+ name: "Reddit",+ displayName: "Reddit Community Name Generator",+ description:+ "Generate engaging Reddit subreddit names with AI. Create memorable community names that attract subscribers and define your niche.",+ simpleIconSlug: "reddit",+ colorHex: "#FF4500",+ pageType: "Subreddit",+ characterLimit: 21,+ contextGuidelines:+ "Reddit community names (subreddits) should be concise, descriptive, and easy to remember. They're permanent and define your community's identity.",+ educationalContent: `Subreddit names are permanent identifiers for your Reddit community. They must be unique, concise (max 21 characters), and clearly communicate what the community is about.++Effective subreddit names are short, descriptive, and memorable. They often use portmanteaus, abbreviations, or clear descriptors. The best names make the community's purpose immediately obvious.`,+ },+ facebook: {+ id: "facebook",+ name: "Facebook",+ displayName: "Facebook Page Name Generator",+ description:+ "Generate professional Facebook business page names with AI. Create memorable names that attract likes and establish your brand presence.",+ simpleIconSlug: "facebook",+ colorHex: "#1877F2",+ pageType: "Business Page",+ characterLimit: 75,+ contextGuidelines:+ "Facebook page names should clearly represent your business or brand. They're searchable and help people find and recognize your page.",+ educationalContent: `Facebook business pages represent your organization on the world's largest social network. Your page name is crucial for discoverability and brand recognition.++Effective Facebook page names are clear, professional, and include relevant keywords for search. They should match your business name or clearly describe what you do. The best names are easy to remember and share.`,+ },+ instagram: {+ id: "instagram",+ name: "Instagram",+ displayName: "Instagram Name Generator",+ description:+ "Generate creative Instagram display names with AI. Create memorable names that complement your username and attract followers.",+ simpleIconSlug: "instagram",+ colorHex: "#E4405F",+ pageType: "Display Name",+ characterLimit: 30,+ contextGuidelines:+ "Instagram names appear on your profile and should complement your username. They can include emojis and help define your brand.",+ educationalContent: `Your Instagram name (different from your @username) appears prominently on your profile and is searchable. It can include spaces, emojis, and special characters.++Effective Instagram names are creative, memorable, and reflect your brand or niche. They often include keywords that help people find your account and understand what you post about.`,+ },+ youtube: {+ id: "youtube",+ name: "YouTube",+ displayName: "YouTube Channel Name Generator",+ description:+ "Generate catchy YouTube channel names with AI. Create memorable names that attract subscribers and define your content niche.",+ simpleIconSlug: "youtube",+ colorHex: "#FF0000",+ pageType: "Channel",+ characterLimit: 50,+ contextGuidelines:+ "YouTube channel names should be memorable, searchable, and reflect your content niche. They're crucial for branding and discoverability.",+ educationalContent: `Your YouTube channel name is your primary brand identifier and appears on all your videos, comments, and community posts. It's crucial for discoverability and building recognition.++Effective YouTube channel names are unique, memorable, and hint at your content niche. They should be easy to spell, pronounce, and remember. The best names help viewers understand what type of content you create.`,+ },+ tiktok: {+ id: "tiktok",+ name: "TikTok",+ displayName: "TikTok Name Generator",+ description:+ "Generate trendy TikTok display names with AI. Create catchy names that attract followers and fit TikTok's creative culture.",+ simpleIconSlug: "tiktok",+ colorHex: "#000000",+ pageType: "Display Name",+ characterLimit: 30,+ contextGuidelines:+ "TikTok names should be catchy, creative, and memorable. They can include emojis and should reflect your content style or personality.",+ educationalContent: `Your TikTok display name appears on your profile and in comments. It's separate from your @username and can be changed, making it flexible for rebranding.++Effective TikTok names are creative, trendy, and memorable. They often use wordplay, emojis, or aesthetic styling. The best names reflect your content niche and help you stand out in a creative platform.`,+ },+ pinterest: {+ id: "pinterest",+ name: "Pinterest",+ displayName: "Pinterest Board Name Generator",+ description:+ "Generate organized Pinterest board names with AI. Create descriptive names that help users find and save your curated content.",+ simpleIconSlug: "pinterest",+ colorHex: "#E60023",+ pageType: "Board",+ characterLimit: 50,+ contextGuidelines:+ "Pinterest board names should be descriptive and keyword-rich. They help users find your boards and understand what content they contain.",+ educationalContent: `Pinterest boards organize your pins by topic or theme. Board names are crucial for searchability and helping users find content they're interested in.++Effective Pinterest board names are descriptive, keyword-rich, and clear. They should tell users exactly what type of content they'll find. The best names use popular search terms while remaining specific.`,+ },+ slack: {+ id: "slack",+ name: "Slack",+ displayName: "Slack Channel Name Generator",+ description:+ "Generate organized Slack channel names with AI. Create clear, purposeful names that help teams stay organized and communicate effectively.",+ simpleIconSlug: "slack",+ colorHex: "#4A154B",+ pageType: "Channel",+ characterLimit: 80,+ contextGuidelines:+ "Slack channel names should be clear, purposeful, and follow naming conventions. They help teams stay organized and find the right conversations.",+ educationalContent: `Slack channels organize team conversations by topic, project, or department. Good channel names make it easy for team members to find relevant discussions and understand each channel's purpose.++Effective Slack channel names are lowercase, use hyphens instead of spaces, and follow consistent naming conventions (e.g., #proj-name, #team-name). The best names are immediately understandable and searchable.`,+ },+ telegram: {+ id: "telegram",+ name: "Telegram",+ displayName: "Telegram Group Name Generator",+ description:+ "Generate engaging Telegram group and channel names with AI. Create memorable names that attract members and define your community.",+ simpleIconSlug: "telegram",+ colorHex: "#26A5E4",+ pageType: "Group/Channel",+ characterLimit: 255,+ contextGuidelines:+ "Telegram group names should be clear and descriptive. They help potential members understand the group's purpose and decide whether to join.",+ educationalContent: `Telegram groups and channels bring people together around shared interests or information. Your group name is the first thing potential members see and determines whether they'll join.++Effective Telegram group names clearly describe the community's purpose, are easy to search for, and are memorable. They can be professional or casual depending on your audience.`,+ },+ twitch: {+ id: "twitch",+ name: "Twitch",+ displayName: "Twitch Channel Name Generator",+ description:+ "Generate catchy Twitch channel names with AI. Create memorable names that attract viewers and stand out in the streaming community.",+ simpleIconSlug: "twitch",+ colorHex: "#9146FF",+ pageType: "Channel",+ characterLimit: 25,+ contextGuidelines:+ "Twitch channel names should be unique, memorable, and easy to spell. They're your permanent identity on the platform and crucial for branding.",+ educationalContent: `Your Twitch channel name is your permanent username and brand identity. It appears in your stream URL, chat, and all interactions on the platform.++Effective Twitch names are unique, memorable, and easy to spell. They should be pronounceable for voice chat and short enough to be easily typed. The best names reflect your personality or content niche without being too generic.`,+ },+ spotify: {+ id: "spotify",+ name: "Spotify",+ displayName: "Spotify Playlist Name Generator",+ description:+ "Generate creative Spotify playlist names with AI. Create memorable names that capture your playlist's mood and attract listeners.",+ simpleIconSlug: "spotify",+ colorHex: "#1DB954",+ pageType: "Playlist",+ characterLimit: 100,+ contextGuidelines:+ "Spotify playlist names should capture the mood, theme, or purpose of the music. Creative names attract listeners and make playlists shareable.",+ educationalContent: `Spotify playlist names set the tone for your curated music collection. They help listeners discover your playlist and understand the vibe before they hit play.++Effective Spotify playlist names are creative, descriptive, and evoke the mood of the music. They can be poetic, humorous, or straightforward. The best names make people want to click and listen.`,+ },+ github: {+ id: "github",+ name: "GitHub",+ displayName: "GitHub Repository Name Generator",+ description:+ "Generate clear GitHub repository names with AI. Create descriptive names that communicate your project's purpose to developers.",+ simpleIconSlug: "github",+ colorHex: "#181717",+ pageType: "Repository",+ characterLimit: 100,+ contextGuidelines:+ "GitHub repository names should be lowercase, use hyphens, and clearly describe the project. Good names improve discoverability and professionalism.",+ educationalContent: `GitHub repository names are permanent identifiers for your code projects. They appear in URLs, git commands, and search results, making clarity essential.++Effective GitHub repo names use lowercase letters, hyphens for spaces, and clearly describe the project's purpose. They should be concise, descriptive, and follow common naming conventions (e.g., "react-todo-app" not "My_Project123").`,+ },+ medium: {+ id: "medium",+ name: "Medium",+ displayName: "Medium Publication Name Generator",+ description:+ "Generate compelling Medium publication names with AI. Create memorable names for your publication that attract readers and writers.",+ simpleIconSlug: "medium",+ colorHex: "#000000",+ pageType: "Publication",+ characterLimit: 60,+ contextGuidelines:+ "Medium publication names should be memorable and reflect your editorial focus. They help readers understand your content and attract contributors.",+ educationalContent: `Medium publications are curated collections of stories around a theme or topic. Your publication name is crucial for attracting both readers and contributing writers.++Effective Medium publication names are memorable, reflect your editorial focus, and hint at the type of content readers will find. The best names are unique enough to stand out but clear enough to be understood.`,+ },+ substack: {+ id: "substack",+ name: "Substack",+ displayName: "Substack Newsletter Name Generator",+ description:+ "Generate engaging Substack newsletter names with AI. Create memorable names that attract subscribers and define your niche.",+ simpleIconSlug: "substack",+ colorHex: "#FF6719",+ pageType: "Newsletter",+ characterLimit: 60,+ contextGuidelines:+ "Substack newsletter names should clearly communicate your topic or perspective. They're crucial for attracting subscribers and establishing your brand.",+ educationalContent: `Your Substack newsletter name is your brand identity in the creator economy. It appears in your URL, emails, and when people recommend your work.++Effective Substack names clearly communicate your topic, perspective, or value proposition. They should be memorable, searchable, and give potential subscribers a reason to sign up. The best names balance clarity with creativity.`,+ },+};++export const pageNamePlatformList = Object.values(pageNamePlatformConfigs);diff --git a/docs/src/app/(home)/tools/page.tsx b/docs/src/app/(home)/tools/page.tsxindex 526a33463..69162f876 100644--- a/docs/src/app/(home)/tools/page.tsx+++ b/docs/src/app/(home)/tools/page.tsx@@ -24,6 +24,7 @@ import {} from "lucide-react";import { platformList } from "./components/platform-configs";import { commentPlatformList } from "./components/comment-platform-configs";+import { pageNamePlatformList } from "./components/page-name-platform-configs";import {SiDiscord,SiX,@@ -42,6 +43,11 @@ import {SiFarcaster,SiTelegram,SiDribbble,+ SiTwitch,+ SiSpotify,+ SiGithub,+ SiMedium,+ SiSubstack,} from "@icons-pack/react-simple-icons";export const metadata = {@@ -220,6 +226,11 @@ const platformIconMap: Record<string, any> = {telegram: SiTelegram,nostr: Zap, // Nostr not available in simple-icons, using Lucidedribbble: SiDribbble,+ twitch: SiTwitch,+ spotify: SiSpotify,+ github: SiGithub,+ medium: SiMedium,+ substack: SiSubstack,};const fontGeneratorTools = platformList.map(platform => ({@@ -236,7 +247,14 @@ const commentGeneratorTools = commentPlatformList.map(platform => ({description: `Generate engaging AI-powered comments for ${platform.name}. Create authentic, contextual responses.`,}));-const socialMediaTools = [...fontGeneratorTools, ...commentGeneratorTools];+const pageNameGeneratorTools = pageNamePlatformList.map(platform => ({+ href: `/tools/${platform.id}-page-name-generator`,+ icon: platformIconMap[platform.id],+ title: platform.displayName,+ description: `Generate creative ${platform.pageType.toLowerCase()} names for ${platform.name} with AI.`,+}));++const socialMediaTools = [...fontGeneratorTools, ...commentGeneratorTools, ...pageNameGeneratorTools];function ToolCard({ tool }: { tool: { href: string; icon: any; title: string; description: string } }) {const Icon = tool.icon;diff --git a/docs/src/app/api/tools/generate-page-name/route.ts b/docs/src/app/api/tools/generate-page-name/route.tsnew file mode 100644index 000000000..0fe95c18f--- /dev/null+++ b/docs/src/app/api/tools/generate-page-name/route.ts@@ -0,0 +1,129 @@+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({+ topic: z.string().min(3).max(500),+ keywords: z.string().max(100).optional(),+ length: z.enum(["short", "medium", "long"]),+ platform: z.string(),+ pageType: z.string(),+ characterLimit: z.number().optional(),+});++export async function POST(request: NextRequest) {+ try {+ // Rate limiting - 5 requests per minute+ const ip = getClientIP(request);+ const rateLimitResult = rateLimit(+ `page-name-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 keywordsText = validatedData.keywords+ ? `\nPreferred keywords: ${validatedData.keywords}`+ : "";++ const lengthGuidance = {+ short: "1-2 words, concise and punchy",+ medium: "2-4 words, balanced and memorable",+ long: "4-6 words, descriptive and detailed",+ };++ const characterLimitText = validatedData.characterLimit+ ? `\nIMPORTANT: Names MUST be under ${validatedData.characterLimit} characters.`+ : "";++ // Call OpenRouter to generate names+ const prompt = `You are a creative branding expert specializing in ${validatedData.platform}. Generate 5 unique, memorable ${validatedData.pageType} names for the following topic:++Topic: ${validatedData.topic}${keywordsText}++Requirements:+- Length: ${lengthGuidance[validatedData.length]}${characterLimitText}+- Make them creative, memorable, and appropriate for ${validatedData.platform}+- Ensure they're unique and not generic+- Make them easy to spell and pronounce+- Each name should be distinct and approach the topic from different angles+- Avoid special characters unless common for ${validatedData.platform}+- Make them searchable and brandable++Return ONLY a JSON array of name strings in this exact format:+["Name 1", "Name 2", "Name 3", "Name 4", "Name 5"]++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 names;+ try {+ // Extract JSON from response+ const jsonMatch = response.match(/\[[\s\S]*\]/);+ if (!jsonMatch) {+ throw new Error("No JSON array found in response");+ }+ names = JSON.parse(jsonMatch[0]);++ // Validate it's an array of strings+ if (!Array.isArray(names) || !names.every((n) => typeof n === "string")) {+ throw new Error("Invalid name format");+ }++ // Filter out names that exceed character limit if specified+ if (validatedData.characterLimit) {+ names = names.filter((name) => name.length <= validatedData.characterLimit!);++ // If we filtered out too many, we might have fewer than 5 names+ if (names.length === 0) {+ throw new Error("Generated names exceeded character limit. Please try again.");+ }+ }+ } catch (error) {+ console.error("Parse error:", error);+ return NextResponse.json(+ { error: "Failed to parse generated names. Please try again." },+ { status: 500, headers }+ );+ }++ return NextResponse.json({ names }, { headers });+ } catch (error) {+ if (error instanceof z.ZodError) {+ return NextResponse.json(+ { error: "Invalid request data", details: z.treeifyError(error) },+ { status: 400 }+ );+ }++ console.error("Page name generation error:", error);+ return NextResponse.json(+ { error: "Failed to generate names. Please try again." },+ { status: 500 }+ );+ }+}diff --git a/docs/src/components/RelatedTools.tsx b/docs/src/components/RelatedTools.tsxindex 8efd3714e..aea084333 100644--- a/docs/src/components/RelatedTools.tsx+++ b/docs/src/components/RelatedTools.tsx@@ -357,6 +357,102 @@ const allTools: Tool[] = [href: "/tools/dribbble-comment-generator",category: "social-media",},+ {+ name: "LinkedIn Page Name Generator",+ description: "Generate professional LinkedIn page names with AI",+ href: "/tools/linkedin-page-name-generator",+ category: "social-media",+ },+ {+ name: "Discord Server Name Generator",+ description: "Generate creative Discord server names with AI",+ href: "/tools/discord-page-name-generator",+ category: "social-media",+ },+ {+ name: "X (Twitter) Name Generator",+ description: "Generate catchy X (Twitter) display names with AI",+ href: "/tools/x-page-name-generator",+ category: "social-media",+ },+ {+ name: "Reddit Community Name Generator",+ description: "Generate engaging Reddit subreddit names with AI",+ href: "/tools/reddit-page-name-generator",+ category: "social-media",+ },+ {+ name: "Facebook Page Name Generator",+ description: "Generate professional Facebook page names with AI",+ href: "/tools/facebook-page-name-generator",+ category: "social-media",+ },+ {+ name: "Instagram Name Generator",+ description: "Generate creative Instagram display names with AI",+ href: "/tools/instagram-page-name-generator",+ category: "social-media",+ },+ {+ name: "YouTube Channel Name Generator",+ description: "Generate catchy YouTube channel names with AI",+ href: "/tools/youtube-page-name-generator",+ category: "social-media",+ },+ {+ name: "TikTok Name Generator",+ description: "Generate trendy TikTok display names with AI",+ href: "/tools/tiktok-page-name-generator",+ category: "social-media",+ },+ {+ name: "Pinterest Board Name Generator",+ description: "Generate organized Pinterest board names with AI",+ href: "/tools/pinterest-page-name-generator",+ category: "social-media",+ },+ {+ name: "Slack Channel Name Generator",+ description: "Generate organized Slack channel names with AI",+ href: "/tools/slack-page-name-generator",+ category: "social-media",+ },+ {+ name: "Telegram Group Name Generator",+ description: "Generate engaging Telegram group names with AI",+ href: "/tools/telegram-page-name-generator",+ category: "social-media",+ },+ {+ name: "Twitch Channel Name Generator",+ description: "Generate catchy Twitch channel names with AI",+ href: "/tools/twitch-page-name-generator",+ category: "social-media",+ },+ {+ name: "Spotify Playlist Name Generator",+ description: "Generate creative Spotify playlist names with AI",+ href: "/tools/spotify-page-name-generator",+ category: "social-media",+ },+ {+ name: "GitHub Repository Name Generator",+ description: "Generate clear GitHub repository names with AI",+ href: "/tools/github-page-name-generator",+ category: "social-media",+ },+ {+ name: "Medium Publication Name Generator",+ description: "Generate compelling Medium publication names with AI",+ href: "/tools/medium-page-name-generator",+ category: "social-media",+ },+ {+ name: "Substack Newsletter Name Generator",+ description: "Generate engaging Substack newsletter names with AI",+ href: "/tools/substack-page-name-generator",+ category: "social-media",+ },];interface RelatedToolsProps {