# @sgrove/graphiql-with-extensions

> This is a meta-package meant to bring together the most popular GraphiQL plugins and make them easy to flip on and off.

Latest version **0.14.4-3** (published 2020-01-21) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install @sgrove/graphiql-with-extensions
pnpm add @sgrove/graphiql-with-extensions
yarn add @sgrove/graphiql-with-extensions
bun add @sgrove/graphiql-with-extensions
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.14.4-3 |
| Published | 2020-01-21 |
| First published | 2019-09-04 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 26 |
| Maintainers | sgrove |

## Links

- npm: https://www.npmjs.com/package/@sgrove/graphiql-with-extensions
- Repository: https://github.com/onegraph/graphiql-with-extensions
- Issues: https://github.com/onegraph/graphiql-with-extensions/issues
- npm.io page: https://npm.io/package/@sgrove/graphiql-with-extensions

## Dependencies (3)

- [graphql](https://npm.io/package/graphql.md) ^14.5.4
- [graphiql](https://npm.io/package/graphiql.md) ^0.14.2
- [graphiql-explorer](https://npm.io/package/graphiql-explorer.md) ^0.5.0

## Recent versions

- 0.14.4-3 (latest) — 2020-01-21
- 0.14.4-2 — 2020-01-21
- 0.14.4 — 2020-01-21
- 0.0.4 — 2019-09-04
- 0.0.3 — 2019-09-04
- 0.0.2 — 2019-09-04
- 0.0.1 — 2019-09-04

## README

# GraphiQL with extensions

This is a meta-package meant to bring together the most popular GraphiQL plugins and make them easy to flip on and off.

The original GraphiQL package is consumable as a single React component, even without JSX. This makes it very easy to embed just about anywhere you can put JavaScript that might not have a full modern build pipeline (e.g. Rails with a sprockets setup).

Usage is easy:

```
npm install --save graphiql-with-extensions
# or
yarn add graphiql-with-extensions
```

```javascript
import React from 'react';
import ReactDOM from 'react-dom';
import GraphiQL from 'graphiql-with-extensions';
import fetch from 'isomorphic-fetch';

function graphQLFetcher(graphQLParams) {
  return fetch(window.location.origin + '/graphql', {
    method: 'post',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(graphQLParams),
  }).then(response => response.json());
}

ReactDOM.render(
  <GraphiQL
    fetcher={graphQLFetcher}
    // Some optional props
    // defaultQuery={''}
    // disableExplorer={false}
  />,
  document.body,
);
```

# Included extensions

Rigth now we only include the latest version of OneGraph's GraphiQL Explorer plugin. Please open an issue if you'd like to see other plugins included.

## License

graphiql-with-extensions is licensed under the [MIT License](http://opensource.org/licenses/MIT).<br>
graphiql is licensed under the [MIT License](http://opensource.org/licenses/MIT).<br>
Documentation is licensed under [Creative Common License](http://creativecommons.org/licenses/by/4.0/).<br>

# graphiql-with-extensions

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