Design RAG companion web app for The Arena campaign#22
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
Co-authored-by: bestdan <2766380+bestdan@users.noreply.github.com>
…ompanion app Co-authored-by: bestdan <2766380+bestdan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Design architectural plan for companion web app
Design RAG companion web app for The Arena campaign
Nov 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Design a React-based companion web app that allows players to query campaign content via conversational AI while preventing spoilers from unrevealed sessions and future plot arcs.
Architecture Documents
6 comprehensive design documents (~165KB, 3,871 lines):
Technical Stack
Frontend: React 18+, TypeScript, Vite, Tailwind CSS, shadcn/ui, TanStack Query, Zustand
Backend: Node.js 20+, Fastify/Express, PostgreSQL, Prisma ORM, Redis
AI/ML: Pinecone vector DB, OpenAI text-embedding-3-small, GPT-4 Turbo
Hosting: Vercel (frontend), Railway/Render (backend), GitHub Actions (sync)
Content Visibility System
Three-tier access control via YAML frontmatter:
RAG Query Pipeline
Target response time: <3 seconds
Implementation Roadmap
Phase 1 (Weeks 1-3): Infrastructure, RAG pipeline, basic chat UI
Phase 2 (Weeks 4-5): Authentication, session browser, character dashboard, mechanics reference
Phase 3 (Week 6+): Deployment, testing, iteration
Total: 6 weeks to MVP
Cost Estimates
MVP: $15-70/month (Vercel free, Railway $5-20, Pinecone free, OpenAI $10-50)
Production (100 users): $210-330/month
Open Questions
Next Steps
Note: Design-only deliverable per issue request. No code implementation included.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.