New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@focus-reactive/sanity-ai-toolkit

Package Overview
Dependencies
Maintainers
6
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@focus-reactive/sanity-ai-toolkit

An easy way to enchance your Sanity studio with ready for use GPT functions. Localization, summarization, tags and more !

0.0.2
Source
npm
Version published
Weekly downloads
2
100%
Maintainers
6
Weekly downloads
 
Created
Source

@focus-reactive/sanity-ai-toolkit

This is a Sanity Studio v3 plugin.

Installation

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

Usage

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

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 © Alex Hramovich

Develop & test

This plugin uses @sanity/plugin-kit with default configuration for build & watch scripts.

See Testing a plugin in Sanity Studio on how to run this plugin with hotreload in the studio.

Keywords

sanity

FAQs

Package last updated on 21 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts