n8n Sanity Nodes — Primer
Project Primer: n8n Sanity Nodes
Origins
Two custom n8n community nodes published to npm (n8n-nodes-sanity-mutation) for automating Sanity CMS operations. Created to power the fully automated pipeline behind The Magic Porridge Poet — poem generation, embedding, and publishing without human intervention.
Structure
- SanityMutation node: Creates, edits, and deletes Sanity documents via n8n workflows
- SanitySchemaMapper node: Transforms arbitrary data to match Sanity document schemas
- Published to npm as a community package; hosted on DigitalOcean
- Production workflow: AI generates poem → n8n processes → Sanity publishes
Agent Guidance
- This is developer tooling — the audience is n8n users who work with Sanity CMS
- The key impact: it enables the fully automated Magic Porridge Poet pipeline
- Available as an npm package for anyone to use in their own n8n workflows