    ---
    import { Image } from "astro:assets";

    function formatStars(starCount: number) {
    	if (starCount < 1000) {
    		return starCount.toString();
    	}
    	return starCount % 1000 === 0
    		? `${Math.floor(starCount / 1000)}k`
    		: `${(starCount / 1000).toFixed(1)}k`;
    }

    export type Props = {
    	repo: string;
    	description: string;
    	url?: string;
    	stars: number;
    	image?: string;
    	gif?: string;
    };

    let { repo, description, stars } = Astro.props;
    let url = Astro.props.url ?? `https://github.com/${repo}`;
    let username = repo.split("/")[0];
    ---
{repo}
{ stars ? (
{formatStars(stars)}
) : null }

{description}

{ Astro.props.image ? ( ) : null }