"use client" import { useState } from "react" import { Search, Star, GitFork, Circle } from "lucide-react" const repositories = [ { name: "gitsune", description: "A lightweight, privacy-focused Forgejo fork with enhanced performance and modern UI components.", language: "Go", languageColor: "#00ADD8", stars: 42, forks: 8, url: "https://github.com/aguitauwu/gitsune", updatedAt: "Updated 2 days ago", }, { name: "NHE", description: "Not Humanity Exam - A benchmark for measuring metacognition and reasoning patterns in large language models.", language: "Python", languageColor: "#3572A5", stars: 156, forks: 23, url: "https://huggingface.co/Not-Humanity-Exam", updatedAt: "Updated last week", }, { name: "koe-protocol", description: "Decentralized P2P communication protocol with end-to-end encryption and minimal latency.", language: "Rust", languageColor: "#dea584", stars: 89, forks: 12, url: "https://github.com/Koe-chat", updatedAt: "Updated 3 days ago", }, { name: "opcean-models", description: "Open source AI models and research. Fine-tuned LLMs for specific tasks and domains.", language: "Python", languageColor: "#3572A5", stars: 234, forks: 45, url: "https://huggingface.co/OpceanAI", updatedAt: "Updated yesterday", }, ] export function RepositoriesTab() { const [search, setSearch] = useState("") const [typeFilter, setTypeFilter] = useState("all") const [languageFilter, setLanguageFilter] = useState("all") const filteredRepos = repositories.filter((repo) => { const matchesSearch = repo.name.toLowerCase().includes(search.toLowerCase()) || repo.description.toLowerCase().includes(search.toLowerCase()) const matchesLanguage = languageFilter === "all" || repo.language === languageFilter return matchesSearch && matchesLanguage }) return (
{/* Search and filters */}
setSearch(e.target.value)} className="w-full pl-9 pr-3 py-[5px] text-sm bg-[#0d1117] border border-[#30363d] rounded-md text-[#e6edf3] placeholder-[#8b949e] focus:outline-none focus:border-[#388bfd] focus:ring-1 focus:ring-[#388bfd]" />
{/* Repository list */}
) }