open-index/open-npm huggingface dataset:
npm package: @o7/vite-plugin-gql
Description: <p align="center">   <img src="https://i.postimg.cc/T1Wk3khh/logo.png" width="112" alt="o7 Logo" /> </p>
Latest version: 0.2.1

<p align="center">
  <img src="https://i.postimg.cc/T1Wk3khh/logo.png" width="112" alt="o7 Logo" />
</p>

<h1 align="center">@o7/vite-plugin-gql</h1>

<p align="center">Lightest-weight type-safe GraphQL queries</p>
<br />

## Usage

<!-- prettier-ignore -->
```ts
// vite.config.js
import { defineConfig } from 'vite';
import gqlPlugin from '@o7/vite-plugin-gql';

export default defineConfig({
  plugins: [
    gqlPlugin({
      url: 'https://example.com/graphql', // Your endpoint
      headers: {
        'Public-Token': 'abc123',
      },
      outFile: 'src/gql.d.ts',
    }),
  ],
});

// src/index.ts
import gql from '$gql';
const data = await gql(/* GraphQL */ `
  query {
    object {
      id
      name
    }
  }
`);
// ^ Automatically inferred as { object: { id: string, name: string } }

// Advanced usage:
const data = await gql(/* GraphQL */ `
  query {
    object {
      id
      name
    }
  }
`).with({
	url: 
	headers: {
		Authorization: 'abc123'
	}
});
```

## Changelog

### 0.2.1

- Make `outFile` optional when `automaticallyGenerateTypes` is false

### 0.2.0

- Add `automaticallyGenerateTypes` options
- Add `gql-typegen` bin to manually generate types
- Fix typegen not working in files with typescript-only syntax

### 0.1.3

- Add `.with()` to set per-query overrides

### 0.1.2

- support aliased fields

### 0.1.0

- Added a file watcher to automatically regenerate types, even before vite transforms the file
- BREAKING: Doesn't throw GQL "errors" anymore, instead returns them

### 0.0.4

- removed default Decimal scalar

### 0.0.3

- removed default overload to fix typescript issues

### 0.0.2

- Fix input object handling
- Handle nullable types properly

### 0.0.1

- Initial release
npm package: @o_angelica_o/learnstorybook-design-system-template
Description: Storybook design systems tutorial
Author: Angelica
Latest version: 0.1.1

# Storybook design system tutorial

The Storybook design system tutorial is a subset of the full [Storybook design system](https://github.com/storybookjs/design-system/), created as a learning resource for those interested in learning how to write and publish a design system using best in practice techniques.

Learn more in [Storybook tutorials](https://storybook.js.org/tutorials/).