Interface representing a GitHub user profile

Contains comprehensive user information including profile data, statistics, contributions, and repository information. Used for user profile displays and comparisons.

User

interface User {
    avatarUrl: string;
    bio: string;
    contributionsCollection: {
        contributionCalendar: {
            totalContributions: number;
            weeks: {
                contributionDays: { contributionCount: number; date: string }[];
            }[];
        };
        totalCommitContributions: number;
        totalIssueContributions: number;
        totalPullRequestContributions: number;
        totalRepositoryContributions: number;
    };
    followers: { totalCount: number };
    following: { totalCount: number };
    issues: { totalCount: number };
    location: string;
    login: string;
    name: string;
    pullRequests: { totalCount: number };
    repositories: {
        nodes: Repository[];
        totalCount: number;
        totalStargazers: { stargazerCount: number }[];
    };
    socialAccounts: { nodes: { provider: string; url: string }[] };
    twitterUsername: string;
    url: string;
    websiteUrl: string;
}

Properties

avatarUrl: string

URL to user's avatar image

bio: string

User's bio/description

contributionsCollection: {
    contributionCalendar: {
        totalContributions: number;
        weeks: { contributionDays: { contributionCount: number; date: string }[] }[];
    };
    totalCommitContributions: number;
    totalIssueContributions: number;
    totalPullRequestContributions: number;
    totalRepositoryContributions: number;
}

Comprehensive contribution data

followers: { totalCount: number }

Follower statistics

following: { totalCount: number }

Following statistics

issues: { totalCount: number }

Issue statistics

location: string

User's location

login: string

GitHub username (login)

name: string

User's display name

pullRequests: { totalCount: number }

Pull request statistics

repositories: {
    nodes: Repository[];
    totalCount: number;
    totalStargazers: { stargazerCount: number }[];
}

Repository information

socialAccounts: { nodes: { provider: string; url: string }[] }

Social media accounts

twitterUsername: string

User's Twitter username

url: string

URL to user's GitHub profile

websiteUrl: string

User's website URL