raptrai 0.1.1
raptrai: ^0.1.1 copied to clipboard
The opinionated AI UI + runtime toolkit for Flutter. Like shadcn/ui for AI apps. Multi-provider support (OpenAI, Anthropic, Google), beautiful components, and production-ready features.
Changelog #
All notable changes to this project will be documented in this file.
0.1.1 - 2025-01-12 #
Improved #
- Chat Input Bar: Modern floating pill-style input with shadow and rounded corners
- Message Bubbles: Cleaner user/assistant message styling with better typography
- Layout: Improved spacing and padding throughout the chat interface
- Send Button: Animated send button with smooth state transitions
- Stop Button: Clean square icon for stopping generation
Fixed #
- Chat input now properly floats at bottom with safe area handling
- Message list padding adjusted for better readability
- Actions visibility improved (always visible with opacity animation)
0.1.0 - 2024-12-27 #
Added #
- Initial release of RaptrAI - The Complete AI Framework for Flutter
- A raptrx.com product
AI Provider Integration
RaptrAIProvider- Abstract interface for AI providersRaptrAIOpenAI- OpenAI GPT-4, GPT-3.5 integration with streamingRaptrAIAnthropic- Anthropic Claude 3 (Opus, Sonnet, Haiku) integrationRaptrAIGoogle- Google Gemini Pro/Ultra integration- Unified message types:
RaptrAIMessage,RaptrAIChunk,RaptrAIResponse - Support for attachments, tool calls, and multimodal content
Conversation Management
RaptrAIConversation- Full conversation state with message branchingRaptrAIConversationController- High-level controller for AI interactions- Message branching for edit/regenerate functionality
- Context window management for token limits
Tool/Function Calling
RaptrAIToolRegistry- Register and manage toolsRaptrAIToolExecutor- Automatic tool execution with approval flow- JSON schema generation from tool definitions
- Built-in UI for tool call status and results
Persistence Layer
RaptrAIStorage- Abstract storage interfaceRaptrAIHiveStorage- Local encrypted storage with HiveRaptrAIMemoryStorage- In-memory storage for testing- Offline-first with cloud sync support
Business Features
RaptrAIUsageTracker- Token and cost trackingRaptrAIAnalytics- Event tracking system- Rate limiting with configurable limits
- Model pricing for cost estimation
High-Level Widgets
RaptrAIChat- Complete AI chat with all features integratedRaptrAIChatWithSidebar- Full chat experience with thread list
Thread & Assistant Components
RaptrAIThread- Main chat container with messages and composerRaptrAIThreadWelcome- Welcome screen with greeting and suggestionsRaptrAIThreadMessages- Scrollable message list with auto-scrollRaptrAIThreadList- Conversation sidebarRaptrAIComposer- Full input area with attachmentsRaptrAIAssistantMessage/RaptrAIUserMessage- Message componentsRaptrAIToolCallWidget- Tool call display with progress and resultsRaptrAIAssistantModal- Floating chat modalRaptrAIBranchPicker- Navigate message branches
Chat Components
RaptrAIChatBubble- Message bubbles with customizable stylingRaptrAIChatInput- Full-featured input with attachmentsRaptrAITypingIndicator- Animated typing dotsRaptrAIStreamingText- Text with blinking cursorRaptrAITypewriterText- Character-by-character reveal
Prompt Components
RaptrAIPromptContainer- Container with card, floating, fullscreen, minimal stylesRaptrAIPromptInput- Text input with multiple style variantsRaptrAIPromptMessage- User/assistant messages with actionsRaptrAIPromptSuggestions- Quick action chips/cards
Common Components
RaptrAIButton- Primary, secondary, outlined, ghost, danger variantsRaptrAIBadge- Status indicators with multiple variantsRaptrAICard- Bordered, elevated, filled, ghost stylesRaptrAICopyButton- Copy to clipboard with visual feedbackRaptrAIAlert- Info, success, warning, error alerts
Layout Components
RaptrAISidebar- Navigation sidebar with itemsRaptrAIHistoryPanel- Conversation history listRaptrAIPromptContainerLayout- Responsive layoutRaptrAIChatLayout- Full chat screen layout
Theme System
RaptrAITheme- Light and dark theme supportRaptrAIColors- Modern color system (Zinc scale)RaptrAITypography- Inter font with consistent text styles- Fully customizable accent colors