open-index/open-npm huggingface dataset:
npm package: @graphitation/graphql-codegen-typescript-operations
Description: Based on GraphQL codegen typescript operations [plugin](https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-operations). It adds a possibility to export all used types and enums.
Latest version: 1.9.0

# graphql-codegen-typescript-operations

Based on GraphQL codegen typescript operations [plugin](https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-operations).
It adds a possibility to export all used types and enums.
npm package: @graphitation/graphql-eslint-rules
Description: This package contains the following eslint rules:
Latest version: 0.13.0

# GraphQL eslint rules

This package contains the following eslint rules:

- missing-apollo-key-fields: Enforce selecting key fields when they are available on a GraphQL object type
- operation-naming-conventions: Enforce descriptive operation names based on the package they reside in
- fragment-naming-conventions: Enforce descriptive fragment names based on the package they reside in
npm package: @graphitation/ts-codegen
Description: This package generates Typescript definitions based on GraphQL Schema Definition Language.
Latest version: 5.5.1

# @graphitation/ts-codegen

This package generates Typescript definitions based on GraphQL Schema Definition Language.

## Parameters

- `document` (DocumentNode): The GraphQL document consisting the schema definitions to generate TypeScript code from.
- `options` (GenerateTSOptions): An object containing various options for the code generation.

### Options

Below is the list of all flags that can be passed to the code generator (see [codegen.ts](./src/codegen.ts)).

```typescript
export interface GenerateTSOptions {
  outputPath: string;
  documentPath: string;
  contextTypePath?: string | null;
  contextTypeName?: string;
  enumsImport?: string | null;
  legacyCompat?: boolean;
  useStringUnionsInsteadOfEnums?: boolean;
  legacyNoModelsForObjects?: boolean;
  modelScope?: string | null;
  generateOnlyEnums?: boolean;
  enumNamesToMigrate?: string[];
  enumNamesToKeep?: string[];
  contextSubTypeNameTemplate?: string;
  contextSubTypePathTemplate?: string;
  defaultContextSubTypePath?: string;
  defaultContextSubTypeName?: string;
  /**
   * Enable the generation of the resolver map as the default export in the resolvers file.
   *
   * @see createResolversMap in packages/ts-codegen/src/resolvers.ts
   *
   * @example
   * export default interface ResolversMap {
   *    readonly User?: User.Resolvers;
   *    readonly Post?: Post.Resolvers;
   *    readonly Query?: Query.Resolvers;
   *   }
   * */
  generateResolverMap?: boolean;
}
```
npm package: @graphitation/ts-transform-graphql-js-tag
Description: TS transform to convert all instances of "@graphitation/graphql-js-tag" or another graphql tag library to parsed document definitions.
Latest version: 1.6.0

# ts-transform-graphql-js-tag

TS transform to convert all instances of "@graphitation/graphql-js-tag" or another graphql tag library to parsed document definitions.

This is inspired by [ts-transform-graphql-tag](https://github.com/firede/ts-transform-graphql-tag) library, but modified
to fit our use case better and support transformers.

It differs from many transformers in that it doesn't use underlying tag library at all. Instead it uses graphql-js to parse
definitions and output documents.

## Usage

### with `ts-loader`

In the webpack.config.js file in the section where ts-loader is configured as a loader:

```js
// 1. import `getTransformer` from the module
import { getTransformer } = from "@graphitation/ts-transform-graphql-js-tag"

// 2. create a transformer and add getCustomTransformer method to the loader config
var config = {
  // ...
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        loader: "ts-loader",
        options: {
          // ... other loader's options
          getCustomTransformers: () => ({ before: [getTransformer({})] }),
        },
      },
    ],
  },
  // ...
};
```

### Options

- `graphqlTagModule?: string;` - which graphql tag module you are using. Default: `@graphitation/ts-transform-graphql-js-tag`
- `graphqlTagModuleExport?: "default" | string;` - what export from that module is graphql template tag. Default: `gql`.
- `transformer?: (node: FragmentDefinitionNode | OperationDefinitionNode) => unknown` - optional transformer to apply to graphql definitions before
  emitting them. Note that result should be emittable by TypeScript, so it should be a plain object.
npm package: @graphiteds/react
Description: React specific wrapper for the components of the Graphite Design System
Latest version: 1.9.28

# @graphiteds/react

These are React specific building blocks on top of [@graphiteds/core](../core/README.md) components.

Tested on:

- [create-react-app](https://github.com/facebook/create-react-app)

## Browser Support

We support only [modern browsers](https://browserslist.dev/?q=PiAxJSwgbGFzdCAyIHZlcnNpb25zLCBub3QgZGVhZCwgbm90IGllIDEx).

```bash
npx browserslist "> 1%, last 2 versions, not dead, not ie 11"
```

So it doesn't run on legacy browsers: IE11, Edge 18 & below (Edge before it moved to Chromium), and Safari 10.

The advantage of this is we have less runtime within our builds, and having faster production builds by not having to also downlevel to es5. Plus you don't need any polyfills.

## Using these components

Add this package to your project:

```sh
npm install @graphiteds/react
```

In your index.js add the following code:

```js
// Core CSS required for Graphite components to work properly
import "@graphiteds/react/css/core.css";
```

Import the component(s) you want to use:

```js
import { GrButton } from "@graphiteds/react";
```

Use it in your JSX as any React component:

```html
<GrButton href="https://paqt.com">PAQT</GrButton>
```

A working example of this setup: https://codesandbox.io/s/graphiteds-react-example-yhr9p.

## Development

Follow the [instructions in the root of this repo](../../README.md).

### Test apps

In `packages/react/test-apps/react-app` there is a test app.

In order to run it:

- Make sure you've run `npm run bootstrap` & `npm run build` in the root of this repo
- Navigate to the test app with `cd packages/react/test-apps/react-app`
- Run `npm install`
- Run `npm run sync` (this copies the relevant core & react dist files to the node_modules of the test-app)
- Run the project with `npm start`
npm package: @graphity-extensions/jwt
Description: Graphity JWT extension
Author: Changwan Jun
Latest version: 0.6.0-alpha.2

# Graphity Extensions - JWT

[![Downloads](https://img.shields.io/npm/dt/@graphity-extensions/jwt.svg)](https://npmcharts.com/compare/@graphity-extensions/jwt?minimal=true)
[![Version](https://img.shields.io/npm/v/@graphity-extensions/jwt.svg)](https://www.npmjs.com/package/@graphity-extensions/jwt)
[![License](https://img.shields.io/npm/l/@graphity-extensions/jwt.svg)](https://www.npmjs.com/package/@graphity-extensions/jwt)
![Typescript](https://img.shields.io/badge/language-Typescript-007acc.svg?style=flat-square)

## How to use

### Installation

```bash
npm install @graphity-extensions/jwt --save
```
npm package: @graphity/mapper
Description: Decorator-based transformer of plain object to class constructors for Javascript(& Typescript).
Author: Cris
Latest version: 0.0.2

# Graphity - Mapper

[![Downloads](https://img.shields.io/npm/dt/relater.svg)](https://npmcharts.com/compare/relater?minimal=true)
[![Version](https://img.shields.io/npm/v/relater.svg)](https://www.npmjs.com/package/relater)
[![License](https://img.shields.io/npm/l/relater.svg)](https://www.npmjs.com/package/relater)

[![NPM](https://nodei.co/npm/relater.png)](https://www.npmjs.com/package/relater)

Decorator-based transformer of plain object to class constructors for Javascript(& Typescript).

## Installation

```bash
npm i @graphity/mapper
```

## License

MIT
npm package: @graphity/schema
Description: GraphQL Decorator utility.
Author: Changwan Jun
Latest version: 0.9.2

# Graphity - Schema

<a href="https://npmcharts.com/compare/@graphity/schema?minimal=true"><img alt="Downloads" src="https://img.shields.io/npm/dt/@graphity/schema.svg?style=flat-square" /></a>
<a href="https://www.npmjs.com/package/@graphity/schema"><img alt="Version" src="https://img.shields.io/npm/v/@graphity/schema.svg?style=flat-square" /></a>
<img alt="License" src="https://img.shields.io/npm/l/@graphity/schema.svg?style=flat-square" />
<img alt="Typescript" src="https://img.shields.io/badge/language-Typescript-007acc.svg?style=flat-square" />
<br />
<a href="https://david-dm.org/wan2land/graphity?path=packages/graphity-schema"><img alt="dependencies Status" src="https://img.shields.io/david/wan2land/graphity.svg?style=flat-square&path=packages/graphity-schema" /></a>

## Installation

```bash
npm install @graphity/schema --save
```
npm package: @graphity/server-lambda
Description: Super slim depdency injection container with Async/Promise for Javascript(& Typescript).
Author: Changwan Jun
Latest version: 0.9.2

# Graphity - Server Lambda

<a href="https://npmcharts.com/compare/@graphity/server-lambda?minimal=true"><img alt="Downloads" src="https://img.shields.io/npm/dt/@graphity/server-lambda.svg?style=flat-square" /></a>
<a href="https://www.npmjs.com/package/@graphity/server-lambda"><img alt="Version" src="https://img.shields.io/npm/v/@graphity/server-lambda.svg?style=flat-square" /></a>
<img alt="License" src="https://img.shields.io/npm/l/@graphity/server-lambda.svg?style=flat-square" />
<img alt="Typescript" src="https://img.shields.io/badge/language-Typescript-007acc.svg?style=flat-square" />
<br />
<a href="https://david-dm.org/wan2land/graphity?path=packages/graphity-server-lambda"><img alt="dependencies Status" src="https://img.shields.io/david/wan2land/graphity.svg?style=flat-square&path=packages/graphity-server-lambda" /></a>

## Installation

```bash
npm install @graphity/server-lambda --save
```

```typescript
import { APIGatewayProxyHandler } from 'aws-lambda'

import { Graphity } from 'graphity'
import { ServerLambda } from '@graphity/server-lambda'

const graphity = new Graphity({
  resolvers: [
    HomeResolver,
    /* ... */
  ],
})

graphity.register(new AuthProvider())
graphity.register(new AwsProvider())
graphity.register(new TypeormProvider())

const server = new ServerLambda(graphity) // without boot

export const handler: APIGatewayProxyHandler = (event, ctx, callback) => server.execute(event, ctx, callback)
```


## Options

```typescript
interface ServerLambdaOptions {
  callbackWaitsForEmptyEventLoop?: boolean
  cors?: {
    origin?: boolean | string | string[],
    methods?: string | string[],
    allowedHeaders?: string | string[],
    exposedHeaders?: string | string[],
    credentials?: boolean,
    maxAge?: number,
  }
}
```

**CORS**

To use CORS, simply set the following options.

```typescript
const server = new ServerLambda(graphity, {
  cors: {
    origin: '*',
    credentials: true,
  },
})
```

**callbackWaitsForEmptyEventLoop**

When using a persistent connection such as a database, there may be no response. In this case, you can do the following:

```typescript
const server = new ServerLambda(graphity, {
  callbackWaitsForEmptyEventLoop: false,
})
```

For more information, see [AWS Lambda Context Object in Node.js](https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html).
npm package: @graphix/deep-equal
Description: Compare javascript objects ({}) DEEPLY (recursively). It also compares other types regularly.
Author: S. M. Mir-Ismaili
Latest version: 0.0.2

# Deep-Equal

> **Compare javascript objects (`{}`) DEEPLY (recursively). It also compares other types regularly.**

[![npm (scoped)](https://img.shields.io/npm/v/@graphix/deep-equal.svg)](https://npmjs.com/package/@graphix/deep-equal)
[![install size](https://packagephobia.now.sh/badge?p=@graphix/deep-equal)](https://packagephobia.now.sh/result?p=@graphix/deep-equal)
[![downloads](https://img.shields.io/npm/dt/@graphix/deep-equal.svg)](https://npmjs.com/package/@graphix/deep-equal) <br>
[![dependencies](https://david-dm.org/Rahazad/deep-equal.js.svg)](https://david-dm.org/Rahazad/deep-equal.js)
[![devDependencies](https://david-dm.org/Rahazad/deep-equal.js/dev-status.svg)](https://david-dm.org/Rahazad/deep-equal.js?type=dev) <br>
[![license](https://img.shields.io/github/license/Rahazad/deep-equal.js.svg)](https://github.com/Rahazad/deep-equal.js/blob/master/LICENSE)
[![Forks](https://img.shields.io/github/forks/Rahazad/deep-equal.js.svg?style=social)](https://github.com/Rahazad/deep-equal.js/fork)
[![Stars](https://img.shields.io/github/stars/Rahazad/deep-equal.js.svg?style=social)](https://github.com/Rahazad/deep-equal.js)

## Installation

```bash
npm i @graphix/deep-equal
```

or using `yarn`:

```bash
yarn add @graphix/deep-equal
```

## Usage

Coming ...

## License

MIT © [Mir-Ismaili](https://github.com/mirismaili)