JSPM

@mixpeek/contentful

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q21677F
  • License MIT

Contentful integration for Mixpeek — webhook handling, content enrichment, and management API integration

Package Exports

  • @mixpeek/contentful

Readme

@mixpeek/contentful

Contentful integration for Mixpeek — webhook handling, content enrichment, and management API integration

Installation

npm install @mixpeek/contentful contentful-management

Quick 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 report

License

MIT