open-index/open-npm huggingface dataset:
npm package: @graphql-reveal/faker
Description: Mock or extend your GraphQL Modules with faked data
Author: forafish
Latest version: 0.0.3

# @graphql-reveal/faker

Mock your future API or extend the existing API with realistic data from [faker.js](https://github.com/Marak/faker.js).

We use `@fake` directive to let you specify how to fake data. And if 60+ fakers is not enough for you, just use `@examples` directive to provide examples. Use `@listLength` directive to specify number of returned array items. Add a directive to any field or custom scalar definition:

```code
type Query {
  employee(id: ID): Employee
  company(id: ID): Company
  companies: [Company!]
}

type Mutation {
  addEmployee(firstName: String!, lastName: String!): Employee!
}

type Company {
  id: ID @fake(type: mobileNumber)
  name: String @fake(type:companyName)
  industry: String @examples(values: ["IT", "Manufacturing", "Medicine", "Media"])
  employees: [Employee!] @listLength(min: 5, max: 10)
}

type Employee {
  id: ID @fake(type: mobileNumber)
  firstName: String @fake(type: firstName, locale:en_CA)
  lastName: String @fake(type: lastName, locale:en_CA)
  address: String @fake(type:streetAddress, options: { useFullAddress: true })
  subordinates: [Employee!] @listLength(min: 0, max: 3)
  company: Company
}
```

To use it in GraphQL Modules, import FakeDirectiveModule from @graphql-reveal/faker and mock the modules for rapid prototyping.

```code
import 'graphql-import-node';
import { GraphQLModule } from '@graphql-modules/core';
import { FakeDirectiveModule } from '@graphql-reveal/faker';
import * as typeDefs from './sample.graphql';

const resolvers = {
  Query: {
    companies(_, __) {
      return [];
    },
    company(_, { id }) {
      return { id };
    },
    employee(_, { id }) {
      return { id };
    }
  },
  Mutation: {
    async addEmployee(_, args) {
      return args;
    },
  },
};

export const SampleModule = new GraphQLModule({
  name: 'samples',
  imports: [FakeDirectiveModule],
  typeDefs,
  resolvers,
});
```
npm package: @graphql-schema-filter/schema-first-approach
Description: GraphQL schema filtering library with schema first approach
Author: Shota Hatada
Latest version: 0.3.0

# @graphql-schema-filter/schema-first-approach

GraphQL schema filtering for schema-first projects. This package provides utilities to load `.graphql` files from disk and apply target-based filtering using `@expose` directives.

## Features

- **File-based schema loading**: Collect `.graphql`/`.gql` files using glob patterns
- **Automatic directive handling**: Strips unknown directives while preserving `@expose` and `@disableAutoExpose`
- **Integration with core**: Uses `@graphql-schema-filter/core` for filtering logic
- **Efficient file loading**: Concurrent file reading with RxJS

## Installation

```bash
npm install @graphql-schema-filter/schema-first-approach graphql
```

## Quick Start

```typescript
import { createSchemaFilter } from "@graphql-schema-filter/schema-first-approach";

// Create a schema filter from file patterns
const schemaFilter = createSchemaFilter({
  patterns: ["src/graphql/**/*.graphql"],
});

// Get filtered schema for a specific target
const filteredSchema = await schemaFilter.getFilteredSchema({
  target: "readonly",
});
```

## API

### `createSchemaFilter(options)`

Creates a schema filter instance that can load and filter GraphQL schemas from files.

**Parameters:**

- `options: SchemaFilterOptions`
  - `patterns: string[]` - Glob patterns to match schema files (e.g., `["src/**/*.graphql"]`)
  - `globOptions?: FastGlobOptions` - Options passed to fast-glob

**Returns:** `SchemaFilter`

### `SchemaFilter`

#### `getSourceAst()`

Returns the parsed AST of all collected schema documents.

```typescript
const result = await schemaFilter.getSourceAst();
if (result.type === "parsed") {
  console.log(result.parsed); // DocumentNode
  console.log(result.raw); // Raw schema string
}
```

#### `getFilteredSchema(options)`

Filters the schema for a specific target.

```typescript
const filteredSchema = await schemaFilter.getFilteredSchema({
  target: "admin",
  logLevel: "info", // optional: "debug" | "info" | "warn" | "none"
});
```

### Exported Types

```typescript
import type { SchemaFilterOptions } from "@graphql-schema-filter/schema-first-approach";
```

## Directives

This package works with the directives defined in `@graphql-schema-filter/core`:

### `@expose(tags: [String!]!)`

Mark fields as exposed to specific targets.

```graphql
directive @expose(
  tags: [String!]!
) repeatable on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
```

### `@disableAutoExpose`

Disable automatic field exposure for a type.

```graphql
directive @disableAutoExpose on OBJECT | INTERFACE
```

## Documentation

For detailed documentation about the `@expose` directive and filtering behavior, please refer to the [@graphql-schema-filter/core](https://www.npmjs.com/package/@graphql-schema-filter/core) package or the [GitHub repository](https://github.com/whatasoda/graphql-schema-filter).

## License

MIT
npm package: @graphql-sse/apollo-client
Description: Apollo Client link for Subscriptions over SSE
Latest version: 0.0.19

# @graphql-sse/apollo-client

A client for GraphQL subscription using Server Sent Events.

## Installation

```shell
npm install @graphql-sse/apollo-client
```

## Usage

### Basic Example

The snippet below is from the [Example React App](htts://github.com/faboulaws/grahql-sse/apps/react-app-example) where you have a full working example App.

```typescript
import { split, HttpLink, ApolloClient, InMemoryCache } from '@apollo/client';
import { getMainDefinition } from '@apollo/client/utilities';
import { ServerSentEventsLink } from '@graphql-sse/apollo-client';

const httpLink = new HttpLink({
  uri: 'http://localhost:4000/graphql',
});

const sseLink = new ServerSentEventsLink({
  graphQlSubscriptionUrl: 'http://localhost:4000/graphql',
});

const splitLink = split(
  ({ query }) => {
    const definition = getMainDefinition(query);
    return (
      definition.kind === 'OperationDefinition' &&
      definition.operation === 'subscription'
    );
  },
  sseLink,
  httpLink
);

export const client = new ApolloClient({
  link: splitLink,
  cache: new InMemoryCache(),
});

```
npm package: @graphql-toolkit/common
Description: Common package containting utils and types for GraphQL Toolkit
Author: Dotan Simha
Latest version: 0.10.7
Deprecated: GraphQL Toolkit is deprecated and merged into GraphQL Tools, so it will no longer get updates. Use GraphQL Tools instead to stay up-to-date! Check out https://www.graphql-tools.com/docs/migration-from-toolkit for migration and https://the-guild.dev/blog/graphql-tools-v6 for new changes.
npm package: @graphql-tools/jest-transform
Description: Jest Plugin to load and parse imported GraphQL files
Latest version: 2.0.1

# GraphQL Jest Transform

A Jest transformer to preprocess GraphQL Documents (operations, fragments and SDL)

    yarn add @graphql-tools/jest-transform

In your `package.json`:

```json
{
  "jest": {
    "transform": {
      "\\.(gql|graphql)$": "@graphql-tools/jest-transform"
    }
  }
}
```

or `jest.config.js`:

```js
module.exports = {
  // ...
  transform: {
    '\\.(gql|graphql)$': '@graphql-tools/jest-transform'
  }
}
```

> How is it different from `jest-transform-graphql`? It doesn't use `graphql-tag/loader` under the
> hood but our own, more optimized and customisable `@graphql-tools/webpack-loader`.

## Options

- noDescription (_default: false_) - removes descriptions
- esModule (_default: false_) - uses import and export statements instead of CommonJS

```json
{
  "globals": {
    "graphql": {
      "noDescription": true
    }
  }
}
```
npm package: @graphql-tools/print-graphql-document-stable
Description: Print a GraphQL document in a stable way.
Latest version: 0.0.0

# `@graphql-tools/print-graphql-document-stable`

A stable way to print a GraphQL document.
All executable/fragment variable definitions, fields are printed in a stable way.
Useful for stuff like persisted GraphQL operations.

## Rules

- Fragments are always printed before executable operations
- Executable operations are sorted alphabetically by name.
- Arguments (Directive, Fields) are sorted alphabetical
- Selections sets are sorted Field, FragmentSpread, InlineFragmentSpread (sorted based on TypeCondition, inner SelectionSet)

## Install

```bash
yarn install @graphql-tools/print-graphql-document-stable
```

## Usage

```ts
import { parse } from 'graphql'
import { printExecutableGraphQLDocument } from '@graphql-tools/print-graphql-document-stable'

const inputDocument = parse(/* GraphQL */ `
  query A {
    ... on Query {
      a {
        ...B
        b
      }
    }
    ... on Query {
      a {
        ...B
        a
      }
    }
  }

  fragment B on Query {
    c
  }
`)
const outputStr = printExecutableGraphQLDocument(inputDocument)
console.assert(
  outputStr === 'fragment B on Query { c } query A { ... on Query { a { a ...B } } ... on Query { a { b ...B } } }',
  'Stuff is not equal.'
)
```
npm package: @graphql-tools/prisma-loader
Description: A set of utils for faster development of GraphQL tools
Author: Dotan Simha
Latest version: 9.0.1

This package was intended to be used with an older versions of Prisma. The newer versions of Prisma
has a different approach to GraphQL integration. Therefore, this package is no longer needed and has
been deprecated and removed. Learn more: https://www.prisma.io/graphql
npm package: @graphql-tools/relay-operation-optimizer
Description: Package for optimizing your GraphQL operations relay style.
Author: Laurin Quast
Latest version: 7.1.3

Check API Reference for more information about this package;
https://www.graphql-tools.com/docs/api/modules/relay_operation_optimizer_src

You can also learn more about Relay Operation Optimizer in this chapter;
https://www.graphql-tools.com/docs/relay-operation-optimizer
npm package: @graphql-tools/resolvers-composition
Description: Common package containing utils and types for GraphQL tools
Author: Dotan Simha
Latest version: 7.0.30

Check API Reference for more information about this package;
https://www.graphql-tools.com/docs/api/modules/resolvers_composition_src

You can also learn more about Resolvers Composition in this chapter;
https://www.graphql-tools.com/docs/resolvers-composition
npm package: @graphql-yoga/apollo-managed-federation
Description: This plugin integrates Apollo Managed Federation into Yoga.
Author: Valentin Cocaud
Latest version: 0.20.0

## `@graphql-yoga/apollo-managed-federation`

This plugin integrates Apollo Managed Federation into Yoga.

## Installation

First install required dependencies:

```
yarn add graphql-yoga @graphql-yoga/apollo-managed-federation
```

You will also need and API key and the graph ref you want to deploy.

[Please follow this instructions if you don't know where to find this values.](https://www.apollographql.com/docs/federation/v1/managed-federation/setup/#4-connect-the-gateway-to-studio)

## Usage Example

```ts
import { createServer } from 'node:http'
import { createYoga } from 'graphql-yoga'
import { useManagedFederation } from '@graphql-yoga/apollo-managed-federation'

const yoga = createYoga({
  plugins: [useManagedFederation()]
})

const server = createServer(yoga)

server.listen(4000, () => {
  console.log('Server is running on http://localhost:4000')
})

process.on('SIGINT', () => {
  server.close()
})
```

You can then start the gateway, don't forget to provide your API key and graph ref. You can also
provide this values programmatically in plugin options.

```bash
APOLLO_KEY='<YOUR_GRAPH_API_KEY>' APOLLO_GRAPH_REF='<YOUR_GRAPH_ID>@<VARIANT>' node index.mjs
```
npm package: @graphql-yoga/nestjs
Description: GraphQL Yoga driver for NestJS GraphQL.
Author: Denis Badurina
Latest version: 3.22.0

<div align="center">
  <br />

  <h3>
    <a href="https://the-guild.dev/graphql/yoga-server">GraphQL Yoga</a> plugin for <a href="https://nestjs.com">NestJS</a>
  </h3>

  <h6>Fully-featured GraphQL server as a plugin for the progressive Node.js framework.</h6>

<p>
Check out <a href="https://the-guild.dev/graphql/yoga-server/docs/integrations/integration-with-nestjs">Yoga's documentation about NestJS integration</a>!
</p>

  <br />
</div>

## Getting started

### Install

```shell
npm i @nestjs/graphql graphql-yoga graphql @graphql-yoga/nestjs
```

### Create application module

```typescript
import { YogaDriver, YogaDriverConfig } from '@graphql-yoga/nestjs'
import { Module } from '@nestjs/common'
import { GraphQLModule } from '@nestjs/graphql'

@Module({
  imports: [
    GraphQLModule.forRoot<YogaDriverConfig>({
      driver: YogaDriver
    })
  ]
})
export class AppModule {}
```

### Develop GraphQL

This is just a HTTP transport driver; meaning, everything else should work as
[showcased in NestJS documentation](https://docs.nestjs.com/graphql/resolvers).

### Apollo Federation

Separately, we offer a [`@graphql-yoga/nestjs-federation` driver](/packages/nestjs-federation) which
allows building Apollo Federation Gateways and Services. Check it out!

## Contributing

If this is your first time contributing to this project, please do read our
[Contributor Workflow Guide](https://github.com/the-guild-org/Stack/blob/master/CONTRIBUTING.md)
before you get started off.

Feel free to open issues, pull requests and create discussions. Community support is always welcome!

## Code of Conduct

Help us keep Yoga open and inclusive. Please read and follow our
[Code of Conduct](https://github.com/the-guild-org/Stack/blob/master/CODE_OF_CONDUCT.md) as adopted
from [Contributor Covenant](https://www.contributor-covenant.org/).
npm package: @graphql-yoga/nestjs-federation
Description: GraphQL Yoga driver with Apollo Federation for NestJS GraphQL.
Author: Denis Badurina
Latest version: 3.22.0

<div align="center">
  <br />

  <h3>
    <a href="https://the-guild.dev/graphql/yoga-server">GraphQL Yoga</a> plugin with Apollo Federation for <a href="https://nestjs.com">NestJS</a>
  </h3>

  <h6>Fully-featured GraphQL server as a plugin for the progressive Node.js framework.</h6>

<p>
Check out <a href="https://the-guild.dev/graphql/yoga-server/docs/integrations/integration-with-nestjs">Yoga's documentation about NestJS integration</a>!
</p>

  <br />
</div>

## Getting started

### Install

```shell
npm i @nestjs/graphql graphql-yoga graphql @graphql-yoga/nestjs-federation
```

### Create application module

```typescript
import { YogaFederationDriver, YogaFederationDriverConfig } from '@graphql-yoga/nestjs-federation'
import { Module } from '@nestjs/common'
import { GraphQLModule } from '@nestjs/graphql'

@Module({
  imports: [
    GraphQLModule.forRoot<YogaFederationDriverConfig>({
      driver: YogaFederationDriver,
      typePaths: ['**/*.graphql']
    })
  ]
})
export class AppModule {}
```

### Develop GraphQL

This is just a federation and gateway driver; meaning, everything else should work as
[showcased in NestJS federation documentation](https://docs.nestjs.com/graphql/federation).

## Contributing

If this is your first time contributing to this project, please do read our
[Contributor Workflow Guide](https://github.com/the-guild-org/Stack/blob/master/CONTRIBUTING.md)
before you get started off.

Feel free to open issues, pull requests and create discussions. Community support is always welcome!

## Code of Conduct

Help us keep Yoga open and inclusive. Please read and follow our
[Code of Conduct](https://github.com/the-guild-org/Stack/blob/master/CODE_OF_CONDUCT.md) as adopted
from [Contributor Covenant](https://www.contributor-covenant.org/).
npm package: @graphqland/http-graphql-playground
Description: HTTP request for graphql-playground with standard Request and Response
Latest version: 1.0.0-beta.1

# http-graphql-playground

[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno)](https://deno.land/x/http_graphql_playground)
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/http_graphql_playground/mod.ts)
![npm](https://img.shields.io/npm/v/@graphqland/http-graphql-playground)
![GitHub](https://img.shields.io/github/license/graphqland/http-graphql-playground)

HTTP request for `graphql-playground` with standard `Request` and `Response`

## Usage

- `createHandler` - Create HTTP request handler for `graphql-playground`.
- `validateRequest` - Validate the request is valid GraphQL playground request
  or not.

```ts
import { createHandler } from "https://deno.land/x/http_graphql_playground@$VERSION/mod.ts";
import { serve } from "https://deno.land/std@$VERSION/http/mod.ts";

const handler = createHandler({
  endpoint: "/graphql",
});
await serve(handler);
```

## Spec

The response includes the following response status codes and headers:

| Code  |   Content    | Headers                |
| :---: | :----------: | ---------------------- |
| `200` | `text/html`  | `content-type`, `vary` |
| `405` |      -       | `allow`                |
| `406` | `text/plain` | `content-type`, `vary` |

## License

Copyright © 2022-present [graphqland](https://github.com/graphqland).

Released under the [MIT](./LICENSE) license
npm package: @graphscope/claude-code-router-helper
Description: Default configuration for claude-code-router with DashScope support
Author: DashScope
Latest version: 0.1.3

# @graphscope/claude-code-router-helper

为 claude-code-router 提供 DashScope 默认配置的 Node.js 包。

## 安装

```bash
# 1. 安装 claude-code
npm install -g @anthropic-ai/claude-code

# 2. 安装 claude-code-router
npm install -g @musistudio/claude-code-router

# 3. 安装 DashScope 配置包
npm install -g @graphscope/claude-code-router-helper
```

安装后会请运行配置脚本

```bash
ccr-qwen
```

## 配置

默认配置文件目录为：`~/.claude-code-router/`。

- 主配置文件路径：`~/.claude-code-router/config.json`
- 插件目录路径：`~/.claude-code-router/plugins/`

运行 `ccr-qwen` 后会自动生成上述目录和文件。

### API Key 配置

**方式 1: 环境变量（推荐）**

```bash
export DASHSCOPE_API_KEY="your-api-key-here"
```

**方式 2: 手动修改配置文件**
编辑 `~/.claude-code-router/config.json`，替换 `"api_key"` 字段。

## 使用

配置完成后，运行：

```bash
ccr code
```

## 许可证

MIT
npm package: @graphscope/duckdb-admin
Description: A web-based tool for querying CSV files using DuckDB
Latest version: 1.0.0

# DuckDB CSV 查询工具

一个基于 DuckDB-WASM 构建的强大浏览器端 CSV 数据查询工具。该工具允许您直接在浏览器中使用 SQL 管理和查询 CSV 数据集，无需服务器支持。

## ✨ 功能特点

- 📊 上传和管理多个 CSV 数据集
- 🔍 使用标准 SQL 查询数据
- 💾 浏览器端持久化存储
- 📤 导出结果为 CSV、JSON 或 TSV 格式
- 🚀 完全在浏览器中运行
- 🔒 注重隐私：所有数据都保存在浏览器中

## 🚀 快速开始

```bash
npm run dev
```

访问 `http://localhost:3000` 开始使用应用。

## 🛠️ 技术栈

- **DuckDB-WASM** - 在浏览器中运行的 SQL 数据库
- **React** - 用户界面框架
- **Ant Design** - UI 组件库
- **IndexedDB** - 用于持久化存储数据
- **Web Workers** - 用于在后台处理数据

### SQL 示例

以下是一些实用的 SQL 查询示例：

```sql
-- 带限制的基本查询
SELECT * FROM "my_dataset" LIMIT 100;

-- 数据筛选
SELECT * FROM "my_dataset" WHERE column_name > 100;

-- 分组聚合
SELECT category, COUNT(*) as count, AVG(value) as average
FROM "my_dataset"
GROUP BY category
ORDER BY count DESC;

-- 多数据集连接
SELECT a.*, b.additional_column
FROM "dataset_a" a
JOIN "dataset_b" b ON a.id = b.id;
```

## 🔒 数据安全与隐私

- 所有数据都存储在本地浏览器中
- 不会上传数据到任何服务器
- 数据持久化由浏览器的 IndexedDB 处理
- 清除浏览器数据会导致存储的数据集丢失

## 🙏 致谢

- [DuckDB](https://duckdb.org/) - 让这一切成为可能的优秀 SQL 数据库
- [React](https://reactjs.org/) - 用户界面框架
- [Ant Design](https://ant.design/) - UI 组件库
npm package: @graphshieldhq/cache
Description: An opinionated cache management module
Author: Guillaume Meyer
Latest version: 0.0.4

[![Versioning](https://img.shields.io/badge/semver-2.0.0-informational?logo=semver)](https://semver.org)
[![Twitter Follow](https://img.shields.io/twitter/follow/graphshield?style=social)](https://twitter.com/intent/follow?screen_name=graphshield)

# Cache Module

An opinionated cache management module that works bith in-memory and with [Redis](https://redis.io/).

## 💡 Features


## 🚀 Get Started

### Installation
```sh
npm install --save @graphshieldhq/cache
```

### Initialization
```js
import cache from '@graphshieldhq/cache'
cache.init({
    cache_driver = 'in-memory',
    redis_host = 'localhost',
    redis_port = 6379,
    redis_database_index = 0,
    redis_tls = false,
    redis_password = '',
    redis_reconnect_attempts = 0,
    redis_reconnect_delay = 1000,
    cache_keys_prefix = 'cache:',
    logging = console.log
})
```

The initialization options must be an object with properties as specified in the [options schema](./schemas/options.schema.json).

### Usage
```js
// Set data
const setResult = await cache.set({
    key: 'test',
    value: 'test',
    ttl: 1000 // In milliseconds
})
console.log(setResult) // Is `true` if successful
// Get data
const value = await cache.get({ key: 'test' })
console.log(value)
```

## Additional resources
- [👮 Code of conduct](CODE_OF_CONDUCT.md)
- [✍️ Contributing Guide](CONTRIBUTING.md)
- [🔐 Security policy](SECURITY.md)
- [©️ License](LICENSE)
npm package: @graphshieldhq/webhooks
Description: An opinionated webhooks module.
Author: Guillaume Meyer
Latest version: 0.0.4

[![Versioning](https://img.shields.io/badge/semver-2.0.0-informational?logo=semver)](https://semver.org)
[![Twitter Follow](https://img.shields.io/twitter/follow/graphshield?style=social)](https://twitter.com/intent/follow?screen_name=graphshield)

# Webhooks Module

An opinionated webhooks module.

The webhooks module manages the whole process of sending a request to a distant server.

More specifically, it provides configurable safe defaults to handle:
- Various HTTP methods / content types
- Timeout
- Retry
- Payload signature / validation
- Asynchronous events


## 💡 Features

## 🚀 Get Started

### Installation
```sh
npm install --save @graphshieldhq/webhooks
```

### Initialization
```js
import Webhooks from '@graphshieldhq/webhooks'
const webhook = new Webhooks({
  user_agent: 'Webhooks',
  headers_extension_key: 'webhooks',
  retry_interval: 100,
  max_retry: 3,
  timeout: 5000,
  logging: console.log,
})
webhook.on('success', (result) => {
  console.debug(result)
})
webhook.send({
  event: 'test',
  url: 'http://fake.com/webhooks',
  data: {
    test: 'test'
  },
  secret: 'test'
})
```

The initialization options must be an object with properties as specified in the [options schema](./schemas/options.schema.json).

## Additional resources
- [👮 Code of conduct](CODE_OF_CONDUCT.md)
- [✍️ Contributing Guide](CONTRIBUTING.md)
- [🔐 Security policy](SECURITY.md)
- [©️ License](LICENSE)