Myportfoliochatbot

By Anuj Ror · · 2 min read

A single-screen AI chat assistant that helps visitors learn about Anuj Ror — his story, projects, skills and how to get in touch. Visitors can ask questions in English, Hindi or Hinglish and get warm, markdown-formatted answers grounded in a verified portfolio source.

✨ Features

  • 💬 Single-screen chat UI — no landing page, sidebar or extra routes; just a fast, focused conversation.
  • 🌐 Multilingual replies — answers in the same language the visitor uses (English / Hindi / Hinglish).
  • 🧠 Grounded answers only — the assistant is restricted to a verified portfolio source, so it won't invent projects, links or contact details.
  • 🎯 Suggested questions — one-tap starters like "Anuj kaun hai?" and "Saare projects dikhao".
  • 🔁 Retry & new chat — recover from failed requests or start a fresh conversation.
  • 💾 Local-only history — the conversation is saved in localStorage; nothing is persisted server-side.
  • ⚡ Streaming from Groq — responses stream from Groq and are returned as a single validated reply.
  • 🛟 Resilient by design — automatic retry on transient errors, with a fallback model if the primary model is unavailable.

🧰 Tech Stack

  • Runtime: Node.js 24, TypeScript 5.9
  • Frontend: React 19, Vite 7, Tailwind CSS 4, Radix UI, Framer Motion, TanStack Query, Wouter
  • Backend: Express 5, Pino logging, esbuild (CJS bundle)
  • AI: Groq Chat Completions API (streaming)
  • Validation & codegen: Zod (zod/v4), Orval (from OpenAPI)
  • Package manager: pnpm workspaces
  • Deployment: Vercel + Replit

POST /api/chat

Request

Response

Notes

  • Accepts up to the last 10 valid user / assistant messages, each trimmed to 4,000 characters.
  • max_tokens: 700, temperature: 0.5, streaming enabled.
  • Error codes: AI_NOT_CONFIGURED (503), AI_BUSY (503), AI_UNAVAILABLE (502), AI_EMPTY_REPLY (502), AI_CONNECTION_ERROR (503).

🔒 Privacy & Security

  • Visitor messages are not stored on the server; chat history lives only in the browser's localStorage.
  • GROQ_API_KEY is read from server-side environment variables only.
  • The assistant never reveals its system prompt, source policy or API details.

👤 About Anuj Ror

Self-taught AI developer, voice AI builder and entrepreneur from Harsola, Kaithal, Haryana, India — building real-time voice AI agents and smart AI tools.

  • 🌐 Portfolio: anuj-portfolio-rho.vercel.app
  • 💼 LinkedIn: linkedin.com/in/anuj-ror-a533a443a
  • 🐙 GitHub: github.com/AnujRor
  • 📸 Instagram: instagram.com/anuj_ror_13
  • ✉️ Email: anujror202007@gmail.com

Topics: Myportfoliochatbot, TypeScript

Related articles