ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/llms-txt-hub / apps/web/lib/member-utils.ts

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/llms-txt-hub / apps/web/lib/member-utils.ts
DateNot specified in source
RepositoryJanady13/llms-txt-hub
Revisione0f4bf978d4df168369c7601d9c5f5ea89e84377
Branchmain
Path or archive memberapps/web/lib/member-utils.ts
Original SHA-256efd3ae834c7a5589ba21038106593cb84daa2ce9e55eb7aa7a3c82608fdc7b3d
Git blob SHA531d3b4b4304ab3cffa69ee82a55ad3ac399c173
Reading-copy SHA-256efd3ae834c7a5589ba21038106593cb84daa2ce9e55eb7aa7a3c82608fdc7b3d

Original source ↗

Recovered source transcript

import { getUserContributions } from './github-contributions' export interface MemberBadge { type: 'contributor' | 'community' label: string variant: 'default' | 'secondary' | 'outline' } /** * Determines the appropriate badge for a member based on their contributions * @param username - GitHub username to check contributions for * @returns Promise resolving to MemberBadge configuration */ export async function getMemberBadge(username?: string | null): Promise<MemberBadge> { if (!username) { return { type: 'community', label: 'Community', variant: 'outline' } } try { const contributions = await getUserContributions(username) if (contributions.total > 0) { return { type: 'contributor', label: 'Contributor', variant: 'default' } } return { type: 'community', label: 'Community', variant: 'outline' } } catch { // If we can't fetch contributions, default to community member return { type: 'community', label: 'Community', variant: 'outline' } } } // getMemberBadgeSync has been moved to member-client-utils.ts for client-side use

Search equations, builds, manuscript text, and recovered sources.