Next.js plugin for AI Guide - automatic build-time extraction and runtime validation
npm install @ai-guide/nextjsNext.js plugin for AI Guide - automatic build-time extraction and runtime validation.
``bash`
npm install @ai-guide/nextjs @ai-guide/react
Add to your next.config.js:
`javascript
const { withAiGuide } = require('@ai-guide/nextjs');
module.exports = withAiGuide({
// Your existing Next.js config
});
`
That's it! AI Guide will automatically:
1. Extract components during build time
2. Generate a manifest of all interactive elements
3. Validate at runtime with real DOM
4. Send data to AI Guide backend for embeddings
- Zero Configuration: Just wrap your config
- Build-Time Extraction: Hooks into Next.js webpack
- Runtime Semantic Matching: Uses hologram-based feature extraction (no ID injection needed)
- Dynamic Content: Captures API data and conditional renders
- Type Safe: Full TypeScript support
- Framework Agnostic: Works with any React-based framework
- Next.js 13.0.0 or higher
- React 18.0.0 or higher
MIT