repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/structured-format-warning.tsx | src/components/prompts/structured-format-warning.tsx | "use client";
import { useMemo } from "react";
import { useTranslations } from "next-intl";
import { AlertTriangle, Braces, FileCode } from "lucide-react";
import { Alert, AlertDescription } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";
interface StructuredFormatWarningProps {
conte... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/add-version-form.tsx | src/components/prompts/add-version-form.tsx | "use client";
import { useState } from "react";
import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl";
import { Loader2, Plus } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Textarea } from "@/components/ui/textarea";
import { Input } from "@/componen... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/prompt-filters.tsx | src/components/prompts/prompt-filters.tsx | "use client";
import { useState, useMemo, useRef } from "react";
import { useRouter, useSearchParams } from "next/navigation";
import { useTranslations } from "next-intl";
import { useFilterContext } from "./filter-context";
import { Label } from "@/components/ui/label";
import { Input } from "@/components/ui/input";
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/prompt-builder.tsx | src/components/prompts/prompt-builder.tsx | "use client";
import { useState, useRef, useEffect, useImperativeHandle, forwardRef } from "react";
import { useTranslations } from "next-intl";
import { ArrowUp, Loader2, Sparkles, X, ChevronRight, Bot } from "lucide-react";
import ReactMarkdown from "react-markdown";
import { Button } from "@/components/ui/button";
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/interactive-prompt-content.tsx | src/components/prompts/interactive-prompt-content.tsx | "use client";
import { useState, useMemo, useCallback, useRef, useEffect } from "react";
import { useTranslations } from "next-intl";
import { Copy, Check, RotateCcw } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/component... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/variable-fill-modal.tsx | src/components/prompts/variable-fill-modal.tsx | "use client";
import { useState, useMemo, useCallback } from "react";
import { useTranslations } from "next-intl";
import { Copy } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import {
Dialog,
Dia... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/delete-version-button.tsx | src/components/prompts/delete-version-button.tsx | "use client";
import { useState } from "react";
import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl";
import { Trash2, Loader2 } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
AlertDialog,
AlertDialogAction,
AlertDialogCancel,
AlertDialogConte... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/variable-warning.tsx | src/components/prompts/variable-warning.tsx | "use client";
import { useMemo } from "react";
import { useTranslations } from "next-intl";
import { AlertTriangle, Sparkles } from "lucide-react";
import { Alert, AlertDescription } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
import {
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/pin-button.tsx | src/components/prompts/pin-button.tsx | "use client";
import { useState } from "react";
import { useTranslations } from "next-intl";
import { Pin, Loader2 } from "lucide-react";
import { Button } from "@/components/ui/button";
import { toast } from "sonner";
import { analyticsPrompt } from "@/lib/analytics";
interface PinButtonProps {
promptId: string;
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/share-dropdown.tsx | src/components/prompts/share-dropdown.tsx | "use client";
import { Share2 } from "lucide-react";
import { analyticsPrompt } from "@/lib/analytics";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
// Simple X/Twitter icon
function ... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/prompt-connections.tsx | src/components/prompts/prompt-connections.tsx | "use client";
import { useState, useEffect, useCallback, useRef } from "react";
import { useTranslations } from "next-intl";
import { toast } from "sonner";
import { useRouter } from "next/navigation";
import * as d3 from "d3";
import { Link2, ArrowUp, ArrowDown, ChevronRight } from "lucide-react";
import { Button } f... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/related-prompts.tsx | src/components/prompts/related-prompts.tsx | import Link from "next/link";
import { useTranslations } from "next-intl";
import { Sparkles, ArrowBigUp } from "lucide-react";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Badge } from "@/components/ui/badge";
import { getPromptUrl } from "@/lib/urls";
interface RelatedPrompt... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/hero-prompt-input.tsx | src/components/prompts/hero-prompt-input.tsx | "use client";
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl";
import { Bot, ArrowUp } from "lucide-react";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import { ana... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/prompt-card.tsx | src/components/prompts/prompt-card.tsx | "use client";
import { useState, useRef, useEffect } from "react";
import Link from "next/link";
import Image from "next/image";
import { useTranslations, useLocale } from "next-intl";
import { formatDistanceToNow } from "@/lib/date";
import { getPromptUrl } from "@/lib/urls";
import { ArrowBigUp, Lock, Copy, ImageIco... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/media-preview.tsx | src/components/prompts/media-preview.tsx | "use client";
import { useState } from "react";
import { useTranslations } from "next-intl";
import { ImageIcon, AlertTriangle } from "lucide-react";
import { AudioPlayer } from "./audio-player";
interface MediaPreviewProps {
mediaUrl: string;
title: string;
type: string;
}
export function MediaPreview({ media... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/media-generator.tsx | src/components/prompts/media-generator.tsx | "use client";
import { useState, useEffect, useCallback, useRef } from "react";
import { useTranslations } from "next-intl";
import { Loader2, Wand2, Upload, ChevronDown, AlertCircle, CheckCircle2 } from "lucide-react";
import Image from "next/image";
import { Button } from "@/components/ui/button";
import {
Dropdow... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/variable-toolbar.tsx | src/components/prompts/variable-toolbar.tsx | "use client";
import { useState, useEffect } from "react";
import { useTranslations } from "next-intl";
import { Variable, Plus } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import {
Popover,
Pop... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/prompt-form.tsx | src/components/prompts/prompt-form.tsx | "use client";
import { useState, useRef, useEffect } from "react";
import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl";
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
import { z } from "zod";
import { Loader2, Upload, X, ArrowDown,... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | true |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/discovery-prompts.tsx | src/components/prompts/discovery-prompts.tsx | import Link from "next/link";
import { getTranslations } from "next-intl/server";
import { ArrowRight, Clock, Flame, RefreshCw, Star, Users } from "lucide-react";
import { db } from "@/lib/db";
import { Button } from "@/components/ui/button";
import { Masonry } from "@/components/ui/masonry";
import { PromptCard } from... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/change-request-form.tsx | src/components/prompts/change-request-form.tsx | "use client";
import { useState, useRef } from "react";
import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl";
import { Loader2, Edit3, GitCompare } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Textarea } from "@/components/ui/textarea";
import { Inp... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/upvote-button.tsx | src/components/prompts/upvote-button.tsx | "use client";
import { useState } from "react";
import { useTranslations } from "next-intl";
import Link from "next/link";
import { Loader2, LogIn } from "lucide-react";
// Triangle up icon component
function TriangleUp({ className }: { className?: string }) {
return (
<svg viewBox="0 0 24 24" className={classN... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/version-compare-modal.tsx | src/components/prompts/version-compare-modal.tsx | "use client";
import { useState, useMemo } from "react";
import { useTranslations } from "next-intl";
import { GitCompare } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog";
import {... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/reopen-change-request-button.tsx | src/components/prompts/reopen-change-request-button.tsx | "use client";
import { useState } from "react";
import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl";
import { RotateCcw, Loader2 } from "lucide-react";
import { Button } from "@/components/ui/button";
import { toast } from "sonner";
import { analyticsPrompt } from "@/lib/analytics"... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/variable-hint.tsx | src/components/prompts/variable-hint.tsx | "use client";
import { useMemo, useRef, useCallback } from "react";
import { useTranslations } from "next-intl";
import { Variable } from "lucide-react";
interface VariableHintProps {
content: string;
onContentChange: (newContent: string) => void;
}
// Regex to match our supported variable format: ${name} or ${n... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/private-prompts-note.tsx | src/components/prompts/private-prompts-note.tsx | "use client";
import { useState, useEffect } from "react";
import { Lock, X } from "lucide-react";
import { useTranslations } from "next-intl";
import { Button } from "@/components/ui/button";
const STORAGE_KEY = "private-prompts-note-dismissed";
interface PrivatePromptsNoteProps {
count: number;
}
export functio... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/restore-prompt-button.tsx | src/components/prompts/restore-prompt-button.tsx | "use client";
import { useState } from "react";
import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl";
import { RotateCcw, Loader2 } from "lucide-react";
import { Button } from "@/components/ui/button";
import { toast } from "sonner";
interface RestorePromptButtonProps {
promptId:... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/prompt-writing-guide-content.tsx | src/components/prompts/prompt-writing-guide-content.tsx | "use client";
import { useState, useRef } from "react";
import { useTranslations } from "next-intl";
import {
ChevronDown,
ChevronUp,
Lightbulb,
Code,
Variable,
User,
Target,
Copy,
Check,
} from "lucide-react";
interface CodeBlockProps {
code: string;
}
function CodeBlock({ code }: CodeBlockProps... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/infinite-prompt-list.tsx | src/components/prompts/infinite-prompt-list.tsx | "use client";
import { useEffect, useRef, useState, useCallback } from "react";
import { useSearchParams } from "next/navigation";
import { useTranslations } from "next-intl";
import { Loader2, SearchX, RefreshCw } from "lucide-react";
import { Skeleton } from "@/components/ui/skeleton";
import { Button } from "@/comp... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/language-switcher.tsx | src/components/prompts/language-switcher.tsx | "use client";
import { Globe } from "lucide-react";
import { useTranslations } from "next-intl";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { setLocale } from "@/lib/i18n/clie... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/report-prompt-dialog.tsx | src/components/prompts/report-prompt-dialog.tsx | "use client";
import { useState } from "react";
import { useTranslations } from "next-intl";
import { Flag, Loader2 } from "lucide-react";
import { toast } from "sonner";
import {
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/components/ui/dia... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/dismiss-change-request-button.tsx | src/components/prompts/dismiss-change-request-button.tsx | "use client";
import { useState } from "react";
import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl";
import { Loader2, Trash2 } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
AlertDialog,
AlertDialogAction,
AlertDialogCancel,
AlertDialogConte... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/copy-button.tsx | src/components/prompts/copy-button.tsx | "use client";
import { useState } from "react";
import { useTranslations } from "next-intl";
import { Copy, Check } from "lucide-react";
import { Button } from "@/components/ui/button";
import { toast } from "sonner";
import { analyticsPrompt } from "@/lib/analytics";
interface CopyButtonProps {
content: string;
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/feature-prompt-button.tsx | src/components/prompts/feature-prompt-button.tsx | "use client";
import { useState } from "react";
import { useTranslations } from "next-intl";
import { Star } from "lucide-react";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import { analyticsPrompt } from "@/lib/analytics";
interface FeaturePromptButtonProps {
promptId: strin... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/translate-button.tsx | src/components/prompts/translate-button.tsx | "use client";
import { useState } from "react";
import { useLocale, useTranslations } from "next-intl";
import { Languages, Loader2 } from "lucide-react";
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
import { toast } from "sonner";
// Map locale codes to full language names for O... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/audio-player.tsx | src/components/prompts/audio-player.tsx | "use client";
import { useState, useRef, useEffect, useMemo } from "react";
import { Play, Pause, Volume2, VolumeX } from "lucide-react";
import { cn } from "@/lib/utils";
interface AudioPlayerProps {
src: string;
onError?: () => void;
className?: string;
compact?: boolean;
}
const BARS = 32;
export functio... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/unlist-prompt-button.tsx | src/components/prompts/unlist-prompt-button.tsx | "use client";
import { useState } from "react";
import { useTranslations } from "next-intl";
import { EyeOff, Eye } from "lucide-react";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
interface UnlistPromptButtonProps {
promptId: string;
isUnlisted: boolean;
className?: strin... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/delist-banner.tsx | src/components/prompts/delist-banner.tsx | "use client";
import { useState } from "react";
import { useTranslations } from "next-intl";
import { useRouter } from "next/navigation";
import { AlertTriangle, Trash2, Loader2, ListPlus } from "lucide-react";
import { Button } from "@/components/ui/button";
import { toast } from "sonner";
import {
AlertDialog,
A... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/add-connection-dialog.tsx | src/components/prompts/add-connection-dialog.tsx | "use client";
import { useState, useEffect } from "react";
import { useTranslations } from "next-intl";
import { Search, Link2, Loader2 } from "lucide-react";
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog";
import { Button } from "@/components/ui... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/version-compare-button.tsx | src/components/prompts/version-compare-button.tsx | "use client";
import { useState } from "react";
import { useTranslations } from "next-intl";
import { GitCompare } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog";
import { DiffView } from "@/compon... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/contributor-search.tsx | src/components/prompts/contributor-search.tsx | "use client";
import { useState, useEffect, useRef } from "react";
import { useTranslations } from "next-intl";
import { X, Search, Loader2 } from "lucide-react";
import { Input } from "@/components/ui/input";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
interface User {
id: string;... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/prompts/prompt-writing-guide.tsx | src/components/prompts/prompt-writing-guide.tsx | "use client";
import { useState, useRef } from "react";
import { useTranslations } from "next-intl";
import {
ChevronDown,
ChevronUp,
Lightbulb,
Code,
Variable,
User,
Target,
BookOpen,
Copy,
Check,
} from "lucide-react";
interface CodeBlockProps {
code: string;
}
function CodeBlock({ code }: Co... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/categories/pinned-categories.tsx | src/components/categories/pinned-categories.tsx | "use client";
import { useRouter, useSearchParams } from "next/navigation";
import { useTranslations } from "next-intl";
import { cn } from "@/lib/utils";
import { useFilterContext } from "@/components/prompts/filter-context";
interface PinnedCategory {
id: string;
name: string;
slug: string;
icon: string | n... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/categories/category-filters.tsx | src/components/categories/category-filters.tsx | "use client";
import { useRouter, useSearchParams } from "next/navigation";
import { useTranslations } from "next-intl";
import { Search } from "lucide-react";
import { Input } from "@/components/ui/input";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/select... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/categories/subscribe-button.tsx | src/components/categories/subscribe-button.tsx | "use client";
import { useState } from "react";
import { useTranslations } from "next-intl";
import { Bell, BellOff, Loader2 } from "lucide-react";
import { Button } from "@/components/ui/button";
import { toast } from "sonner";
import { analyticsCategory } from "@/lib/analytics";
interface SubscribeButtonProps {
c... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/categories/category-item.tsx | src/components/categories/category-item.tsx | "use client";
import Link from "next/link";
import { SubscribeButton } from "./subscribe-button";
interface CategoryItemProps {
category: {
id: string;
name: string;
slug: string;
icon: string | null;
promptCount: number;
};
isSubscribed: boolean;
showSubscribe: boolean;
}
export function... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/layout/app-banner.tsx | src/components/layout/app-banner.tsx | "use client";
import { useState, useEffect } from "react";
import Link from "next/link";
import { useSearchParams } from "next/navigation";
import { X } from "lucide-react";
function AppStoreIcon({ className }: { className?: string }) {
return (
<svg
viewBox="93 90 313 300"
fill="currentColor"
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/layout/extension-link.tsx | src/components/layout/extension-link.tsx | "use client";
import { useState, useEffect } from "react";
import Link from "next/link";
import { Chromium } from "lucide-react";
import { useTranslations } from "next-intl";
import { isChromeBrowser } from "@/lib/utils";
interface ExtensionLinkProps {
url: string;
}
export function ExtensionLink({ url }: Extensio... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/layout/notification-bell.tsx | src/components/layout/notification-bell.tsx | "use client";
import { useEffect, useState } from "react";
import Link from "next/link";
import { useSession } from "next-auth/react";
import { useTranslations, useLocale } from "next-intl";
import { Bell, MessageSquare } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Avatar, AvatarFall... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/layout/footer.tsx | src/components/layout/footer.tsx | "use client";
import Image from "next/image";
import Link from "next/link";
import { useTranslations } from "next-intl";
import DeepWikiIcon from "@/../public/deepwiki.svg";
import { useBranding } from "@/components/providers/branding-provider";
export function Footer() {
const branding = useBranding();
const t =... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/layout/cli-command.tsx | src/components/layout/cli-command.tsx | "use client";
import { useState, useEffect } from "react";
import { Terminal } from "lucide-react";
import { useTranslations } from "next-intl";
export function CliCommand() {
const t = useTranslations("homepage");
const tCommon = useTranslations("common");
const [isHovered, setIsHovered] = useState(false);
c... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/layout/header.tsx | src/components/layout/header.tsx | "use client";
import { useState, useEffect } from "react";
import Link from "next/link";
import Image from "next/image";
import { useRouter, usePathname } from "next/navigation";
import { useSession, signOut } from "next-auth/react";
import { useTranslations } from "next-intl";
import {
Menu,
Plus,
User,
Setti... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/comments/comment-section.tsx | src/components/comments/comment-section.tsx | "use client";
import { useState, useEffect } from "react";
import { useTranslations } from "next-intl";
import { MessageSquare, Loader2 } from "lucide-react";
import { CommentForm } from "./comment-form";
import { CommentItem } from "./comment-item";
import { toast } from "sonner";
interface Comment {
id: string;
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/comments/comment-item.tsx | src/components/comments/comment-item.tsx | "use client";
import { useState } from "react";
import { useTranslations } from "next-intl";
import Link from "next/link";
import { formatDistanceToNow } from "@/lib/date";
import {
ChevronUp,
ChevronDown,
MessageSquare,
Trash2,
Flag,
Loader2,
MoreHorizontal,
Plus,
Minus
} from "lucide-react";
i... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/comments/index.ts | src/components/comments/index.ts | export { CommentForm } from "./comment-form";
export { CommentItem } from "./comment-item";
export { CommentSection } from "./comment-section";
| typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/comments/comment-form.tsx | src/components/comments/comment-form.tsx | "use client";
import { useState } from "react";
import { useTranslations } from "next-intl";
import Link from "next/link";
import { Loader2, LogIn } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Textarea } from "@/components/ui/textarea";
import {
Dialog,
DialogContent,
DialogDes... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/sonner.tsx | src/components/ui/sonner.tsx | "use client"
import {
CircleCheckIcon,
InfoIcon,
Loader2Icon,
OctagonXIcon,
TriangleAlertIcon,
} from "lucide-react"
import { useTheme } from "next-themes"
import { Toaster as Sonner, type ToasterProps } from "sonner"
const Toaster = ({ ...props }: ToasterProps) => {
const { theme = "system" } = useTheme(... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/table.tsx | src/components/ui/table.tsx | "use client"
import * as React from "react"
import { cn } from "@/lib/utils"
function Table({ className, ...props }: React.ComponentProps<"table">) {
return (
<div
data-slot="table-container"
className="relative w-full overflow-x-auto"
>
<table
data-slot="table"
className=... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/form.tsx | src/components/ui/form.tsx | "use client"
import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"
import { Slot } from "@radix-ui/react-slot"
import {
Controller,
FormProvider,
useFormContext,
useFormState,
type ControllerProps,
type FieldPath,
type FieldValues,
} from "react-hook-form"
import { cn } ... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/avatar.tsx | src/components/ui/avatar.tsx | "use client"
import * as React from "react"
import * as AvatarPrimitive from "@radix-ui/react-avatar"
import { cn } from "@/lib/utils"
function Avatar({
className,
...props
}: React.ComponentProps<typeof AvatarPrimitive.Root>) {
return (
<AvatarPrimitive.Root
data-slot="avatar"
className={cn(
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/progress.tsx | src/components/ui/progress.tsx | "use client";
import * as React from "react";
import * as ProgressPrimitive from "@radix-ui/react-progress";
import { cn } from "@/lib/utils";
const Progress = React.forwardRef<
React.ElementRef<typeof ProgressPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
>(({ className, value, .... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/dialog.tsx | src/components/ui/dialog.tsx | "use client"
import * as React from "react"
import * as DialogPrimitive from "@radix-ui/react-dialog"
import { XIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function Dialog({
...props
}: React.ComponentProps<typeof DialogPrimitive.Root>) {
return <DialogPrimitive.Root data-slot="dialog" {...props}... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/label.tsx | src/components/ui/label.tsx | "use client"
import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"
import { cn } from "@/lib/utils"
function Label({
className,
...props
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
return (
<LabelPrimitive.Root
data-slot="label"
className={cn(
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/tabs.tsx | src/components/ui/tabs.tsx | "use client"
import * as React from "react"
import * as TabsPrimitive from "@radix-ui/react-tabs"
import { cn } from "@/lib/utils"
function Tabs({
className,
...props
}: React.ComponentProps<typeof TabsPrimitive.Root>) {
return (
<TabsPrimitive.Root
data-slot="tabs"
className={cn("flex flex-col... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/button.tsx | src/components/ui/button.tsx | import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius)] text-sm font-medium trans... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/animated-date.tsx | src/components/ui/animated-date.tsx | "use client";
import { useState } from "react";
import { Calendar } from "lucide-react";
interface AnimatedDateProps {
date: Date;
relativeText: string;
locale?: string;
}
export function AnimatedDate({ date, relativeText, locale = "en" }: AnimatedDateProps) {
const [showExact, setShowExact] = useState(false... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/popover.tsx | src/components/ui/popover.tsx | "use client"
import * as React from "react"
import * as PopoverPrimitive from "@radix-ui/react-popover"
import { cn } from "@/lib/utils"
function Popover({
...props
}: React.ComponentProps<typeof PopoverPrimitive.Root>) {
return <PopoverPrimitive.Root data-slot="popover" {...props} />
}
function PopoverTrigger(... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/diff-view.tsx | src/components/ui/diff-view.tsx | "use client";
import { useMemo } from "react";
import { useTranslations } from "next-intl";
import { cn } from "@/lib/utils";
interface DiffViewProps {
original: string;
modified: string;
className?: string;
mode?: "line" | "word" | "inline";
language?: "json" | "yaml" | null;
}
interface WordDiff {
type... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/textarea.tsx | src/components/ui/textarea.tsx | import * as React from "react"
import { cn } from "@/lib/utils"
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
return (
<textarea
data-slot="textarea"
className={cn(
"border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-r... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/dropdown-menu.tsx | src/components/ui/dropdown-menu.tsx | "use client"
import * as React from "react"
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function DropdownMenu({
...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/switch.tsx | src/components/ui/switch.tsx | "use client"
import * as React from "react"
import * as SwitchPrimitive from "@radix-ui/react-switch"
import { cn } from "@/lib/utils"
function Switch({
className,
...props
}: React.ComponentProps<typeof SwitchPrimitive.Root>) {
return (
<SwitchPrimitive.Root
data-slot="switch"
className={cn(
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/masonry.tsx | src/components/ui/masonry.tsx | "use client";
import { useEffect, useRef, useState, useCallback, ReactNode } from "react";
interface MasonryProps {
children: ReactNode[];
columnCount?: {
default: number;
md?: number;
lg?: number;
};
gap?: number;
className?: string;
}
export function Masonry({
children,
columnCount = { ... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/separator.tsx | src/components/ui/separator.tsx | "use client"
import * as React from "react"
import * as SeparatorPrimitive from "@radix-ui/react-separator"
import { cn } from "@/lib/utils"
function Separator({
className,
orientation = "horizontal",
decorative = true,
...props
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
return (
<Separ... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/sheet.tsx | src/components/ui/sheet.tsx | "use client"
import * as React from "react"
import * as SheetPrimitive from "@radix-ui/react-dialog"
import { XIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
return <SheetPrimitive.Root data-slot="sheet" {...props} />
}
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/scroll-area.tsx | src/components/ui/scroll-area.tsx | "use client"
import * as React from "react"
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"
import { cn } from "@/lib/utils"
function ScrollArea({
className,
children,
...props
}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {
return (
<ScrollAreaPrimitive.Root
data-slo... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/card.tsx | src/components/ui/card.tsx | import * as React from "react"
import { cn } from "@/lib/utils"
function Card({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card"
className={cn(
"bg-card text-card-foreground flex flex-col gap-6 rounded-[var(--radius)] border py-6",
className
... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/code-view.tsx | src/components/ui/code-view.tsx | "use client";
import { useState, useRef } from "react";
import { useTranslations } from "next-intl";
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
import { ChevronsDown, ChevronsUp } from "lucide-react";
import { JsonTreeViewWrapper } from "./json-tree-view";
interface CodeViewPro... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/alert.tsx | src/components/ui/alert.tsx | import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const alertVariants = cva(
"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 item... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/badge.tsx | src/components/ui/badge.tsx | import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const badgeVariants = cva(
"inline-flex items-center justify-center rounded-[var(--radius)] border px-2 py-0.5 text-xs font-medium w-fit white... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/skeleton.tsx | src/components/ui/skeleton.tsx | import { cn } from "@/lib/utils"
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="skeleton"
className={cn("bg-accent animate-pulse rounded-md", className)}
{...props}
/>
)
}
export { Skeleton }
| typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/tooltip.tsx | src/components/ui/tooltip.tsx | "use client"
import * as React from "react"
import * as TooltipPrimitive from "@radix-ui/react-tooltip"
import { cn } from "@/lib/utils"
function TooltipProvider({
delayDuration = 0,
...props
}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
return (
<TooltipPrimitive.Provider
data-slot="t... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/select.tsx | src/components/ui/select.tsx | "use client"
import * as React from "react"
import * as SelectPrimitive from "@radix-ui/react-select"
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function Select({
...props
}: React.ComponentProps<typeof SelectPrimitive.Root>) {
return <SelectPrimitiv... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/json-tree-view.tsx | src/components/ui/json-tree-view.tsx | "use client";
import { useState, useMemo, useCallback, useEffect } from "react";
import type React from "react";
import { ChevronRight, ChevronDown, ChevronsDown, ChevronsUp } from "lucide-react";
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
import { useTranslations } from "next-i... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/alert-dialog.tsx | src/components/ui/alert-dialog.tsx | "use client"
import * as React from "react"
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
import { cn } from "@/lib/utils"
import { buttonVariants } from "@/components/ui/button"
const AlertDialog = AlertDialogPrimitive.Root
const AlertDialogTrigger = AlertDialogPrimitive.Trigger
const Alert... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/code-editor.tsx | src/components/ui/code-editor.tsx | "use client";
import { useTheme } from "next-themes";
import Editor, { type OnMount } from "@monaco-editor/react";
import { cn } from "@/lib/utils";
import { useCallback, useRef, useEffect, memo, forwardRef, useImperativeHandle } from "react";
export interface CodeEditorHandle {
insertAtCursor: (text: string) => vo... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/command.tsx | src/components/ui/command.tsx | "use client"
import * as React from "react"
import { Command as CommandPrimitive } from "cmdk"
import { SearchIcon } from "lucide-react"
import { cn } from "@/lib/utils"
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog"
function Command({
classN... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/input.tsx | src/components/ui/input.tsx | import * as React from "react"
import { cn } from "@/lib/utils"
function Input({ className, type, ...props }: React.ComponentProps<"input">) {
return (
<input
type={type}
data-slot="input"
className={cn(
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selec... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/checkbox.tsx | src/components/ui/checkbox.tsx | "use client"
import * as React from "react"
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
import { CheckIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function Checkbox({
className,
...props
}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
return (
<CheckboxPrimitive.R... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ui/context-menu.tsx | src/components/ui/context-menu.tsx | "use client"
import * as React from "react"
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu"
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function ContextMenu({
...props
}: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {
ret... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/mcp/mcp-server-popup.tsx | src/components/mcp/mcp-server-popup.tsx | "use client";
import { useState, useMemo, useEffect } from "react";
import { useTranslations } from "next-intl";
import { useSession } from "next-auth/react";
import Link from "next/link";
import { Plus, X, ChevronDown, Key } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Input } from "... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/mcp/mcp-config-tabs.tsx | src/components/mcp/mcp-config-tabs.tsx | "use client";
import { useState } from "react";
import { Check, Copy } from "lucide-react";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
type Client = "cursor" | "claude-code" | "vscode" | "codex" | "windsurf" | "gemini";
type Mode = "remote" | "local";
interface McpConfigTabsPr... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ide/utils.ts | src/components/ide/utils.ts | /**
* Simple YAML serializer for converting objects to YAML format
*/
export function toYaml(obj: unknown, indent = 0): string {
const spaces = ' '.repeat(indent);
if (obj === null || obj === undefined) return 'null';
if (typeof obj === 'string') {
if (obj.includes('\n')) {
return `|\n${obj.split(... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ide/api-docs-sidebar.tsx | src/components/ide/api-docs-sidebar.tsx | "use client";
import { useState } from "react";
import { ChevronDown, ChevronRight, Book, Search } from "lucide-react";
import { Input } from "@/components/ui/input";
import { ScrollArea } from "@/components/ui/scroll-area";
import { cn } from "@/lib/utils";
import { API_DOCS, type ApiItem } from "@/data/api-docs";
i... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ide/api-details-popup.tsx | src/components/ide/api-details-popup.tsx | "use client";
import { X } from "lucide-react";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import { type ApiItem } from "@/data/api-docs";
import { METHOD_OPTIONS } from "@/data/method-options";
interface ApiDetailsPopupProps {
item: ApiItem;
onClose: () => void;
}
export ... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ide/prompt-ide.tsx | src/components/ide/prompt-ide.tsx | "use client";
import { useState, useCallback, useEffect, useRef } from "react";
import { useTranslations } from "next-intl";
import Editor from "@monaco-editor/react";
import { useTheme } from "next-themes";
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { Button } from "@/components/ui/but... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | true |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ide/types.ts | src/components/ide/types.ts | export type OutputFormat = "json" | "yaml" | "markdown";
| typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ide/examples/chat.ts | src/components/ide/examples/chat.ts | import { chat } from 'prompts.chat';
// Create a chat prompt for conversational AI
const prompt = chat()
// Define the AI's role and expertise
.role("senior software architect")
.tone("professional")
.expertise(["coding", "engineering"])
// Set the main task
.task("Review code and provide architectural ... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ide/examples/generated.ts | src/components/ide/examples/generated.ts | // Auto-generated from example .ts files - DO NOT EDIT MANUALLY
// Run: npm run generate:examples to regenerate
export const EXAMPLE_VIDEO = `import { video } from 'prompts.chat';
// Create a cinematic video prompt for Sora/Runway
const prompt = video()
// Scene - using individual methods for clarity
.scene("A lo... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ide/examples/default.ts | src/components/ide/examples/default.ts | import { builder, templates } from 'prompts.chat';
// Create a prompt using the fluent builder API
const prompt = builder()
.role("Senior TypeScript Developer")
.context("You are helping review code for a startup")
.task("Analyze the following code for bugs and improvements")
.constraints([
"Be concise and... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ide/examples/video.ts | src/components/ide/examples/video.ts | import { video } from 'prompts.chat';
// Create a cinematic video prompt for Sora/Runway
const prompt = video()
// Scene - using individual methods for clarity
.scene("A lone samurai walks through an ancient bamboo forest")
.setting("Feudal Japan, remote mountain region")
.timeOfDay("golden-hour")
.weather("... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
f/awesome-chatgpt-prompts | https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/components/ide/examples/audio.ts | src/components/ide/examples/audio.ts | import { audio } from 'prompts.chat';
// Create a detailed music prompt for Suno/Udio
const prompt = audio()
// Genre - string or object form
.genre("synthwave")
.subgenre("darksynth")
.fusion(["electronic", "ambient"])
// Mood - takes primary and spread secondary args
.mood("nostalgic", "mysterious", "... | typescript | CC0-1.0 | bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b | 2026-01-04T15:25:31.495589Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.