open-index/open-npm huggingface dataset:
npm package: @focus-reactive/graphql-content-layer
Description: [![npm version](https://badge.fury.io/js/%40focus-reactive%2Fgraphql-content-layer.svg)](https://badge.fury.io/js/%40focus-reactive%2Fgraphql-content-layer) # GitNation GraphQL Content Layer
Author: Oleg Proskurin
Latest version: 3.2.11

[![npm version](https://badge.fury.io/js/%40focus-reactive%2Fgraphql-content-layer.svg)](https://badge.fury.io/js/%40focus-reactive%2Fgraphql-content-layer)
# GitNation GraphQL Content Layer

package for fetching conference content from GraphCMS

it's published on NPM as

`@focus-reactive/graphql-content-layer`

This package is intended for:

1. Fetching data from GraphCMS, process and building content layer
2. Generate Storybook with output of:
   1. GraphCMS queries (CMS Layer)
   2. Processed content (Content Layer)


## API and Configuring

1. GraphCMS connection should be configured via env variables: `CMS_ENDPOINT` and `CMS_TOKEN`

2. The package exposes `getContent` async function for generating content layer

Usage:

```js
const { getContent } = require('@focus-reactive/graphql-content-layer');

const content = await getContent(conferenceSettings);

```

see [conferenceSettings](#conferencesettings) for details

3. The package generates Storybook with CMS and Content layers

to use it:

```js
// story.js

const {
  passConferenceSettings,
} = require('@focus-reactive/graphql-content-layer/dist/content.stories');

passConferenceSettings(conferenceSettings);
```


### conferenceSettings

Pass `conferenceSettings` with conference specific ("hardcoded") data

I should contain:

`tagColors` - colors settings for "tech" badges, tags, labels

 ```js
speakerAvatar = {
  dimensions: {
    avatarWidth: 500,
    avatarHeight: 500,
  }
}
 ```
 - image transformation settings for speakers/trainers/mcs and so on avatars

## Develop

`yarn dev` to start watching and compiling the code

`yarn storybook` to launch Storybook

`yarn tdd` - Jest tests in watching mode

`yarn start` - starts dev, storybook and tests (each in independent watch mode)

`yarn update-schema` for updating GraphQL introspection schema

For publishing to NPM:

```shell
npm publish
```

it will transpile the code and publish the package
npm package: @focus-reactive/sanity-ai-toolkit
Description: An easy way to enchance your Sanity studio with ready for use GPT functions. Localization, summarization, tags and more !
Author: Alex Hramovich
Latest version: 0.0.3

# @focus-reactive/sanity-ai-toolkit

> This is a **Sanity Studio v3** plugin.

## Installation

```sh
npm install @focus-reactive/sanity-ai-toolkit
```

## Usage

Add it as a plugin in `sanity.config.ts` (or .js):

```ts
import {defineConfig} from 'sanity'
import {aiToolkit} from '@focus-reactive/sanity-ai-toolkit'

export default defineConfig({
  //...
  plugins: [
    aiToolkit({
      openAiToken: process.env.SANITY_STUDIO_OPENAI_TOKEN as string,
      featuresConfig: {
        translate: {enabled: true},
        summary: {enabled: false},
        tags: {enabled: true},
      },
    }),
  ],
})
```

## License

[MIT](LICENSE) © Alex Hramovich

## Develop & test

This plugin uses [@sanity/plugin-kit](https://github.com/sanity-io/plugin-kit)
with default configuration for build & watch scripts.

See [Testing a plugin in Sanity Studio](https://github.com/sanity-io/plugin-kit#testing-a-plugin-in-sanity-studio)
on how to run this plugin with hotreload in the studio.