PageSourceSearch

https://contributor.info/js/widget-gallery-BROMPgEp.js

js contributor.info collected 2026-10-10 00:36:36 UTC 20,488 bytes, 28 lines download raw bytes

1import{j as e,r as w}from"./vendor-react-core-Ba2gwJNM.js";import{C,i as N,v as $,c as b,a1 as R,f as S,k as G,a0 as q,aM as B,U as _,ct as I,B as k,b8 as F,D as V,aj as E,bJ as W,ca as H,ac as Y,ad as J,ae as P,ai as O}from"./index-D-XLV-_s.js";import{L as v}from"./label-C7mpxRQf.js";import{T as L}from"./textarea-BDmvTWAt.js";import{u as A}from"./index-B0Ir_8Hh.js";import{O as K}from"./optimized-image-hevTqhZH.js";import"./vendor-ui-C6PEtgd7.js";import"./vendor-utils-MSNXLbuZ.js";import"./vendor-supabase-De54M4W1.js";const Q=(t="medium")=>t==="small"?"h-3 w-3":t==="large"?"h-6 w-6":"h-4 w-4",X={contributors:{icon:_,label:"Contributors",getValue:t=>t.stats.totalContributors,getSubtext:void 0,color:"text-blue-600 dark:text-primary"},"pull-requests":{icon:B,label:"Pull Requests",getValue:t=>t.stats.totalPRs,getSubtext:void 0,color:"text-green-600 dark:text-primary"},"lottery-factor":{icon:q,label:"Lottery Factor",getValue:t=>t.stats.lotteryFactor?.toFixed(1)||"N/A",getSubtext:t=>t.stats.lotteryRating,color:"text-orange-600 dark:text-primary"},"merge-rate":{icon:G,label:"Merge Rate",getValue:t=>`${t.stats.mergeRate.toFixed(1)}%`,getSubtext:void 0,color:"text-purple-600 dark:text-primary"}};function Z({config:t,data:s,className:o}){const l=t.metrics||["contributors","pull-requests","lottery-factor"],j=t.theme||"dark",a=t.size||"medium",h={small:"p-3 text-sm",medium:"p-4",large:"p-6 text-lg"};return e.jsxs(C,{className:b("embeddable-widget stat-card",h[a],j==="dark"&&"dark",o),children:[e.jsxs(N,{className:b("pb-2",a==="small"&&"pb-1",a==="large"&&"pb-4"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs($,{className:b("flex items-center gap-2",a==="small"&&"text-sm",a==="large"&&"text-xl"),children:[t.showLogo!==!1&&e.jsx("span",{className:"text-lg",children:"🌱"}),s.repository.owner,"/",s.repository.repo]}),e.jsx(R,{variant:"secondary",className:b(a==="small"&&"text-xs px-1.5 py-0.5",a==="large"&&"text-sm px-3 py-1"),children:s.repository.language})]}),s.repository.description&&e.jsx("p",{className:b("text-muted-foreground text-xs",a==="large"&&"text-sm"),children:s.repository.description})]}),e.jsxs(S,{children:[e.jsx("div",{className:b("grid gap-3",l.length<=2&&"grid-cols-1",l.length===3&&"grid-cols-1 sm:grid-cols-3",l.length>=4&&"grid-cols-2"),children:l.map(c=>{const u=X[c];if(!u)return null;const p=u.icon,g=u.getValue(s),d=u.getSubtext?.(s);return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(p,{className:b("flex-shrink-0",u.color,Q(a))}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:b("font-semibold",a==="small"&&"text-sm",a==="large"&&"text-lg"),children:g}),e.jsx("div",{className:b("text-muted-foreground text-xs",a==="large"&&"text-sm"),children:d||u.label})]})]},c)})}),t.showLogo!==!1&&e.jsxs("div",{className:"mt-3 pt-2 border-t text-xs text-muted-foreground text-center",children:[e.jsx("span",{children:"Powered by "}),e.jsx("a",{href:"https://contributor.info",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"contributor.info"})]})]})]})}const ee={flat:{containerClass:"rounded",leftClass:"rounded-l",rightClass:"rounded-r",height:20,shadow:!1},"flat-square":{containerClass:"rounded-none",leftClass:"rounded-none",rightClass:"rounded-none",height:20,shadow:!1},plastic:{containerClass:"rounded",leftClass:"rounded-l",rightClass:"rounded-r",height:18,shadow:!0},social:{containerClass:"rounded-md",leftClass:"rounded-l-md",rightClass:"rounded-r-md",height:22,shadow:!1}},y={contributors:"#007ec6",pullRequests:"#28a745",mergeRate:{high:"#28a745",medium:"#ffc107",low:"#dc3545"},lotteryFactor:{excellent:"#28a745",good:"#ffc107",poor:"#dc3545",unavailable:"#6c757d"},activity:{active:"#28a745",low:"#ffc107"}};function te(t){return t>80?y.mergeRate.high:t>60?y.mergeRate.medium:y.mergeRate.low}function se(t){return t?t>3?y.lotteryFactor.excellent:t>2?y.lotteryFactor.good:y.lotteryFactor.poor:y.lotteryFactor.unavailable}const M={contributors:t=>({label:"contributors (30d)",message:t.stats.totalContributors.toString(),color:y.contributors}),"pull-requests":t=>({label:"PRs (30d)",message:t.stats.totalPRs.toString(),color:y.pullRequests}),"merge-rate":t=>({label:"merge rate (30d)",message:`${t.stats.mergeRate.toFixed(1)}%`,color:te(t.stats.mergeRate)}),"lottery-factor":t=>({label:"lottery factor (30d)",message:t.stats.lotteryFactor?.toFixed(1)||"N/A",color:se(t.stats.lotteryFactor)}),activity:t=>({label:"activity (7d)",message:t.activity.recentActivity?"active":"low",color:t.activity.recentActivity?y.activity.active:y.activity.low})};function re(t){const s=/^#(?:[0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/,o=/^rgba?\(\s*(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\s*,\s*(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\s*,\s*(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\s*(?:,\s*(?:0?\.?[0-9]+|1(?:\.0+)?|0))?\)$/,l=["red","green","blue","yellow","orange","purple","gray","black","white"];return s.test(t)||o.test(t)||l.includes(t.toLowerCase())?t:"#007ec6"}function U({config:t,data:s,className:o}){const l=t.style||"flat",j=ee[l];let a;if(t.label&&t.message)a={label:t.label,message:t.message,color:t.color||"#007ec6"};else{const d=t.metrics?.[0]||"contributors",x=M[d];a=x?x(s):M.contributors(s)}const{label:h,message:c,color:u}=a;if(t.format==="svg"){const d=re(u),x=Math.max(h.length*6.5+10,50),n=Math.max(c.length*6.5+10,30),f=x+n,m=j.height;return e.jsx("div",{className:b("embeddable-widget badge-svg",o),children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:f,height:m,viewBox:`0 0 ${f} ${m}`,role:"img","aria-label":`${h}: ${c}`,children:[e.jsx("title",{children:`${h}: ${c}`}),e.jsx("defs",{children:j.shadow&&e.jsx("filter",{id:"shadow",x:"-20%",y:"-20%",width:"140%",height:"140%",children:e.jsx("feDropShadow",{dx:"0",dy:"1",stdDeviation:"1",floodColor:"rgba(0,0,0,0.2)"})})}),e.jsx("rect",{x:"0",y:"0",width:x,height:m,fill:"#555",rx:l.includes("flat")&&!l.includes("square")?3:0}),e.jsx("rect",{x,y:"0",width:n,height:m,fill:d,rx:l.includes("flat")&&!l.includes("square")?3:0}),e.jsx("text",{x:x/2,y:m/2,textAnchor:"middle",dominantBaseline:"central",fontFamily:"Verdana,Geneva,DejaVu Sans,sans-serif",fontSize:"11",fill:"white",children:h}),e.jsx("text",{x:x+n/2,y:m/2,textAnchor:"middle",dominantBaseline:"central",fontFamily:"Verdana,Geneva,DejaVu Sans,sans-serif",fontSize:"11",fontWeight:"bold",fill:"white",children:c})]})})}const p=`${window.location.origin}
1/api/widget/badge?`+new URLSearchParams({owner:s.repository.owner,repo:s.repository.repo,type:t.metrics?.[0]||"contributors",style:t.style||"flat",label:t.label||"",color:t.color||""}).toString(),g=t.format==="html"?`<img src="${p}" alt="${s.repository.repo} badge" />`:`![${s.repository.repo} badge](${p})`;return e.jsxs("div",{className:b("badge-generator",o),children:[e.jsx("div",{className:"badge-preview mb-4",children:e.jsx(K,{src:p,alt:"Badge preview",width:200,height:28,priority:!0,className:"inline-block"})}),e.jsxs("div",{className:"embed-code p-3 bg-gray-50 dark:bg-gray-800 rounded-md",children:[e.jsx("p",{className:"text-sm font-medium mb-2",children:"Embed Code:"}),e.jsx("code",{className:"text-xs break-all",children:g})]})]})}function oe(t,s){return`${window.location.origin}/api/widget/badge?`+new URLSearchParams({owner:s.repository.owner,repo:s.repository.repo,type:t.metrics?.[0]||"contributors",style:t.style||"flat",label:t.label||"",color:t.color||""}).toString()}function ae(t,s){const o=oe(t,s);return`![${s.repository.repo} badge](${o})`}const D={apa:(t,s,o)=>`Contributor.info. (${s.getFullYear()}). ${t.repository.owner}/${t.repository.repo} repository analytics. Retrieved ${s.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}, from ${o}`,mla:(t,s,o)=>`Contributor.info. "${t.repository.owner}/${t.repository.repo} Repository Analytics." Contributor.info, ${s.getDate()} ${s.toLocaleDateString("en-US",{month:"short"})} ${s.getFullYear()}, ${o}.`,chicago:(t,s,o)=>`Contributor.info. "${t.repository.owner}/${t.repository.repo} Repository Analytics." Accessed ${s.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}. ${o}.`,ieee:(t,s,o)=>`Contributor.info, "${t.repository.owner}/${t.repository.repo} repository analytics," accessed ${s.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}. [Online]. Available: ${o}`,bibtex:(t,s,o)=>`@misc{contributor_info_${t.repository.owner}_${t.repository.repo}_${s.getFullYear()},
2  title={${t.repository.owner}/${t.repository.repo} Repository Analytics},
3  author={Contributor.info},
4  year={${s.getFullYear()}},
5  url={${o}},
6  note={Accessed: ${s.toISOString().split("T")[0]}}
7}`,plain:(t,s,o)=>`${t.repository.owner}/${t.repository.repo} repository analytics by Contributor.info. Data retrieved on ${s.toLocaleDateString()} from ${o}`};function ie({data:t,permalinkConfig:s}){const[o,l]=w.useState("apa"),[j,a]=w.useState(null),h=new Date,u=`${typeof window<"u"?window.location.origin:"https://contributor.info"}/${t.repository.owner}/${t.repository.repo}`,p=n=>D[n](t,h,u),g=async(n,f)=>{try{await navigator.clipboard.writeText(n),a(f),A.success(`${f.toUpperCase()} citation copied to clipboard`),setTimeout(()=>a(null),2e3)}catch{A.error("Failed to copy to clipboard")}},d=()=>{if(!s)return u;const n=new URLSearchParams;return n.set("cite","true"),n.set("format","json"),n.set("date",h.toISOString().split("T")[0]),Object.entries(s.parameters).forEach(([f,m])=>{n.set(f,String(m))}),`${u}?${n.toString()}`},x=()=>{const n=Object.entries(D).map(([T,z])=>`${T.toUpperCase()}:
8${z(t,h,u)}
9`).join(`
10`),f=`# Citations for ${t.repository.owner}/${t.repository.repo}
11Generated on ${h.toLocaleDateString()}
12
13## Repository Statistics
14- Total Contributors: ${t.stats.totalContributors}
15- Total Pull Requests: ${t.stats.totalPRs}
16- Merge Rate: ${t.stats.mergeRate.toFixed(1)}%
17${t.stats.lotteryFactor?`- Lottery Factor: ${t.stats.lotteryFactor.toFixed(1)} (${t.stats.lotteryRating})`:""}
18
19## Citations
20
21${n}
22
23## Permalink
24${d()}
25
26---
27Generated by contributor.info - https://contributor.info
28`,m=new Blob([f],{type:"text/markdown"}),r=URL.createObjectURL(m),i=document.createElement("a");i.href=r,i.download=`${t.repository.owner}-${t.repository.repo}-citations.md`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r),A.success("Bibliography exported successfully")};return e.jsxs(C,{className:"embeddable-widget citation-generator",children:[e.jsxs(N,{children:[e.jsxs($,{className:"flex items-center gap-2",children:[e.jsx(I,{className:"h-5 w-5"}),"Citation & Attribution"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Generate academic citations for ",t.repository.owner,"/",t.repository.repo," analytics"]})]}),e.jsxs(S,{className:"space-y-4",children:[e.jsx("div",{className:"flex flex-wrap gap-2",children:Object.keys(D).map(n=>e.jsx(R,{variant:o===n?"default":"outline",className:"cursor-pointer",onClick:()=>l(n),children:n.toUpperCase()},n))}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(L,{value:p(o),readOnly:!0,className:"min-h-20 text-sm resize-none"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(k,{size:"sm",variant:"outline",onClick:()=>g(p(o),o),className:"flex items-center gap-1",children:[e.jsx(F,{className:"h-3 w-3"}),j===o?"Copied!":"Copy"]}),e.jsxs(k,{size:"sm",variant:"outline",onClick:x,className:"flex items-center gap-1",children:[e.jsx(V,{className:"h-3 w-3"}),"Export All"]})]})]}),e.jsxs("div",{className:"rounded-md border p-3 text-sm space-y-2",children:[e.jsx("div",{className:"font-medium",children:"Repository Information"}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs text-muted-foreground",children:[e.jsxs("span",{children:["Repository: ",t.repository.owner,"/",t.repository.repo]}),e.jsxs("span",{children:["Contributors: ",t.stats.totalContributors]}),e.jsxs("span",{children:["Pull Requests: ",t.stats.totalPRs]}),e.jsxs("span",{children:["Merge Rate: ",t.stats.mergeRate.toFixed(1),"%"]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-sm font-medium",children:"Permalink"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(L,{value:d(),readOnly:!0,className:"min-h-8 text-xs resize-none"}),e.jsx(k,{size:"sm",variant:"outline",onClick:()=>g(d(),"permalink"),children:e.jsx(F,{className:"h-3 w-3"})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Use this permalink to reference specific data snapshots"})]}),e.jsxs("div",{className:"rounded-md bg-muted p-3 text-xs",children:[e.jsx("strong",{children:"Attribution Requirements:"})," When using this data in academic work, please cite contributor.info and include the date of data retrieval. Data is sourced from GitHub's public API and processed for analytical insights."]})]})]})}const ne={repository:{owner:"facebook",repo:"react",description:"The library for web and native user interfaces",stars:233e3,language:"JavaScript"},stats:{totalContributors:1247,totalPRs:8934,mergedPRs:7456,mergeRate:83.5,lotteryFactor:3.2,lotteryRating:"Good"},activity:{weeklyPRVolume:67,activeContributors:342,recentActivity:!0},topContributors:[{login:"gaearon",avatar_url:"https://avatars.githubusercontent.com/u/810438?v=4",contributions:1234},{login:"sebmarkbage",avatar_url:"https://avatars.githubusercontent.com/u/63648?v=4",contributions:567},{login:"acdlite",avatar_url:"https://avatars.githubusercontent.com/u/3624098?v=4",contributions:456}]};function be({owner:t="facebook",repo:s="react",data:o=ne}){const[l,j]=w.useState("stat-card"),[a,h]=w.useState(t),[c,u]=w.useState(s),[p,g]=w.useState({type:"stat-card",owner:a,repo:c,theme:"dark",size:"medium",format:"html",metrics:["contributors","pull-requests","lottery-factor"],showLogo:!0}),[d,x]=w.useState({type:"badge",owner:a,repo:c,style:"flat",format:"svg"}),n=async(r,i)=>{try{await navigator.clipboard.writeText(r),A.success(`${i} copied to clipboard`)}catch{A.error("Failed to copy to clipboard")}},m=(()=>{const r=typeof window<"u"?window.location.origin:"https://contributor.info";switch(l){case"stat-card":{const i=new URLSearchParams({owner:a,repo:c,theme:p.theme||"dark",size:p.size||"medium",metrics:p.metrics?.join(",")||"contributors,pull-requests"});return{html:`<iframe src="${r}/api/widgets/stat-card?${i}" width="400" height="200" frameborder="0"></iframe>`,markdown:`[![${a}/${c} Stats](${r}/api/widgets/stat-card?${i})](https://contributor.info/${a}/${c})`,url:`${r}/api/widgets/stat-card?${i}`}}case"badge":{const i=ae(d,o),T=new URLSearchParams({owner:a,repo:c,type:"contributors",style:d.style||"flat"});return{html:`<img src="${r}/api/widgets/badge?${T}" alt="${a}/${c} contributors" />`,markdown:i,url:`${r}/api/widgets/badge?${T}`}}default:return{html:`<iframe src="${r}/${a}/${c}" width="100%" height="600" frameborder="0"></iframe>`,markdown:`[${a}/${c} Analytics](${r}/${a}/${c})`,url:`${r}/${a}/${c}`}}})();return e.jsxs("div",{className:"space-y-6",children:[e.jsxs(C,{children:[e.jsxs(N,{children:[e.jsx($,{children:"Widget Generator"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Create embeddable widgets for your GitHub repository"})]}),e.jsx(S,{className:"space-y-4",children:e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{htmlFor:"owner",children:"Repository Owner"}),e.jsx(E,{id:"owner",value:a,onChange:r=>{h(r.target.value),g(i=>({...i,owner:r.target.value})),x(i=>({...i,owner:r.target.value}))},placeholder:"facebook"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{htmlFor:"repo",children:"Repository Name"}),e.jsx(E,{id:"repo",value:c,onChange:r=>{u(r.target.value),g(i=>({...i,repo:r.target.value})),x(i=>({...i,repo:r.target.value}))},placeholder:"react"})]})]})})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:["stat-card","badge","citation"].map(r=>e.jsx(R,{variant:l===r?"default":"outline",className:"cursor-pointer capitalize",onClick:()=>j(r),children:r.replace("-"," ")},r))}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsxs(C,{children:[e.jsx(N,{children:e.jsxs($,{className:"flex items-center gap-2",children:[e.jsx(W,{className:"h-4 w-4"}),"Preview"]})}),e.jsxs(S,{children:[l==="stat-card"&&e.jsx(Z,{config:p,data:o}),l==="badge"&&e.jsxs("div",{className:"space-y-4",children:[e.jsx(U,{config:d,data:o}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(U,{config:{...d,metrics:["contributors"]},data:o}),e.jsx(U,{config:{...d,metrics:["pull-requests"]},data:o}),e.jsx(U,{config:{...d,metrics:["merge-rate"]},data:o})]})]}),l==="citation"&&e.jsx(ie,{data:o})]})]}),e.jsxs(C,{children:[e.jsx(N,{children:e.jsxs($,{className:"flex items-center gap-2",children:[e.jsx(H,{className:"h-4 w-4"}),"Embed Code"]})}),e.jsxs(S,{children:[e.jsxs(Y,{defaultValue:"html",className:"space-y-4",children:[e.jsxs(J,{className:"grid w-full grid-cols-3",children:[e.jsx(P,{value:"html",children:"HTML"}),e.jsx(P,{value:"markdown",children:"Markdown"}),e.jsx(P,{value:"url",children:"URL"})]}),e.jsxs(O,{value:"html",className:"space-y-2",children:[e.jsx(L,{value:m.html,readOnly:!0,className:"text-xs font-mono resize-none",rows:3}),e.jsxs(k,{size:"sm",variant:"outline",onClick:()=>n(m.html,"HTML code"),className:"flex items-center gap-1",children:[e.jsx(F,{className:"h-3 w-3"}),"Copy HTML"]})]}),e.jsxs(O,{value:"markdown",className:"space-y-2",children:[e.jsx(L,{value:m.markdown,readOnly:!0,className:"text-xs font-mono resize-none",rows:3}),e.jsxs(k,{size:"sm",variant:"outline",onClick:()=>n(m.markdown,"Markdown code"),className:"flex items-center gap-1",children:[e.jsx(F,{className:"h-3 w-3"}),"Copy Markdown"]})]}),e.jsxs(O,{value:"url",className:"space-y-2",children:[e.jsx(L,{value:m.url,readOnly:!0,className:"text-xs font-mono resize-none",rows:2}),e.jsxs(k,{size:"sm",variant:"outline",onClick:()=>n(m.url,"Widget URL"),className:"flex items-center gap-1",children:[e.jsx(F,{className:"h-3 w-3"}),"Copy URL"]})]})]}),l==="stat-card"&&e.jsxs("div",{className:"mt-4 pt-4 border-t space-y-3",children:[e.jsx(v,{className:"text-sm font-medium",children:"Configuration"}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[e.jsxs("div",{children:[e.jsx(v,{children:"Theme"}),e.jsx("div",{className:"flex gap-1 mt-1",children:["light","dark"].map(r=>e.jsx(R,{variant:p.theme===r?"default":"outline",className:"cursor-pointer text-xs px-2 py-0",onClick:()=>g(i=>({...i,theme:r})),children:r},r))})]}),e.jsxs("div",{children:[e.jsx(v,{children:"Size"}),e.jsx("div",{className:"flex gap-1 mt-1",children:["small","medium","large"].map(r=>e.jsx(R,{variant:p.size===r?"default":"outline",className:"cursor-pointer text-xs px-2 py-0",onClick:()=>g(i=>({...i,size:r})),children:r},r))})]})]})]}),l==="badge"&&e.jsxs("div",{className:"mt-4 pt-4 border-t space-y-3",children:[e.jsx(v,{className:"text-sm font-medium",children:"Badge Style"}),e.jsx("div",{className:"flex flex-wrap gap-1",children:["flat","flat-square","plastic","social"].map(r=>e.jsx(R,{variant:d.style===r?"default":"outline",className:"cursor-pointer text-xs px-2 py-0",onClick:()=>x(i=>({...i,style:r})),children:r},r))})]})]})]})]}),e.jsxs(C,{children:[e.jsx(N,{children:e.jsx($,{children:"Usage Examples"})}),e.jsx(S,{className:"space-y-4",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium mb-2",children:"GitHub README"}),e.jsx("p",{className:"text-muted-foreground",children:"Add widgets to your repository's README.md file to showcase contributor activity and project health."})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium mb-2",children:"Documentation Sites"}),e.jsx("p",{className:"text-muted-foreground",children:"Embed live statistics in your project documentation or website using HTML iframes."})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium mb-2",children:"Academic Citations"}),e.jsx("p",{className:"text-muted-foreground",children:"Generate proper citations for academic papers and research that references your project's contributor data."})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium mb-2",children:"Social Media"}),e.jsx("p",{className:"text-muted-foreground",children:"Share visual representations of your project's health and activity on social platforms."})]})]})})]})]})}export{be as WidgetGallery};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.