Arya-Sankhe/Chat ? reverse-engineered prompt

Reverse engineered prompt

Build me a polished chat app called Klui Chat that feels like a small SaaS product, not just a demo. It should let people sign in with Google through Supabase, keep their chat history in Supabase, and support two access modes, one for local testing and one for paid users with subscriptions. I want users to be able to send messages, get streaming replies from a model API, see usage limits, and upload images and documents securely to private Cloudflare R2.

Also include a simple plan flow for Lite, Essential, and Pro, with Ziina payment links and an admin approval step for activating subscriptions. If you can, add document features for common file types like PDF, DOCX, XLSX, PPTX, CSV, and TSV, plus optional web search with a toggle in chat. Make it work cleanly in Docker, with a separate worker for document processing, and set it up so I can run it locally or deploy it easily. Use current docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab