---
title: "Installation"
description: "Add forges to your project and choose how to import it."
canonical_url: "https://forges.link/getting-started/installation"
---
# Installation

> Add forges to your project and choose how to import it.

You can install `forges` from npm with the package manager of your choice:

<code-group>

```sh [pnpm]
pnpm add forges
```

```sh [npm]
npm install forges
```

```sh [yarn]
yarn add forges
```

```sh [bun]
bun add forges
```

</code-group>

The package requires Node.js 22.18 or later. It is ESM only and ships its own types, so you don't need to install anything extra for TypeScript. `forges` has no runtime dependencies and sends its requests with the global `fetch`. If you want to use a different implementation, for example in a test or on a runtime that has no global `fetch`, pass it to a provider with the `fetch` option.

## Import paths

The root entry exports every provider along with the shared helpers, so a single import is enough to get started:

```ts
import { createForges, github } from 'forges'
```

Each provider also has a subpath of its own:

```ts
import { github } from 'forges/github'
```

Bundlers drop the providers you don't use from either entry. The subpath matters for a server build that copies dependencies instead of bundling them, because it then copies only the one forge and the shared core. See [Server builds](https://forges.link/guides/bundling#server-builds).

Besides the providers, the package has a few more subpaths for specific jobs:

| Subpath | Contents |
| --- | --- |
| `forges/github`, `forges/gitlab` and so on | One provider. See [Providers](https://forges.link/providers) |
| `forges/env` | [Configure providers from the environment](https://forges.link/guides/environment) |
| `forges/fake` | An in-memory forge for [tests](https://forges.link/guides/testing) |
| `forges/testing` | Fixture replay and webhook signing for [tests](https://forges.link/guides/testing) |
| `forges/schema` | [JSON Schemas](https://forges.link/reference/json-schemas) for the models, and every verb signature |
| `forges/wire` | Encode and decode dates and bytes when models cross JSON |
| `forges/kit` | Building blocks for [writing a provider](https://forges.link/contributing/write-a-provider) |

## Browsers

A browser never receives webhook deliveries, so each provider loads the code that translates them only when `webhooks.ingest()` first needs it. A bundler puts that code in a chunk of its own, which a browser doesn't download unless you ingest a delivery. The [Bundling](https://forges.link/guides/bundling) guide has the details and the bundle sizes.


## Sitemap

See the full [sitemap](https://forges.link/sitemap.md) for all pages.
