@@ -338,22 +338,52 @@ defineOgImageComponent('Package', {
338338
339339 <div v-if =" downloads" class =" space-y-1" >
340340 <dt class =" text-xs text-fg-subtle uppercase tracking-wider" >Weekly</dt >
341- <dd class =" font-mono text-sm text-fg" >
341+ <dd class =" font-mono text-sm text-fg flex items-baseline justify-start gap-2 " >
342342 {{ formatNumber(downloads.downloads) }}
343+ <a
344+ :href =" `https://npm.chart.dev/${pkg.name}`"
345+ target =" _blank"
346+ rel =" noopener noreferrer"
347+ class =" text-fg-subtle hover:text-fg transition-colors duration-200"
348+ title =" View download trends"
349+ >
350+ <span class =" i-carbon-chart-line w-3.5 h-3.5 inline-block" aria-hidden =" true" />
351+ <span class =" sr-only" >View download trends</span >
352+ </a >
343353 </dd >
344354 </div >
345355
346356 <div v-if =" displayVersion?.dist?.unpackedSize" class =" space-y-1" >
347357 <dt class =" text-xs text-fg-subtle uppercase tracking-wider" >Size</dt >
348- <dd class =" font-mono text-sm text-fg" >
358+ <dd class =" font-mono text-sm text-fg flex items-baseline justify-start gap-2 " >
349359 {{ formatBytes(displayVersion.dist.unpackedSize) }}
360+ <a
361+ :href =" `https://pkg-size.dev/${pkg.name}`"
362+ target =" _blank"
363+ rel =" noopener noreferrer"
364+ class =" text-fg-subtle hover:text-fg transition-colors duration-200"
365+ title =" View bundle size analysis"
366+ >
367+ <span class =" i-carbon-launch w-3.5 h-3.5 inline-block" aria-hidden =" true" />
368+ <span class =" sr-only" >View bundle size analysis</span >
369+ </a >
350370 </dd >
351371 </div >
352372
353373 <div v-if =" getDependencyCount(displayVersion) > 0" class =" space-y-1" >
354374 <dt class =" text-xs text-fg-subtle uppercase tracking-wider" >Deps</dt >
355- <dd class =" font-mono text-sm text-fg" >
375+ <dd class =" font-mono text-sm text-fg flex items-baseline justify-start gap-2 " >
356376 {{ getDependencyCount(displayVersion) }}
377+ <a
378+ :href =" `https://npmgraph.js.org/?q=${pkg.name}`"
379+ target =" _blank"
380+ rel =" noopener noreferrer"
381+ class =" text-fg-subtle hover:text-fg transition-colors duration-200"
382+ title =" View dependency graph"
383+ >
384+ <span class =" i-carbon-network-3 w-3.5 h-3.5 inline-block" aria-hidden =" true" />
385+ <span class =" sr-only" >View dependency graph</span >
386+ </a >
357387 </dd >
358388 </div >
359389
@@ -435,28 +465,7 @@ defineOgImageComponent('Package', {
435465 socket.dev
436466 </a >
437467 </li >
438- <li >
439- <a
440- :href =" `https://npm.chart.dev/${pkg.name}`"
441- target =" _blank"
442- rel =" noopener noreferrer"
443- class =" link-subtle font-mono text-sm inline-flex items-center gap-1.5"
444- >
445- <span class =" i-carbon-chart-line w-4 h-4" />
446- trends
447- </a >
448- </li >
449- <li >
450- <a
451- :href =" `https://pkg-size.dev/${pkg.name}`"
452- target =" _blank"
453- rel =" noopener noreferrer"
454- class =" link-subtle font-mono text-sm inline-flex items-center gap-1.5"
455- >
456- <span class =" i-carbon-data-volume w-4 h-4" />
457- size
458- </a >
459- </li >
468+
460469 <li v-if =" displayVersion" >
461470 <NuxtLink
462471 :to =" {
0 commit comments