Skip to content
Source
Sign inSign up

Share a download chart as an image

Code and repositories / Repository settings

Share a download chart as an image

You want to post your download numbers on X or LinkedIn. A screenshot of the page shows too much and crops badly. The Share image button makes a clean PNG of one chart, in the size of a social post.

3 min read

1. Open the chart you want

  1. Open the npm tab of the repository, or of the organization. See See npm downloads of your packages or See npm downloads of your organization.
  2. At the top right, pick the range, for example 90 days, 1 year or Custom.
  3. For the downloads of all packages, use the Downloads card. For one package, click its row to open its chart.

The image draws the chart as you see it. So set up the Downloads chart before you continue:

  • Click the names in the legend to hide or show the lines of packages.
  • Turn on Stacked to show the total of the packages.

The image of one package shows the view that you picked in Chart above its chart: Selected range or Weekly, like npm. For Weekly, like npm, the image shows the last year. To get both images:

  1. Pick Selected range, make the image and download it.
  2. Pick Weekly, like npm, then make and download the second image.

2. Make the image

  1. Click Share image on the chart.
  2. Pick a size. The dialog shows a preview of the image.
  3. Click Download PNG, or click Copy image to paste it straight into your post.
The Share image dialog for the Downloads chart: the size picker, a preview of the PNG with the name, the downloads, the chart with one line for each package and its legend, and the Copy image and Download PNG buttons

The sizes:

SizePixels
X and LinkedIn (the default)1200 x 675
Square1080 x 1080
Portrait1080 x 1350

The file gets a name from the chart, the range and the size, for example acme-rocket-react-npm-90d-landscape.png.

What the image shows

  • At the top left, the name: the package, owner/repo for the Downloads chart of a repository, or the organization for its Downloads chart.
  • Under the name, the total downloads of the range, for example "21,617,564 downloads in the last 1 year", and the change from the range before, in green for a rise and red for a fall. 1 year shows no change.
  • At the top right, in large type, the weekly downloads now: the downloads of the last 7 days, for example "100.2M", with the change from the 7 days before. On a square or portrait image, this number is under the name.
  • The chart of the range. Its y axis says what each point counts: Daily downloads, Weekly downloads or Monthly downloads. A dot marks the last point of the line, with its value next to it. The Downloads chart shows the lines that you did not hide, with a legend of their names. With Stacked, the dot marks the total.
  • A small "TanStack Source" line at the bottom.

The total and the weekly downloads count all packages, also the packages that you hide in the chart.

The image uses the colors of the page. For a dark image, pick the dark theme in the header before you click Share image.

Note

Your browser makes the image. When the browser cannot put an image on the clipboard, the dialog shows only Download PNG.

Done

You have a PNG of your downloads, in the right size for your post. Attach it to a post on X or LinkedIn.