Getting Started
Get up and running with Astro AI Coauthor in minutes.
Installation
Install the package using npm:
npm install astro-ai-coauthor
Basic Configuration
Add the integration to your astro.config.mjs:
import { defineConfig } from 'astro/config';
import astroAICoauthor from 'astro-ai-coauthor';
export default defineConfig({
integrations: [
astroAICoauthor({
enableFeedbackWidget: true,
enableMetadata: true,
}),
],
});
Start Development Server
Start your Astro development server:
npm run dev
Using the Feedback Widget
Once your development server is running:
- Navigate to any page in your documentation
- Look for the feedback widget (💬) in the bottom-right corner
- Click to open the feedback panel
- Rate the page (1-5 stars)
- Select a category (clarity, accuracy, completeness, etc.)
- Add notes or highlight text for specific feedback
- Submit your feedback
View the Dashboard
Access your feedback dashboard at:
http://localhost:4321/_ai-coauthor/dashboard
The dashboard shows:
- Summary statistics (total feedback, average rating, pages with feedback)
- Page performance table with status indicators
- Feedback trends over time
- Category breakdown visualization
- Prioritized action items
- Export options (JSON, CSV, Markdown)