trace the process of handling a user's query from frontend to backend
Give me an overview of this codebase