import { useState } from "react"; import Layout from "@/components/Layout"; import SEO from "@/components/SEO"; import { Breadcrumbs } from "@/components/dev-platform/Breadcrumbs"; import { TemplateCard } from "@/components/dev-platform/TemplateCard"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Search, Filter, SlidersHorizontal } from "lucide-react"; const categories = [ "All Templates", "Discord Bots", "API Integrations", "Full Stack", "Webhooks", "Automation", "Analytics", ]; const languages = ["All", "JavaScript", "TypeScript", "Python", "Go", "Rust"]; const templates = [ { id: "discord-activity-starter", name: "Discord Activity Starter", description: "Full-featured Discord Activity with user authentication and real-time features", category: "Discord Bots", language: "TypeScript", stars: 245, downloads: 1840, author: "AeThex Labs", difficulty: "intermediate" as const, tags: ["discord", "activities", "oauth", "react"], githubUrl: "https://github.com/aethex/discord-activity-starter", demoUrl: "https://discord.com/application-directory/123", }, { id: "api-client-js", name: "AeThex API Client (JS)", description: "Official JavaScript/TypeScript client for the AeThex API with full type safety", category: "API Integrations", language: "TypeScript", stars: 189, downloads: 3240, author: "AeThex Core", difficulty: "beginner" as const, tags: ["api", "sdk", "typescript", "node"], githubUrl: "https://github.com/aethex/aethex-js", }, { id: "webhook-relay", name: "Webhook Relay Service", description: "Forward and transform webhooks between services with retry logic and logging", category: "Webhooks", language: "Go", stars: 167, downloads: 892, author: "Community", difficulty: "advanced" as const, tags: ["webhooks", "relay", "proxy", "go"], githubUrl: "https://github.com/community/webhook-relay", }, { id: "fullstack-template", name: "AeThex Full Stack Template", description: "Complete app with React frontend, Express backend, and Supabase integration", category: "Full Stack", language: "TypeScript", stars: 421, downloads: 2156, author: "AeThex Labs", difficulty: "intermediate" as const, tags: ["react", "express", "supabase", "tailwind"], githubUrl: "https://github.com/aethex/fullstack-template", demoUrl: "https://template.aethex.dev", }, { id: "python-api-wrapper", name: "AeThex API Wrapper (Python)", description: "Pythonic wrapper for AeThex API with async support and type hints", category: "API Integrations", language: "Python", stars: 134, downloads: 1654, author: "AeThex Core", difficulty: "beginner" as const, tags: ["python", "asyncio", "api", "wrapper"], githubUrl: "https://github.com/aethex/aethex-py", }, { id: "analytics-dashboard", name: "Developer Analytics Dashboard", description: "Pre-built dashboard to visualize API usage, user activity, and performance metrics", category: "Analytics", language: "TypeScript", stars: 298, downloads: 1432, author: "Community", difficulty: "intermediate" as const, tags: ["analytics", "charts", "dashboard", "recharts"], githubUrl: "https://github.com/community/analytics-dashboard", demoUrl: "https://analytics-demo.aethex.dev", }, { id: "automation-workflows", name: "Workflow Automation Kit", description: "Build automated workflows with triggers, actions, and conditions using AeThex API", category: "Automation", language: "JavaScript", stars: 203, downloads: 967, author: "AeThex Labs", difficulty: "advanced" as const, tags: ["automation", "workflows", "triggers", "zapier-like"], githubUrl: "https://github.com/aethex/workflow-kit", }, { id: "discord-bot-boilerplate", name: "Discord Bot Boilerplate", description: "Production-ready Discord bot with slash commands, events, and database integration", category: "Discord Bots", language: "TypeScript", stars: 512, downloads: 4321, author: "AeThex Labs", difficulty: "beginner" as const, tags: ["discord", "bot", "slash-commands", "prisma"], githubUrl: "https://github.com/aethex/discord-bot-boilerplate", }, { id: "rust-api-client", name: "AeThex API Client (Rust)", description: "Blazing fast Rust client with zero-copy deserialization and async runtime", category: "API Integrations", language: "Rust", stars: 87, downloads: 432, author: "Community", difficulty: "advanced" as const, tags: ["rust", "tokio", "serde", "performance"], githubUrl: "https://github.com/community/aethex-rs", }, ]; export default function Templates() { const [searchQuery, setSearchQuery] = useState(""); const [selectedCategory, setSelectedCategory] = useState("All Templates"); const [selectedLanguage, setSelectedLanguage] = useState("All"); const filteredTemplates = templates.filter((template) => { const matchesSearch = template.name.toLowerCase().includes(searchQuery.toLowerCase()) || template.description.toLowerCase().includes(searchQuery.toLowerCase()) || template.tags.some((tag) => tag.toLowerCase().includes(searchQuery.toLowerCase())); const matchesCategory = selectedCategory === "All Templates" || template.category === selectedCategory; const matchesLanguage = selectedLanguage === "All" || template.language === selectedLanguage; return matchesSearch && matchesCategory && matchesLanguage; }); return (
{/* Search & Filters */}
setSearchQuery(e.target.value)} className="pl-10" />
{/* Category Tabs */}
{categories.map((category) => ( ))}
{/* Results Count */}

{filteredTemplates.length} template{filteredTemplates.length !== 1 ? "s" : ""} found

Sort by:
{/* Templates Grid */} {filteredTemplates.length === 0 ? (

No templates found

Try adjusting your search or filters

) : (
{filteredTemplates.map((template) => ( ))}
)} {/* Submit Template CTA */}

Have a template to share?

Submit your template to help other developers get started faster

); }