# gatsby-link

> An enhanced Link component for Gatsby sites with support for resource prefetching

Latest version **5.16.0** (published 2026-01-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install gatsby-link
pnpm add gatsby-link
yarn add gatsby-link
bun add gatsby-link
```

## Health

**Score 70/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.16.0 |
| Published | 2026-01-26 |
| First published | 2017-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 <26 |
| Dependencies | 3 |
| Unpacked size | 96.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 55942 |
| Author | Kyle Mathews |
| Maintainers | pieh, kathmbeck, serhalp-netlify, mlgualtieri-gatsby, wardpeet |
| Keywords | gatsby |

## Links

- npm: https://www.npmjs.com/package/gatsby-link
- Repository: https://github.com/gatsbyjs/gatsby
- Homepage: https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-link#readme
- Issues: https://github.com/gatsbyjs/gatsby/issues
- npm.io page: https://npm.io/package/gatsby-link

## Dependencies (3)

- [prop-types](https://npm.io/package/prop-types.md) ^15.8.1
- [gatsby-page-utils](https://npm.io/package/gatsby-page-utils.md) ^3.16.0
- [@types/reach__router](https://npm.io/package/@types/reach__router.md) ^1.3.10

## Recent versions

- 5.16.0 (latest) — 2026-01-26
- 5.17.0-next.0 (next) — 2025-11-27
- 5.17.0-react19.0 (react19) — 2025-11-24
- 5.10.0-alpha-adapters.165 (alpha-adapters) — 2023-07-14
- 3.15.0 (latest-v3) — 2022-12-07
- 4.25.0 (latest-v4) — 2022-12-07
- 5.0.0-alpha-drupal-proxyurl.14 (drupal-proxyurl) — 2022-11-22
- 4.14.0-alpha-transformer-json.26 (alpha-transformer-json) — 2022-10-12
- 5.0.0-alpha-v5.d20221012t101120.57 (alpha-v5) — 2022-10-12
- 4.23.0-alpha-sl-test-pieh.77 (alpha-sl-test-pieh) — 2022-09-30
- 4.23.0-alpha-a5-peer.53 (alpha-a5-peer) — 2022-09-14
- 4.23.0-alpha-preview-gh-api.26 (preview-gh-api) — 2022-09-08
- 4.23.0-alpha-9689ff.25 (alpha-9689ff) — 2022-08-31
- 4.20.0-mdxv4-rc.75 (mdxv4-rc) — 2022-07-27
- 4.18.0-alpha-drupal-self-reference.18 (drupal-self-reference) — 2022-07-19
- … 685 more at https://npm.io/package/gatsby-link/versions

## README

# gatsby-link

All components and utility functions from this package are now exported from [`gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby) package. You should not import anything from this package directly.

The [API reference](https://www.gatsbyjs.com/docs/gatsby-link/) has more documentation.

---
_Source: https://npm.io/package/gatsby-link · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
