Skip to main content
Glama
index.tsx914 B
import type { FC } from 'react'; import { getContributors } from '@/app/[locale]/(landing)/contributors/page'; import { ContributorCloud } from './ContributorCloud'; type Contributor = { login: string; avatar_url: string; html_url: string; contributions?: number; type?: string; }; const shuffleArray = (array: Contributor[]): Contributor[] => { const shuffled = [...array]; for (let i = shuffled.length - 1; i > 0; i--) { const x = Math.sin(1) * 10000; const seed = x - Math.floor(x); const j = Math.floor(seed * (i + 1)); [shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]]; } return shuffled; }; const contributors = await getContributors() .then(shuffleArray) .then((array) => array.slice(0, 40)); export const ContributorSection: FC = () => { if (contributors.length === 0) { return null; } return <ContributorCloud contributors={contributors} />; };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server