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/app/api/admin/related-prompts/route.ts
src/app/api/admin/related-prompts/route.ts
import { NextResponse } from "next/server"; import { Prisma } from "@prisma/client"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { findAndSaveRelatedPrompts } from "@/lib/ai/embeddings"; import { getConfig } from "@/lib/config"; export async function POST() { try { const session = aw...
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/app/api/admin/reports/[id]/route.ts
src/app/api/admin/reports/[id]/route.ts
import { NextResponse } from "next/server"; import { z } from "zod"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; const updateSchema = z.object({ status: z.enum(["PENDING", "REVIEWED", "DISMISSED"]), }); export async function PATCH( request: Request, { params }: { params: Promise<{ id: stri...
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/app/api/admin/webhooks/route.ts
src/app/api/admin/webhooks/route.ts
import { NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { Prisma } from "@prisma/client"; const VALID_METHODS = ["GET", "POST", "PUT", "PATCH"] as const; const VALID_EVENTS = ["PROMPT_CREATED", "PROMPT_UPDATED", "PROMPT_DELETED"] as const; type WebhookInput...
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/app/api/admin/webhooks/[id]/route.ts
src/app/api/admin/webhooks/[id]/route.ts
import { NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { Prisma } from "@prisma/client"; const VALID_METHODS = ["GET", "POST", "PUT", "PATCH"]; const VALID_EVENTS = ["PROMPT_CREATED", "PROMPT_UPDATED", "PROMPT_DELETED"]; interface UpdateWebhookData { nam...
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/app/api/admin/webhooks/[id]/test/route.ts
src/app/api/admin/webhooks/[id]/test/route.ts
import { NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; export async function POST( request: Request, { params }: { params: Promise<{ id: string }> } ) { try { const session = await auth(); if (!session?.user || session.user.role !== "ADMIN") { ...
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/app/api/admin/prompts/route.ts
src/app/api/admin/prompts/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; // GET - List all prompts for admin with pagination and search export async function GET(request: NextRequest) { try { const session = await auth(); // Check if user is authenticated ...
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/app/api/admin/prompts/[id]/route.ts
src/app/api/admin/prompts/[id]/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; // DELETE - Hard delete a prompt (admin only) export async function DELETE( request: NextRequest, { params }: { params: Promise<{ id: string }> } ) { try { const session = await auth(); ...
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/app/api/admin/categories/route.ts
src/app/api/admin/categories/route.ts
import { NextRequest, NextResponse } from "next/server"; import { revalidateTag } from "next/cache"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; // Create category export async function POST(request: NextRequest) { try { const session = await auth(); if (!session?.user || session.user.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/app/api/admin/categories/[id]/route.ts
src/app/api/admin/categories/[id]/route.ts
import { NextRequest, NextResponse } from "next/server"; import { revalidateTag } from "next/cache"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; // Update category export async function PATCH( request: NextRequest, { params }: { params: Promise<{ id: string }> } ) { try { const session ...
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/app/api/admin/users/route.ts
src/app/api/admin/users/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; // GET - List all users for admin with pagination and search export async function GET(request: NextRequest) { try { const session = await auth(); // Check if user is authenticated ...
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/app/api/admin/users/[id]/route.ts
src/app/api/admin/users/[id]/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; // Update user (role change or verification) export async function PATCH( request: NextRequest, { params }: { params: Promise<{ id: string }> } ) { try { const session = await auth(); ...
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/app/api/admin/embeddings/route.ts
src/app/api/admin/embeddings/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { generateAllEmbeddings, isAISearchEnabled } from "@/lib/ai/embeddings"; export async function POST(request: NextRequest) { try { const session = await auth(); if (!session?.user || session.user.role !== "ADMIN...
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/app/api/reports/route.ts
src/app/api/reports/route.ts
import { NextResponse } from "next/server"; import { z } from "zod"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; const reportSchema = z.object({ promptId: z.string().min(1), reason: z.enum(["SPAM", "INAPPROPRIATE", "COPYRIGHT", "MISLEADING", "RELIST_REQUEST", "OTHER"]), details: z.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/app/api/upload/route.ts
src/app/api/upload/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { getStoragePlugin } from "@/lib/plugins/registry"; import sharp from "sharp"; const MAX_IMAGE_SIZE = 4 * 1024 * 1024; // 4MB for images const MAX_VIDEO_SIZE = 4 * 1024 * 1024; // 4MB for videos (Vercel serverless limit)...
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/app/api/prompts/route.ts
src/app/api/prompts/route.ts
import { NextResponse } from "next/server"; import { revalidateTag } from "next/cache"; import { z } from "zod"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { triggerWebhooks } from "@/lib/webhook"; import { generatePromptEmbedding, findAndSaveRelatedPrompts } from "@/lib/ai/embeddings"; im...
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/app/api/prompts/translate/route.ts
src/app/api/prompts/translate/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { translateContent } from "@/lib/ai/generation"; import { z } from "zod"; const translateSchema = z.object({ content: z.string().min(1), targetLanguage: z.string().min(1), }); export async function POST(request: Nex...
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/app/api/prompts/[id]/route.ts
src/app/api/prompts/[id]/route.ts
import { NextResponse } from "next/server"; import { revalidateTag } from "next/cache"; import { z } from "zod"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { generatePromptEmbedding, findAndSaveRelatedPrompts } from "@/lib/ai/embeddings"; import { generatePromptSlug } from "@/lib/slug"; im...
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/app/api/prompts/[id]/vote/route.ts
src/app/api/prompts/[id]/vote/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; // POST - Upvote a prompt export async function POST( request: NextRequest, { params }: { params: Promise<{ id: string }> } ) { try { const session = await auth(); if (!session?.user...
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/app/api/prompts/[id]/connections/route.ts
src/app/api/prompts/[id]/connections/route.ts
import { NextRequest, NextResponse } from "next/server"; import { z } from "zod"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; const createConnectionSchema = z.object({ targetId: z.string().min(1), label: z.string().min(1).max(100), order: z.number().int().min(0).optional(), }); interface 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/app/api/prompts/[id]/connections/[connectionId]/route.ts
src/app/api/prompts/[id]/connections/[connectionId]/route.ts
import { NextRequest, NextResponse } from "next/server"; import { revalidatePath } from "next/cache"; import { z } from "zod"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; const updateConnectionSchema = z.object({ label: z.string().min(1).max(100).optional(), order: z.number().int().min(0).opt...
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/app/api/prompts/[id]/restore/route.ts
src/app/api/prompts/[id]/restore/route.ts
import { NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; export async function POST( request: Request, { params }: { params: Promise<{ id: string }> } ) { try { const session = await auth(); if (!session?.user?.id) { return NextResponse.json({ er...
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/app/api/prompts/[id]/raw/route.ts
src/app/api/prompts/[id]/raw/route.ts
import { NextRequest, NextResponse } from "next/server"; import { db } from "@/lib/db"; type OutputFormat = "md" | "yml"; type FileType = "prompt" | "skill"; /** * Extracts the prompt ID, format, and file type from a URL parameter * Supports formats: "abc123.prompt.md", "abc123_some-slug.prompt.md", "abc123.prompt....
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/app/api/prompts/[id]/pin/route.ts
src/app/api/prompts/[id]/pin/route.ts
import { NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; const MAX_PINNED_PROMPTS = 3; export async function POST( request: Request, { params }: { params: Promise<{ id: string }> } ) { try { const session = await auth(); if (!session?.user?.id) { ...
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/app/api/prompts/[id]/feature/route.ts
src/app/api/prompts/[id]/feature/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; // POST /api/prompts/[id]/feature - Toggle featured status (admin only) export async function POST( request: NextRequest, { params }: { params: Promise<{ id: string }> } ) { try { const ...
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/app/api/prompts/[id]/comments/route.ts
src/app/api/prompts/[id]/comments/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { getConfig } from "@/lib/config"; import { z } from "zod"; const createCommentSchema = z.object({ content: z.string().min(1).max(10000), parentId: z.string().optional(), }); // GET - ...
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/app/api/prompts/[id]/comments/[commentId]/route.ts
src/app/api/prompts/[id]/comments/[commentId]/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { getConfig } from "@/lib/config"; // DELETE - Delete a comment (author or admin only) export async function DELETE( request: NextRequest, { params }: { params: Promise<{ id: string; 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/app/api/prompts/[id]/comments/[commentId]/vote/route.ts
src/app/api/prompts/[id]/comments/[commentId]/vote/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { getConfig } from "@/lib/config"; import { z } from "zod"; const voteSchema = z.object({ value: z.number().refine((v) => v === 1 || v === -1, { message: "Vote value must be 1 (upvote...
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/app/api/prompts/[id]/comments/[commentId]/flag/route.ts
src/app/api/prompts/[id]/comments/[commentId]/flag/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { getConfig } from "@/lib/config"; // POST - Flag a comment (admin only) export async function POST( request: NextRequest, { params }: { params: Promise<{ id: string; commentId: 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/app/api/prompts/[id]/unlist/route.ts
src/app/api/prompts/[id]/unlist/route.ts
import { NextResponse } from "next/server"; import { revalidateTag } from "next/cache"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; // Toggle unlist status (admin only) export async function POST( request: Request, { params }: { params: Promise<{ id: string }> } ) { try { const { id } =...
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/app/api/prompts/[id]/changes/route.ts
src/app/api/prompts/[id]/changes/route.ts
import { NextRequest, NextResponse } from "next/server"; import { z } from "zod"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; const createChangeRequestSchema = z.object({ proposedContent: z.string().min(1), proposedTitle: z.string().optional(), reason: z.string().optional(), }); export asy...
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/app/api/prompts/[id]/changes/[changeId]/route.ts
src/app/api/prompts/[id]/changes/[changeId]/route.ts
import { NextRequest, NextResponse } from "next/server"; import { z } from "zod"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; const updateChangeRequestSchema = z.object({ status: z.enum(["APPROVED", "REJECTED", "PENDING"]), reviewNote: z.string().optional(), }); export async function PATCH( ...
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/app/api/prompts/[id]/versions/route.ts
src/app/api/prompts/[id]/versions/route.ts
import { NextRequest, NextResponse } from "next/server"; import { z } from "zod"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; const createVersionSchema = z.object({ content: z.string().min(1, "Content is required"), changeNote: z.string().max(500).optional(), }); // POST - Create a new versi...
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/app/api/prompts/[id]/versions/[versionId]/route.ts
src/app/api/prompts/[id]/versions/[versionId]/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; export async function DELETE( request: NextRequest, { params }: { params: Promise<{ id: string; versionId: string }> } ) { try { const session = await auth(); if (!session?.user) { ...
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/app/api/prompts/search/route.ts
src/app/api/prompts/search/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; export async function GET(request: NextRequest) { const { searchParams } = new URL(request.url); const query = searchParams.get("q") || ""; const limit = Math.min(parseInt(searchParams.get("...
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/app/api/categories/[id]/subscribe/route.ts
src/app/api/categories/[id]/subscribe/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; // POST - Subscribe to a category export async function POST( request: NextRequest, { params }: { params: Promise<{ id: string }> } ) { try { const session = await auth(); if (!sessi...
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/app/api/users/search/route.ts
src/app/api/users/search/route.ts
import { NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; export async function GET(request: Request) { try { const session = await auth(); if (!session?.user) { return NextResponse.json( { error: "unauthorized", message: "You must be log...
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/app/api/config/storage/route.ts
src/app/api/config/storage/route.ts
import { NextResponse } from "next/server"; export async function GET() { const enabledStorage = process.env.ENABLED_STORAGE || "url"; return NextResponse.json({ mode: enabledStorage, supportsUpload: enabledStorage !== "url", }); }
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/app/api/search/ai/route.ts
src/app/api/search/ai/route.ts
import { NextRequest, NextResponse } from "next/server"; import { semanticSearch, isAISearchEnabled } from "@/lib/ai/embeddings"; export async function GET(request: NextRequest) { try { const enabled = await isAISearchEnabled(); if (!enabled) { return NextResponse.json( { error: "AI Search is 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/app/api/media-generate/route.ts
src/app/api/media-generate/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { getMediaGeneratorPlugin, getAvailableModels, isMediaGenerationAvailable, } from "@/lib/plugins/media-generators"; export async function GET() { const session = await auth(); if...
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/app/api/media-generate/status/route.ts
src/app/api/media-generate/status/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { getMediaGeneratorPlugin } from "@/lib/plugins/media-generators"; /** * Polling endpoint for media generation status * Used by providers that don't support WebSocket (e.g., Fal.ai) */ export async function GET(reques...
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/app/api/improve-prompt/route.ts
src/app/api/improve-prompt/route.ts
import { NextRequest, NextResponse } from "next/server"; import { z } from "zod"; import { improvePrompt } from "@/lib/ai/improve-prompt"; import { db } from "@/lib/db"; import { isValidApiKeyFormat } from "@/lib/api-key"; import { auth } from "@/lib/auth"; const requestSchema = z.object({ prompt: z.string().min(1, ...
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/app/feed/page.tsx
src/app/feed/page.tsx
import Link from "next/link"; import { redirect } from "next/navigation"; import { getTranslations } from "next-intl/server"; import { ArrowRight, Bell, FolderOpen, Sparkles } from "lucide-react"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { Button } from "@/components/ui/button"; 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/app/feed/loading.tsx
src/app/feed/loading.tsx
import { Skeleton } from "@/components/ui/skeleton"; export default function FeedLoading() { return ( <div className="container py-6"> {/* Header */} <div className="flex items-center justify-between mb-6"> <Skeleton className="h-6 w-24" /> <Skeleton className="h-9 w-28" /> </di...
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/app/prompts/page.tsx
src/app/prompts/page.tsx
import { Metadata } from "next"; import Link from "next/link"; import { getTranslations } from "next-intl/server"; import { unstable_cache } from "next/cache"; import { Suspense } from "react"; import { Plus } from "lucide-react"; import { Button } from "@/components/ui/button" import { InfinitePromptList } from "@/com...
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/app/prompts/loading.tsx
src/app/prompts/loading.tsx
import { Skeleton } from "@/components/ui/skeleton"; function PromptCardSkeleton() { return ( <div className="border rounded-lg p-4 space-y-3"> <div className="flex items-start justify-between"> <Skeleton className="h-5 w-3/4" /> <Skeleton className="h-5 w-5 rounded" /> </div> <...
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/app/prompts/new/page.tsx
src/app/prompts/new/page.tsx
import { Metadata } from "next"; import { redirect } from "next/navigation"; import { getTranslations } from "next-intl/server"; import { Info } from "lucide-react"; import { auth } from "@/lib/auth"; import { PromptForm } from "@/components/prompts/prompt-form"; import { db } from "@/lib/db"; import { isAIGenerationEn...
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/app/prompts/new/loading.tsx
src/app/prompts/new/loading.tsx
import { Skeleton } from "@/components/ui/skeleton"; export default function NewPromptLoading() { return ( <> <div className="container max-w-3xl py-8"> <div className="space-y-4"> {/* Header: Page title + Private Switch */} <div className="flex items-center justify-between mb-2...
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/app/prompts/[id]/opengraph-image.tsx
src/app/prompts/[id]/opengraph-image.tsx
import { ImageResponse } from "next/og"; import { db } from "@/lib/db"; import { getConfig } from "@/lib/config"; export const alt = "Prompt Preview"; export const size = { width: 1200, height: 630, }; export const contentType = "image/png"; const typeLabels: Record<string, string> = { TEXT: "Text Prompt", IM...
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/app/prompts/[id]/page.tsx
src/app/prompts/[id]/page.tsx
import { Metadata } from "next"; import { notFound } from "next/navigation"; import Link from "next/link"; import { getTranslations, getLocale } from "next-intl/server"; import { formatDistanceToNow } from "@/lib/date"; import { Clock, Edit, History, GitPullRequest, Check, X, Users, ImageIcon, Video, FileText, Shield, ...
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/app/prompts/[id]/loading.tsx
src/app/prompts/[id]/loading.tsx
import { Skeleton } from "@/components/ui/skeleton"; export default function PromptDetailLoading() { return ( <div className="container max-w-4xl py-8"> {/* Breadcrumb */} <div className="flex items-center gap-2 mb-4"> <Skeleton className="h-4 w-16" /> <Skeleton className="h-4 w-4" />...
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/app/prompts/[id]/twitter-image.tsx
src/app/prompts/[id]/twitter-image.tsx
export { default, alt, size, contentType } from "./opengraph-image";
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/app/prompts/[id]/edit/page.tsx
src/app/prompts/[id]/edit/page.tsx
import { Metadata } from "next"; import { notFound, redirect } from "next/navigation"; import { getTranslations } from "next-intl/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { PromptForm } from "@/components/prompts/prompt-form"; import { isAIGenerationEnabled, getAIModelName } fro...
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/app/prompts/[id]/changes/new/page.tsx
src/app/prompts/[id]/changes/new/page.tsx
import { redirect, notFound } from "next/navigation"; import Link from "next/link"; import { getTranslations } from "next-intl/server"; import { ArrowLeft } from "lucide-react"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { Button } from "@/components/ui/button"; import { ChangeRequestForm ...
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/app/prompts/[id]/changes/[changeId]/page.tsx
src/app/prompts/[id]/changes/[changeId]/page.tsx
import { notFound } from "next/navigation"; import Link from "next/link"; import { getTranslations, getLocale } from "next-intl/server"; import { formatDistanceToNow } from "@/lib/date"; import { ArrowLeft, Clock, Check, X, FileText } from "lucide-react"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"...
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/app/categories/page.tsx
src/app/categories/page.tsx
import Link from "next/link"; import { getTranslations } from "next-intl/server"; import { unstable_cache } from "next/cache"; import { FolderOpen, ChevronRight } from "lucide-react"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { SubscribeButton } from "@/components/categories/subscribe-but...
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/app/categories/loading.tsx
src/app/categories/loading.tsx
import { Skeleton } from "@/components/ui/skeleton"; export default function CategoriesLoading() { return ( <div className="container py-6"> {/* Header */} <div className="mb-6"> <Skeleton className="h-6 w-32 mb-2" /> <Skeleton className="h-4 w-48" /> </div> {/* Category ...
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/app/categories/[slug]/page.tsx
src/app/categories/[slug]/page.tsx
import { Metadata } from "next"; import { notFound } from "next/navigation"; import Link from "next/link"; import { getTranslations } from "next-intl/server"; import { ArrowLeft } from "lucide-react"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import config from "@/../prompts.config"; import { Bu...
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/app/docs/self-hosting/page.tsx
src/app/docs/self-hosting/page.tsx
import Link from "next/link"; import Image from "next/image"; import { Server, Database, Key, Palette, Globe, Settings, Cpu } from "lucide-react"; import DeepWikiIcon from "@/../public/deepwiki.svg"; import Context7Icon from "@/../public/context7.svg"; import { Table, TableBody, TableCell, TableHead, TableHea...
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/app/docs/api/page.tsx
src/app/docs/api/page.tsx
import Link from "next/link"; import { headers } from "next/headers"; import { Code, Zap, Terminal, Search, Box, Key, Save, Sparkles } from "lucide-react"; import { ImprovePromptDemo } from "@/components/api/improve-prompt-demo"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } 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/app/embed/page.tsx
src/app/embed/page.tsx
"use client"; import { useSearchParams } from "next/navigation"; import { Suspense, useEffect, useState, useMemo } from "react"; import { cn } from "@/lib/utils"; import { RunPromptButton } from "@/components/prompts/run-prompt-button"; interface TreeNode { name: string; path: string; isFolder: boolean; child...
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/app/promptmasters/page.tsx
src/app/promptmasters/page.tsx
"use client"; import { useState, useEffect } from "react"; import Link from "next/link"; import { useTranslations } from "next-intl"; import { Trophy, Medal, Award } from "lucide-react"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Avatar, AvatarFallback, AvatarImage } 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/app/promptmasters/loading.tsx
src/app/promptmasters/loading.tsx
import { Skeleton } from "@/components/ui/skeleton"; export default function PromptmastersLoading() { return ( <div className="container py-8"> <div className="max-w-3xl mx-auto"> {/* Header - centered */} <div className="text-center mb-8"> <div className="flex items-center justif...
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/app/discover/page.tsx
src/app/discover/page.tsx
import { DiscoveryPrompts } from "@/components/prompts/discovery-prompts"; import { StructuredData } from "@/components/seo/structured-data"; import { db } from "@/lib/db"; export default async function DiscoverPage() { // Fetch top prompts for structured data const topPrompts = await db.prompt.findMany({ wher...
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/app/discover/loading.tsx
src/app/discover/loading.tsx
import { Skeleton } from "@/components/ui/skeleton"; export default function DiscoverLoading() { return ( <div className="container py-6"> {/* Header */} <div className="mb-6"> <Skeleton className="h-6 w-32 mb-2" /> <Skeleton className="h-4 w-48" /> </div> {/* User Grid *...
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/hooks/use-mobile.ts
src/hooks/use-mobile.ts
"use client"; import { useState, useEffect } from "react"; export function useIsMobile(breakpoint: number = 768) { const [isMobile, setIsMobile] = useState(false); useEffect(() => { const checkMobile = () => { setIsMobile(window.innerWidth < breakpoint); }; checkMobile(); window.addEve...
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/pages/api/mcp.ts
src/pages/api/mcp.ts
import type { NextApiRequest, NextApiResponse } from "next"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js"; import { ElicitResultSchema, ListPromptsRequestSchema, GetPromptRequestSchema, typ...
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/auth/auth-content.tsx
src/components/auth/auth-content.tsx
"use client"; import { useTranslations } from "next-intl"; import { LoginForm } from "./login-form"; import { RegisterForm } from "./register-form"; import { OAuthButton } from "./oauth-button"; interface AuthContentProps { providers: string[]; mode: "login" | "register"; useCloneBranding?: boolean; } const pr...
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/auth/oauth-button.tsx
src/components/auth/oauth-button.tsx
"use client"; import { useState } from "react"; import { signIn } from "next-auth/react"; import { useTranslations } from "next-intl"; import { Loader2 } from "lucide-react"; import { Button } from "@/components/ui/button"; import { analyticsAuth } from "@/lib/analytics"; interface OAuthButtonProps { provider: stri...
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/auth/login-form.tsx
src/components/auth/login-form.tsx
"use client"; import { useState } from "react"; import { useRouter } from "next/navigation"; import { signIn } from "next-auth/react"; import { useTranslations } from "next-intl"; import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; import { z } from "zod"; import { Loader2...
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/auth/register-form.tsx
src/components/auth/register-form.tsx
"use client"; import { useState } 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 } from "lucide-react"; import { 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/user/activity-chart.tsx
src/components/user/activity-chart.tsx
"use client"; import { useMemo, useState, useEffect } from "react"; import { useTranslations } from "next-intl"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip"; interface ActivityData { date: string; count: number; } interface ActivityChartProps { da...
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/user/activity-chart-wrapper.tsx
src/components/user/activity-chart-wrapper.tsx
"use client"; import { useRouter, useSearchParams } from "next/navigation"; import { useCallback } from "react"; import { ActivityChart } from "./activity-chart"; interface ActivityChartWrapperProps { data: { date: string; count: number }[]; locale?: string; } export function ActivityChartWrapper({ data, locale ...
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/settings/api-key-settings.tsx
src/components/settings/api-key-settings.tsx
"use client"; import { useState } from "react"; import { useTranslations } from "next-intl"; import { Copy, Eye, EyeOff, RefreshCw, Trash2, Key, Loader2 } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Switch } from "@/components/ui/switch"; import { Label } from "@/components/ui/label"...
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/settings/profile-form.tsx
src/components/settings/profile-form.tsx
"use client"; import { useState, useEffect } from "react"; import { useRouter } from "next/navigation"; import { useSession } from "next-auth/react"; import { useTranslations } from "next-intl"; import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; import { z } from "zod"; 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/admin/prompts-management.tsx
src/components/admin/prompts-management.tsx
"use client"; import { useState, useEffect, useCallback } from "react"; import { useRouter } from "next/navigation"; import { useTranslations } from "next-intl"; import Link from "next/link"; import { Upload, Trash2, Loader2, CheckCircle, AlertCircle, Sparkles, Download, RefreshCw, Link2, Search, ExternalLink, Eye, Ey...
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/admin/tags-table.tsx
src/components/admin/tags-table.tsx
"use client"; import { useState } from "react"; import { useRouter } from "next/navigation"; import { useTranslations } from "next-intl"; import { MoreHorizontal, Plus, Pencil, Trash2 } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label }...
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/admin/ai-search-settings.tsx
src/components/admin/ai-search-settings.tsx
"use client"; import { useState } from "react"; import { useTranslations } from "next-intl"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Progress } from "@/components/ui/progress"; import { Sparkles, Loader2...
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/admin/webhooks-table.tsx
src/components/admin/webhooks-table.tsx
"use client"; import { useState } from "react"; import { useRouter } from "next/navigation"; import { useTranslations } from "next-intl"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Switch } from "@/components/u...
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/admin/reports-table.tsx
src/components/admin/reports-table.tsx
"use client"; import { useState } from "react"; import { useRouter } from "next/navigation"; import { useTranslations, useLocale } from "next-intl"; import Link from "next/link"; import { formatDistanceToNow } from "@/lib/date"; import { getPromptUrl } from "@/lib/urls"; import { MoreHorizontal, Check, X, Eye, Externa...
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/admin/users-table.tsx
src/components/admin/users-table.tsx
"use client"; import { useState, useEffect, useCallback } from "react"; import { useRouter } from "next/navigation"; import { useTranslations, useLocale } from "next-intl"; import { formatDistanceToNow } from "@/lib/date"; import { MoreHorizontal, Shield, User, Trash2, BadgeCheck, Search, Loader2, ChevronLeft, Chevron...
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/admin/import-prompts.tsx
src/components/admin/import-prompts.tsx
"use client"; import { useState } from "react"; import { useRouter } from "next/navigation"; import { useTranslations } from "next-intl"; import { Upload, FileText, CheckCircle, AlertCircle, Loader2, Trash2 } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDe...
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/admin/categories-table.tsx
src/components/admin/categories-table.tsx
"use client"; import { useState, useMemo } from "react"; import { useRouter } from "next/navigation"; import { useTranslations } from "next-intl"; import { MoreHorizontal, Plus, Pencil, Trash2, ChevronRight, Pin, PinOff } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/com...
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/developers/embed-examples.ts
src/components/developers/embed-examples.ts
export interface EmbedExampleConfig { prompt: string; context: string; model: string; mode: string; thinking: boolean; reasoning: boolean; planning: boolean; fast: boolean; filetree: string; showFiletree: boolean; showDiff: boolean; diffFilename?: string; diffOldText?: string; diffNewText?: ...
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/developers/prompt-tokenizer.tsx
src/components/developers/prompt-tokenizer.tsx
"use client"; import { useState, useEffect, useMemo, useCallback, useRef } from "react"; import { useTranslations } from "next-intl"; import { useTheme } from "next-themes"; import Editor, { type Monaco } from "@monaco-editor/react"; import type { editor } from "monaco-editor"; 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/developers/embed-designer.tsx
src/components/developers/embed-designer.tsx
"use client"; import { useState, useEffect, useCallback } from "react"; import { useTranslations } from "next-intl"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Textarea } from "@/components/ui/textarea"; import { Label } from "@/components/ui/label"; 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/developers/prompt-enhancer.tsx
src/components/developers/prompt-enhancer.tsx
"use client"; import { useState, useEffect } from "react"; import { useTranslations } from "next-intl"; import { useTheme } from "next-themes"; import Editor from "@monaco-editor/react"; import { Button } from "@/components/ui/button"; import { Textarea } from "@/components/ui/textarea"; import { Select, SelectCon...
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/seo/structured-data.tsx
src/components/seo/structured-data.tsx
import { getConfig } from "@/lib/config"; interface StructuredDataProps { type: "website" | "organization" | "breadcrumb" | "prompt" | "softwareApp" | "itemList"; data?: { breadcrumbs?: Array<{ name: string; url: string }>; prompt?: { id: string; name: string; description: string; 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/api/improve-prompt-demo.tsx
src/components/api/improve-prompt-demo.tsx
"use client"; import { useState } from "react"; import { Button } from "@/components/ui/button"; import { Textarea } from "@/components/ui/textarea"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; import { Loader2, Sparkles, Copy, Check } from "lucide...
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/providers/theme-styles.tsx
src/components/providers/theme-styles.tsx
"use client"; // ThemeStyles is now a no-op since styles are applied server-side in layout.tsx // This component is kept for potential future dynamic theme switching interface ThemeStylesProps { radius: "none" | "sm" | "md" | "lg"; variant: "flat" | "default" | "brutal"; density: "compact" | "default" | "comfor...
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/providers/index.tsx
src/components/providers/index.tsx
"use client"; import { ThemeProvider } from "next-themes"; import { SessionProvider } from "next-auth/react"; import { Toaster } from "@/components/ui/sonner"; import { NextIntlClientProvider, AbstractIntlMessages } from "next-intl"; import { ThemeStyles } from "./theme-styles"; import { BrandingProvider } from "./bra...
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/providers/locale-detector.tsx
src/components/providers/locale-detector.tsx
"use client"; import { useEffect } from "react"; import { useLocale } from "next-intl"; import { LOCALE_COOKIE } from "@/lib/i18n/config"; /** * Client component that saves the auto-detected locale to a cookie on first visit. * This ensures the detected language is remembered without requiring user interaction. */...
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/providers/branding-provider.tsx
src/components/providers/branding-provider.tsx
"use client"; import { createContext, useContext, type ReactNode } from "react"; interface BrandingContextValue { name: string; logo: string; logoDark?: string; description: string; appStoreUrl?: string; chromeExtensionUrl?: string; useCloneBranding?: boolean; } const BrandingContext = createContext<Br...
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/download-prompt-dropdown.tsx
src/components/prompts/download-prompt-dropdown.tsx
"use client"; import { useState } from "react"; import { useTranslations } from "next-intl"; import { Download, FileText, FileCode, Check, Link } from "lucide-react"; import { Button } from "@/components/ui/button"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, Dropdown...
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-list.tsx
src/components/prompts/prompt-list.tsx
"use client"; import Link from "next/link"; import { useTranslations } from "next-intl"; import { SearchX } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Masonry } from "@/components/ui/masonry"; import { PromptCard, type PromptCardProps } from "@/components/prompts/prompt-card"; expo...
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-flow-section.tsx
src/components/prompts/prompt-flow-section.tsx
"use client"; import { useState } from "react"; import { PromptConnections } from "./prompt-connections"; import { ReportPromptDialog } from "./report-prompt-dialog"; interface PromptFlowSectionProps { promptId: string; promptTitle: string; canEdit: boolean; isOwner: boolean; isLoggedIn: boolean; } 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/prompts/change-request-actions.tsx
src/components/prompts/change-request-actions.tsx
"use client"; import { useState } from "react"; import { useRouter } from "next/navigation"; import { useTranslations } from "next-intl"; import { Check, X, Loader2 } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Textarea } from "@/components/ui/textarea"; import { toast } from "sonner...
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/run-prompt-button.tsx
src/components/prompts/run-prompt-button.tsx
"use client"; import { useState, useCallback } from "react"; import { Play, ExternalLink, Zap, Clipboard, Heart } from "lucide-react"; import { useTranslations } from "next-intl"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, ...
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/mini-prompt-card.tsx
src/components/prompts/mini-prompt-card.tsx
"use client"; import Link from "next/link"; import { Badge } from "@/components/ui/badge"; import { getPromptUrl } from "@/lib/urls"; interface MiniPromptCardProps { prompt: { id: string; slug?: string | null; title: string; description?: string | null; contentPreview: string; type: 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/hf-data-studio-dropdown.tsx
src/components/prompts/hf-data-studio-dropdown.tsx
"use client"; import { useState } from "react"; import { useTranslations } from "next-intl"; import { useTheme } from "next-themes"; import { ChevronDown, Play, ExternalLink, Sparkles, Loader2 } from "lucide-react"; import Editor from "@monaco-editor/react"; import { Button } from "@/components/ui/button"; 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/filter-context.tsx
src/components/prompts/filter-context.tsx
"use client"; import { createContext, useContext, useState, ReactNode } from "react"; interface FilterContextType { isFilterPending: boolean; setFilterPending: (pending: boolean) => void; } const FilterContext = createContext<FilterContextType | null>(null); export function FilterProvider({ children }: { childr...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false