# @sailrs/stitch

> General graphql stitching for sailrs apps

Latest version **0.1.0** (published 2023-10-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install @sailrs/stitch
pnpm add @sailrs/stitch
yarn add @sailrs/stitch
bun add @sailrs/stitch
```

Provides the command `stitch`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2023-10-12 |
| First published | 2023-10-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Unpacked size | 32.9 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | Edward Teach |
| Maintainers | sailrs-io |

## Links

- npm: https://www.npmjs.com/package/@sailrs/stitch
- npm.io page: https://npm.io/package/@sailrs/stitch

## Dependencies (9)

- [graphql](https://npm.io/package/graphql.md) 16.0.0
- [winston](https://npm.io/package/winston.md) ^3.10.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.8
- [bun-types](https://npm.io/package/bun-types.md) ^1.0.3
- [graphql-jit](https://npm.io/package/graphql-jit.md) ^0.8.4
- [@graphql-tools/wrap](https://npm.io/package/@graphql-tools/wrap.md) ^10.0.1
- [@graphql-tools/utils](https://npm.io/package/@graphql-tools/utils.md) ^10.0.6
- [@graphql-tools/stitch](https://npm.io/package/@graphql-tools/stitch.md) ^9.0.3
- [@graphql-tools/delegate](https://npm.io/package/@graphql-tools/delegate.md) ^10.0.3

## Recent versions

- 0.1.0 (latest) — 2023-10-12

## README

# Simple Bun based graphql stitching

A general solution for stitching together multiple graphql endpoints into one

## What is graphql stitching

GraphQL stitching is a way to combine multiple GraphQL APIs into a single API. It is useful when you have multiple services that each expose a GraphQL API, and you want to combine them into a single API.

## Prerequisites

This project was based on [Bun](https://bun.sh) to ensure it's function install bun fist by

```sh
curl -fsSL https://bun.sh/install | bash # for macOS, Linux, and WSL
```

## How to use this

To use this you have to create a stitchingconfiguration and run the following

```sh
bun add @sailrs/stitch
bunx --bun stitch --config=./stitchify.config.ts
```

## How to add a graphql endpoint

This graphql server has to know several things about the graphql api you want to stitch on.
All this information belongs to the [subgraphs.ts](./src/subgraphs.ts)

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