How rwkv-app/rwkv_app works
RWKV App is documented as a cross-platform, local-first AI app: users select a model, then use chat, speech, or vision workflows, with an optional desktop API. The supplied tree does not include the Flutter app or inference-engine sources, so those documented capabilities are shown without invented implementation paths. The source available here mainly covers the Windows in-app webview plugin and native platform shells; its internal relationships are limited to those visible in excerpts or the source index.
Main entry points: flutter_inappwebview_windows_plugin.h Windows plugin · webview_environment_manager.cpp Environment manager · in_app_webview_manager.cpp Webview manager · headless_in_app_webview_manager.cpp Headless manager
Components 21
AI product capabilities
- Model selection
- Model downloads
- On-device inference
- AI chat
- Text-to-speech
- Visual understanding
- Local API
Windows webview plugin
- Windows plugin
packages/flutter_inappwebview_windows/windows/flutter_inappwebview_windows_plugin.h - Webview manager
packages/flutter_inappwebview_windows/windows/in_app_webview/in_app_webview_manager.cpp - Headless manager
packages/flutter_inappwebview_windows/windows/headless_in_app_webview/headless_in_app_webview_manager.cpp - Browser manager
packages/flutter_inappwebview_windows/windows/in_app_browser/in_app_browser_manager.cpp - Environment manager
packages/flutter_inappwebview_windows/windows/webview_environment/webview_environment_manager.cpp - Cookie manager
packages/flutter_inappwebview_windows/windows/cookie_manager.cpp - User content
packages/flutter_inappwebview_windows/windows/in_app_webview/user_content_controller.cpp
Platform hosts
- Android host
android/app/src/main/kotlin/com/rwkvzone/chat/MainActivity.kt - iOS host
ios/Runner/AppDelegate.swift - Windows host
windows/runner/main.cpp - macOS host
macos/Runner/AppDelegate.swift - Linux host
linux/runner/main.cc
Other components
- App user
- Hugging Face
Connections 24
- App user → Model selection: selects model
README.md - Hugging Face → Model downloads: provides weights
README.md - Model downloads → Model selection: offers models
README.md - Model selection → On-device inference: loads model
README.md - App user → AI chat: starts chat
README.md - App user → Text-to-speech: requests speech
README.md - App user → Visual understanding: provides image
README.md - AI chat → On-device inference: uses inference
README.md - Text-to-speech → On-device inference: uses inference
- Visual understanding → On-device inference: uses inference
- App user → Local API: enables endpoint
README.md - Windows plugin → Webview manager: owns manager
packages/flutter_inappwebview_windows/windows/flutter_inappwebview_windows_plugin.h - Windows plugin → Headless manager: owns manager
packages/flutter_inappwebview_windows/windows/flutter_inappwebview_windows_plugin.h - Windows plugin → Browser manager: owns manager
packages/flutter_inappwebview_windows/windows/flutter_inappwebview_windows_plugin.h - Windows plugin → Environment manager: owns manager
packages/flutter_inappwebview_windows/windows/flutter_inappwebview_windows_plugin.h - Windows plugin → Cookie manager: owns manager
packages/flutter_inappwebview_windows/windows/flutter_inappwebview_windows_plugin.h - Webview manager → Environment manager: uses environment
packages/flutter_inappwebview_windows/windows/in_app_webview/in_app_webview_manager.cpp - Headless manager → Environment manager: uses environment
packages/flutter_inappwebview_windows/windows/headless_in_app_webview/headless_in_app_webview_manager.cpp - Cookie manager → Environment manager: uses environment
packages/flutter_inappwebview_windows/windows/cookie_manager.cpp - Android host → App user: hosts app
README.md - iOS host → App user: hosts app
README.md - Windows host → App user: hosts app
README.md - macOS host → App user: hosts app
README.md - Linux host → App user: hosts app
README.md