Interface representing a GitHub repository

Contains detailed information about a GitHub repository including metadata, statistics, and language information. Used for displaying repository cards and lists.

Repository

interface Repository {
    description: null | string;
    forkCount: number;
    id: string;
    languages: { nodes: { color: string; name: string }[] };
    name: string;
    primaryLanguage: null | { color: string; name: string };
    stargazerCount: number;
    updatedAt: string;
    url: string;
}

Properties

description: null | string

Repository description (can be null if not set)

forkCount: number

Number of repository forks

id: string

Unique identifier for the repository

languages: { nodes: { color: string; name: string }[] }

All programming languages used in the repository

name: string

Repository name

primaryLanguage: null | { color: string; name: string }

Primary programming language information

stargazerCount: number

Number of users who have starred the repository

updatedAt: string

ISO timestamp of the last update to the repository

url: string

Full URL to the repository on GitHub