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
<PackageReference Include="Ronak.MauiAI.ChatUI" Version="1.0.0" />
<PackageVersion Include="Ronak.MauiAI.ChatUI" Version="1.0.0" />
<PackageReference Include="Ronak.MauiAI.ChatUI" />
paket add Ronak.MauiAI.ChatUI --version 1.0.0
#r "nuget: Ronak.MauiAI.ChatUI, 1.0.0"
#:package Ronak.MauiAI.ChatUI@1.0.0
#addin nuget:?package=Ronak.MauiAI.ChatUI&version=1.0.0
#tool nuget:?package=Ronak.MauiAI.ChatUI&version=1.0.0
π 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
- Go to: https://platform.openai.com/usage
- Check if you have available credits
- Add billing: https://platform.openai.com/settings/organization/billing
π‘ Recommended Model
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 | Versions 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. |
-
net9.0-android35.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Maui.Controls (>= 9.0.120)
-
net9.0-ios18.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Maui.Controls (>= 9.0.120)
-
net9.0-maccatalyst18.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Maui.Controls (>= 9.0.120)
-
net9.0-windows10.0.19041
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Maui.Controls (>= 9.0.120)
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 |