Skip to main content
Glama
+page.server.ts823 B
import type { PageServerLoad } from './$types' import { ContentComparisonService } from '$lib/server/contentComparison' import { logAlways, logErrorAlways } from '$lib/log' export const load: PageServerLoad = async () => { try { logAlways('Loading content comparison data...') const [comparisons, stats] = await Promise.all([ ContentComparisonService.getContentComparisons(), ContentComparisonService.getComparisonStats() ]) return { comparisons, stats } } catch (error) { logErrorAlways('Error loading content comparison data:', error) return { comparisons: [], stats: { totalComparisons: 0, averageCompressionRatio: 0, totalSizeSaved: 0, originalTotalSize: 0, distilledTotalSize: 0 }, error: error instanceof Error ? error.message : 'Unknown error' } } }

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/khromov/llmctx'

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