{"id":79,"date":"2025-01-13T14:12:04","date_gmt":"2025-01-13T14:12:04","guid":{"rendered":"https:\/\/www.ivanjurina.com\/?p=79"},"modified":"2025-09-14T14:46:53","modified_gmt":"2025-09-14T14:46:53","slug":"building-a-modern-ai-chat-interface-react-typescript-implementation","status":"publish","type":"post","link":"https:\/\/www.ivanjurina.com\/index.php\/2025\/01\/13\/building-a-modern-ai-chat-interface-react-typescript-implementation\/","title":{"rendered":"Building a Modern AI Chat Interface: React + TypeScript Implementation"},"content":{"rendered":"\n<p>Built a clean React frontend that connects to my previous .NET backend project. The UI lets you chat with AI models (ChatGPT and Claude) while handling voice input and PDF document processing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key Features<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Voice-to-text conversion for natural conversations<\/li>\n\n\n\n<li>PDF document upload and analysis<\/li>\n\n\n\n<li>Real-time AI chat with streaming responses<\/li>\n\n\n\n<li>Clean Material-UI + Tailwind CSS interface<\/li>\n\n\n\n<li>Chat history management<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Simple Setup<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Clone repo<\/li>\n\n\n\n<li><code>npm install<\/code><\/li>\n\n\n\n<li>Configure backend URL in <code>.env<\/code><\/li>\n\n\n\n<li><code>npm start<\/code><\/li>\n<\/ol>\n\n\n\n<p>The UI is minimal but functional &#8211; single chat window with document sidebar, voice input button, and message history. Perfect for applications needing AI chat with document analysis capabilities.<\/p>\n\n\n\n<p>Check out the code to see how it all fits together!<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/ivanjurina\/chatgpt-claude-react-app\">https:\/\/github.com\/ivanjurina\/chatgpt-claude-react-app<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"717\" src=\"https:\/\/www.ivanjurina.com\/wp-content\/uploads\/2025\/01\/Greenshot-2025-01-13-15.08.26-1024x717.png\" alt=\"\" class=\"wp-image-80\" srcset=\"https:\/\/www.ivanjurina.com\/wp-content\/uploads\/2025\/01\/Greenshot-2025-01-13-15.08.26-1024x717.png 1024w, https:\/\/www.ivanjurina.com\/wp-content\/uploads\/2025\/01\/Greenshot-2025-01-13-15.08.26-300x210.png 300w, https:\/\/www.ivanjurina.com\/wp-content\/uploads\/2025\/01\/Greenshot-2025-01-13-15.08.26-768x538.png 768w, https:\/\/www.ivanjurina.com\/wp-content\/uploads\/2025\/01\/Greenshot-2025-01-13-15.08.26-350x245.png 350w, https:\/\/www.ivanjurina.com\/wp-content\/uploads\/2025\/01\/Greenshot-2025-01-13-15.08.26-uai-720x504.png 720w, https:\/\/www.ivanjurina.com\/wp-content\/uploads\/2025\/01\/Greenshot-2025-01-13-15.08.26-uai-1032x722.png 1032w, https:\/\/www.ivanjurina.com\/wp-content\/uploads\/2025\/01\/Greenshot-2025-01-13-15.08.26.png 1103w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Built a clean React frontend that connects to my previous .NET backend project. The UI lets you chat with AI [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":80,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.ivanjurina.com\/index.php\/wp-json\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ivanjurina.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ivanjurina.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ivanjurina.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ivanjurina.com\/index.php\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":4,"href":"https:\/\/www.ivanjurina.com\/index.php\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":97,"href":"https:\/\/www.ivanjurina.com\/index.php\/wp-json\/wp\/v2\/posts\/79\/revisions\/97"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ivanjurina.com\/index.php\/wp-json\/wp\/v2\/media\/80"}],"wp:attachment":[{"href":"https:\/\/www.ivanjurina.com\/index.php\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ivanjurina.com\/index.php\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ivanjurina.com\/index.php\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}