@mixpeek/contentful
v1.0.0
Published
Contentful integration for Mixpeek — webhook handling, content enrichment, and management API integration
Readme
@mixpeek/contentful
Contentful integration for Mixpeek — webhook handling, content enrichment, and management API integration
Installation
npm install @mixpeek/contentful contentful-managementQuick Start
import webhookHandler from '@mixpeek/contentful';
const instance = webhookHandler({
apiKey: process.env.MIXPEEK_API_KEY
});Modules
WebhookHandler
Handles Contentful webhooks (entry publish/unpublish/archive) and triggers enrichment
import { createWebhookHandler } from '@mixpeek/contentful';
const webhookHandler = createWebhookHandler({
apiKey: process.env.MIXPEEK_API_KEY
});ContentEnricher
Enriches Contentful entries with Mixpeek multimodal analysis stored in custom fields
import { createContentEnricher } from '@mixpeek/contentful';
const contentEnricher = createContentEnricher({
apiKey: process.env.MIXPEEK_API_KEY
});ContentfulClient
Contentful Management API client for reading/writing enrichment data
import { createContentfulClient } from '@mixpeek/contentful';
const contentfulClient = createContentfulClient({
apiKey: process.env.MIXPEEK_API_KEY
});Testing
npm test # Unit tests
npm run test:e2e # End-to-end tests
npm run test:live # Live API tests (requires MIXPEEK_API_KEY)
npm run test:coverage # Coverage reportLicense
MIT
