[PR #5241] [MERGED] docs: inkeep analytics with feedback integration #31477

Closed
opened 2026-04-17 22:21:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5241
Author: @Kinfe123
Created: 10/11/2025
Status: Merged
Merged: 10/12/2025
Merged by: @Bekacru

Base: canaryHead: feat/inkeep-analytics-feedback-integration


📝 Commits (6)

  • a174c6f feat: integrate Inkeep Analytics with feedback system
  • f32b39c lint
  • ae53058 Update docs/app/api/chat/route.ts
  • 54498e4 Update docs/components/floating-ai-search.tsx
  • 53e5e71 Update docs/lib/inkeep-analytics.ts
  • 53b07d2 Update docs/lib/inkeep-analytics.ts

📊 Changes

7 files changed (+538 additions, -4 deletions)

View changed files

docs/app/api/analytics/conversation/route.ts (+36 -0)
docs/app/api/analytics/event/route.ts (+35 -0)
docs/app/api/analytics/feedback/route.ts (+37 -0)
📝 docs/app/api/chat/route.ts (+59 -0)
📝 docs/components/floating-ai-search.tsx (+43 -4)
docs/components/message-feedback.tsx (+170 -0)
docs/lib/inkeep-analytics.ts (+158 -0)

📄 Description

Summary by cubic

Integrated Inkeep Analytics into the docs chat to log conversations, events, and message feedback without slowing down the UI. Adds a feedback UI on assistant messages and edge API routes to forward analytics data.

  • New Features

    • Log conversations to Inkeep when a response finishes with source, timestamp, and model.
    • Edge API endpoints for analytics: conversations, feedback, and events with input validation.
    • Message feedback UI (thumbs up/down) and copy button on assistant replies; logs feedback and “message:copied” events; hidden while streaming.
    • Analytics failures don’t affect chat responses.
  • Migration

    • Set INKEEP_ANALYTICS_API_KEY or INKEEP_API_KEY in the environment.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5241 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 10/11/2025 **Status:** ✅ Merged **Merged:** 10/12/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `feat/inkeep-analytics-feedback-integration` --- ### 📝 Commits (6) - [`a174c6f`](https://github.com/better-auth/better-auth/commit/a174c6fa744255aa01d8a4d4d9671ace20f09240) feat: integrate Inkeep Analytics with feedback system - [`f32b39c`](https://github.com/better-auth/better-auth/commit/f32b39c8f49513482796e25322e4110ca072f709) lint - [`ae53058`](https://github.com/better-auth/better-auth/commit/ae53058a564aa7295faf7d68a6283e0dc7d2a8ae) Update docs/app/api/chat/route.ts - [`54498e4`](https://github.com/better-auth/better-auth/commit/54498e466bc8930a594019b4a8b4aea0d591e5b8) Update docs/components/floating-ai-search.tsx - [`53e5e71`](https://github.com/better-auth/better-auth/commit/53e5e71bf4617c6942d8854c50e8ddcf46d98ee7) Update docs/lib/inkeep-analytics.ts - [`53b07d2`](https://github.com/better-auth/better-auth/commit/53b07d2830618eca87761246c670e7e19f681295) Update docs/lib/inkeep-analytics.ts ### 📊 Changes **7 files changed** (+538 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `docs/app/api/analytics/conversation/route.ts` (+36 -0) ➕ `docs/app/api/analytics/event/route.ts` (+35 -0) ➕ `docs/app/api/analytics/feedback/route.ts` (+37 -0) 📝 `docs/app/api/chat/route.ts` (+59 -0) 📝 `docs/components/floating-ai-search.tsx` (+43 -4) ➕ `docs/components/message-feedback.tsx` (+170 -0) ➕ `docs/lib/inkeep-analytics.ts` (+158 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Integrated Inkeep Analytics into the docs chat to log conversations, events, and message feedback without slowing down the UI. Adds a feedback UI on assistant messages and edge API routes to forward analytics data. - **New Features** - Log conversations to Inkeep when a response finishes with source, timestamp, and model. - Edge API endpoints for analytics: conversations, feedback, and events with input validation. - Message feedback UI (thumbs up/down) and copy button on assistant replies; logs feedback and “message:copied” events; hidden while streaming. - Analytics failures don’t affect chat responses. - **Migration** - Set INKEEP_ANALYTICS_API_KEY or INKEEP_API_KEY in the environment. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 22:21:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#31477