@mixpeek/strapi
v1.0.0
Published
Strapi integration for Mixpeek — lifecycle hooks, content enrichment, and plugin configuration
Readme
@mixpeek/strapi
Strapi integration for Mixpeek — lifecycle hooks, content enrichment, and plugin configuration
Installation
npm install @mixpeek/strapiQuick Start
import strapiLifecycle from '@mixpeek/strapi';
const instance = strapiLifecycle({
apiKey: process.env.MIXPEEK_API_KEY
});Modules
StrapiLifecycle
Hooks into Strapi content lifecycle events (beforeCreate, afterUpdate) for enrichment
import { createStrapiLifecycle } from '@mixpeek/strapi';
const strapiLifecycle = createStrapiLifecycle({
apiKey: process.env.MIXPEEK_API_KEY
});ContentEnricher
Enriches Strapi content types with Mixpeek multimodal analysis
import { createContentEnricher } from '@mixpeek/strapi';
const contentEnricher = createContentEnricher({
apiKey: process.env.MIXPEEK_API_KEY
});PluginConfig
Strapi plugin configuration and registration for Mixpeek integration
import { createPluginConfig } from '@mixpeek/strapi';
const pluginConfig = createPluginConfig({
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
