Ronak.MauiAI.ChatUI 1.0.0

dotnet add package Ronak.MauiAI.ChatUI --version 1.0.0
                    
NuGet\Install-Package Ronak.MauiAI.ChatUI -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ronak.MauiAI.ChatUI" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ronak.MauiAI.ChatUI" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Ronak.MauiAI.ChatUI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ronak.MauiAI.ChatUI --version 1.0.0
                    
#r "nuget: Ronak.MauiAI.ChatUI, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ronak.MauiAI.ChatUI@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ronak.MauiAI.ChatUI&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Ronak.MauiAI.ChatUI&version=1.0.0
                    
Install as a Cake Tool

πŸš€ Ronak.MauiAI.ChatUI

πŸ”₯ Add ChatGPT-like UI to your .NET MAUI app in minutes

Ronak.MauiAI.ChatUI is a lightweight, plug-and-play AI chat UI for .NET MAUI with streaming responses, basic markdown support, and OpenAI integration.


✨ Why Ronak.MauiAI.ChatUI?

Building AI chat in MAUI today requires:

  • manual UI creation
  • handling streaming responses
  • integrating OpenAI APIs
  • managing conversation state

πŸ‘‰ This package simplifies everything into a drop-in solution.


⚑ V1 Features (Focused & Minimal)

  • βœ… ChatGPT-style UI (ready-to-use)
  • βœ… Real-time streaming responses (IAsyncEnumerable)
  • βœ… Basic markdown rendering (bold, code blocks)
  • βœ… In-memory conversation context
  • βœ… Plug-and-play setup (2 lines of code)
  • βœ… Lightweight and fast

🚫 What’s NOT included (V1)

To keep the package simple and fast:

  • ❌ Chat persistence (database)
  • ❌ Azure OpenAI
  • ❌ Voice input/output
  • ❌ Attachments / media
  • ❌ Advanced theming
  • ❌ Offline support

πŸ“¦ Installation

dotnet add package Ronak.MauiAI.ChatUI

βš™οΈ Quick Start (2 Steps)

1️⃣ Configure in MauiProgram.cs

builder.Services.AddChatUI()
                .AddOpenAI("YOUR_OPENAI_API_KEY");

2️⃣ Add ChatView to your page

<ai:ChatView />

▢️ Result

  • Type a message
  • Press send
  • AI responds in real-time (streaming)

🧠 How It Works

  • Messages stored in memory
  • Full conversation sent to AI (context-aware)
  • Response streamed token-by-token
  • UI updates incrementally

⚠️ Important: Billing & 429 Error

🚨 You may see this error:

HTTP 429 – Too Many Requests / Quota Exceeded

πŸ” Why this happens

  • OpenAI requires billing for chat/completions API
  • Free trial credits (if any) may be expired
  • You can still fetch models, but chat calls fail

βœ… Fix

  1. Go to: https://platform.openai.com/usage
  2. Check if you have available credits
  3. Add billing: https://platform.openai.com/settings/organization/billing

Use:

gpt-4o-mini
  • πŸ’° Very low cost
  • ⚑ Fast
  • βœ… Ideal for testing and demos

πŸ§ͺ Quick Debug

If you can fetch models but chat fails:

πŸ‘‰ It is almost always a billing issue


πŸ”Œ Extensibility (Advanced)

You can plug your own AI provider:

public class CustomProvider : IChatProvider
{
    public async IAsyncEnumerable<string> StreamAsync(List<ChatMessage> messages)
    {
        yield return "Custom response";
    }
}

πŸ“± Sample App

A working sample is included:

πŸ‘‰ MauiAI.ChatUI.Sample


πŸ“Œ Use Cases

  • AI assistants
  • Customer support chat
  • Banking apps
  • Internal copilots
  • Developer tools

πŸ§ͺ Keywords (SEO)

maui ai chat, maui chatgpt ui, openai maui, ai chat control maui, streaming chat maui, dotnet maui ai ui


πŸš€ Roadmap (Future)

  • Azure OpenAI support
  • Chat persistence
  • Advanced markdown
  • Theming & customization
  • Multi-provider support

🀝 Contributing

Contributions welcome! Feel free to open issues or PRs.


πŸ“„ License

MIT License


πŸ’₯ Final Thought

Stop building chat UI from scratch. Start shipping AI features faster.


Product Compatible and additional computed target framework versions.
.NET net9.0-android35.0 is compatible.  net9.0-ios18.0 is compatible.  net9.0-maccatalyst18.0 is compatible.  net9.0-windows10.0.19041 is compatible.  net10.0-android was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 131 4/10/2026