This example wiresDocumentation Index
Fetch the complete documentation index at: https://docs.openchatwidget.com/llms.txt
Use this file to discover all available pages before exploring further.
@openchatwidget/sdk into a Next.js App Router portfolio site.
The POST /api/chat route uses OpenRouter with openai/gpt-5-mini:online and includes resume context from src/data/resume.tsx so users can ask questions about you.

- a portfolio page with
OpenChatWidget - a client wrapper for the widget
- a serverless
POST /api/chatroute handler grounded on resume data
Key files
examples/nextjs-portfolio-chat/src/app/widget-client.tsxexamples/nextjs-portfolio-chat/src/app/api/chat/route.tsexamples/nextjs-portfolio-chat/src/data/resume.tsx
Run it
- Install dependencies:
- Configure environment variables:
- Start the dev server:
/api/chat.
View repo folder
Open the full example source on GitHub.