sanity-hermes
v0.1.18
Published
A reusable Sanity plugin that connects Notion tables with LLM to generate article drafts
Downloads
1,630
Maintainers
Readme
Sanity Hermes
A Sanity Studio plugin that connects Notion tables with LLM to generate article drafts.
Installation
npm install sanity-hermesSetup
1. Add to Sanity Config
import { defineConfig } from 'sanity';
import { sanityNotionLLMPlugin } from 'sanity-hermes';
export default defineConfig({
plugins: [sanityNotionLLMPlugin()],
});2. Set Backend URL (Optional)
The plugin connects to the production backend by default. To use a different backend, set:
SANITY_STUDIO_BACKEND_URL=https://sanity-notion-llm-api.vercel.appDefault: https://sanity-notion-llm-api.vercel.app (production)
Development: Set to http://localhost:3001 if running backend locally
3. Configure in Studio
- Open "Hermes Content" tool
- Go to "Settings" tab
- Enter Notion, LLM, and Sanity credentials
- Map fields in "Fields" tab
- Generate drafts in "Generate" tab
Requirements
- Sanity v3+ or v4+
- React v18+ or v19+
- Node >=18.0.0
- Backend API server
