# @portkey/graphql

> ![ES Version](https://img.shields.io/badge/ES-2020-yellow) ![Node Version](https://img.shields.io/badge/node-14.x-green) [![NPM Package Version][npm-image-version]][npm-url]

Latest version **2.23.0-alpha.15** (published 2026-01-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install @portkey/graphql
pnpm add @portkey/graphql
yarn add @portkey/graphql
bun add @portkey/graphql
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.23.0-alpha.15 |
| Published | 2026-01-06 |
| First published | 2023-02-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 338.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Maintainers | potterp, yellow.m, frankportkey, codingwizard-portkey, aurora_v5_ptk, carbon-lv, sarah999, portkey-zz |

## Links

- npm: https://www.npmjs.com/package/@portkey/graphql
- Repository: https://github.com/Portkey-Wallet/portkey-web
- Homepage: https://portkey.finance/
- Issues: https://github.com/Portkey-Wallet/portkey-web/issues
- npm.io page: https://npm.io/package/@portkey/graphql

## Dependencies (4)

- [graphql](https://npm.io/package/graphql.md) ^16.6.0
- [@apollo/client](https://npm.io/package/@apollo/client.md) ^3.7.3
- [@portkey/types](https://npm.io/package/@portkey/types.md) ^2.23.0-alpha.15
- [subscriptions-transport-ws](https://npm.io/package/subscriptions-transport-ws.md) ^0.11.0

## Recent versions

- 2.23.0-alpha.15 (latest) — 2026-01-06
- 2.23.0-alpha.13 — 2025-11-19
- 2.22.0-alpha.11 — 2025-11-19
- 2.24.0-alpha.1 — 2025-11-11
- 2.23.0-alpha.12 — 2025-10-22
- 2.22.0-alpha.10 — 2025-10-22
- 2.23.0-alpha.11 — 2025-10-16
- 2.22.0-alpha.9 — 2025-10-16
- 2.23.0-alpha.10 — 2025-10-15
- 2.23.0-alpha.9 — 2025-09-30
- 2.23.0-alpha.8 — 2025-09-29
- 2.23.0-alpha.7 — 2025-09-29
- 2.23.0-alpha.6 — 2025-09-29
- 2.23.0-alpha.5 — 2025-09-25
- 2.23.0-alpha.4 — 2025-09-25
- … 387 more at https://npm.io/package/@portkey/graphql/versions

## README

# `@portkey/graphql`

![ES Version](https://img.shields.io/badge/ES-2020-yellow)
![Node Version](https://img.shields.io/badge/node-14.x-green)
[![NPM Package Version][npm-image-version]][npm-url]

It is already possible to follow [the standard apollo tutorial](https://www.apollographql.com/docs/react/why-apollo) to add [apollo client](https://www.apollographql.com/docs/react) to your application. However, Portkey provides graphql integration packages those simplify the integration and usage.
## Installation

### Using NPM

```bash
npm install @portkey/graphql
```

### Using Yarn

```bash
yarn add @portkey/graphql
```

## Prerequisites

- :gear: [NodeJS](https://nodejs.org/) (LTS/Fermium)
- :toolbox: [Yarn](https://yarnpkg.com/)/[Lerna](https://lerna.js.org/)

## Package.json Scripts

| Script   | Description                                        |
| -------- | -------------------------------------------------- |
| clean    | Uses `rm` to remove `dist/`                        |
| build    | Uses `tsc` to build package and dependent packages |
| lint     | Uses `eslint` to lint package                      |
| lint:fix | Uses `eslint` to check and fix any warnings        |
| format   | Uses `prettier` to format the code                 |
| generate | generate files with the following                  |

## Usage

GraphQL Code Generator is a tool that generates code out of your GraphQL schema. Whether you are developing a frontend or backend, you can utilize GraphQL Code Generator to generate output from your GraphQL Schema and GraphQL Documents (query/mutation/subscription/fragment).

### Command to generate files

you can generate files with the following command:

    yarn generate

### Configuration

GraphQL Code Generator relies on a [configuration file](https://the-guild.dev/graphql/codegen/docs/config-reference/codegen-config) named codegen.config.ts to manage all possible options, input, and output document types.

### Links

For more configuration and functions, see [docs page](https://graphql-code-generator.com/docs/getting-started)

### Online web tool

You can do this online through a web page

[the-guild.dev/graphql/codegen](https://the-guild.dev/graphql/codegen)

[npm-image-version]: https://img.shields.io/npm/v/@portkey/graphql
[npm-url]: https://npmjs.org/package/@portkey/graphql

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