Hi, I'm Jiayuan
Flutter Developer
Building high-performance cross-platform apps with Flutter & Rust FFI. 2.5+ years shipping production apps across 5 platforms.
About Me
Flutter developer focused on performance & cross-platform excellence
I'm a Flutter developer with 2.5+ years of experience building production-grade cross-platform applications. I specialize in Flutter + Rust FFI development, having designed and shipped 12 FFI modules in production covering system proxy management, socket connection pooling, and protocol parsing.
My work spans the full product lifecycle — from architecture design to app store deployment — across iOS, Android, macOS, Windows, and Linux. I've built apps serving 10K+ daily active users with complex features including payment integration, real-time push notifications, and concurrent media processing.
Tech Stack
Technologies I work with daily
Cross-Platform
State Management
High-Performance
Native Development
Networking & Storage
Build & Tools
Projects I Built
Production apps with real users and measurable impact
BitVPN
Cross-Platform VPN Proxy Client
2023 - 2024
Commercial cross-platform VPN proxy client integrating Mihomo proxy kernel. Supports 20+ proxy protocols with smart node selection and high-concurrency latency testing.
Key Implementations
- ▸ Unified Rust FFI architecture (bit_native) with 12 modules: system proxy, socket pool, network query, process daemon, port scan
- ▸ Universal Binary for macOS merging arm64 + x86_64 architectures
- ▸ High-concurrency latency testing: 36 concurrent (desktop) / 10 concurrent (mobile)
- ▸ Self-developed 73K+ line multi-protocol URL parser supporting VMess, VLESS, Trojan, WireGuard and 20+ protocols
- ▸ 4-layer smart node selection: auto, manual, failover, recommended
- ▸ 3-layer system proxy cleanup preventing proxy residue on termination
Technical Highlights
- ▸ Socket Connection Pool: 32 connections, HTTP + FFI mixed usage
- ▸ Cache Strategy: Proxy name cache TTL=1500ms reducing API calls
- ▸ Referenced Clash Verge Rev & Clash Meta for Android architecture
Cloud Museum
Art Authentication Platform
Dec 2024 - Oct 2025
Full-featured art authentication and trading platform with 10K+ DAU. Supports online/offline authentication, digital collection preservation, membership system, and payment transactions.
UI Design Showcase Figma Design Screens
Homepage & AI Chatbot
Waterfall Gallery
AI Authentication Report
Authentication Result
Gallery & Login
Upload & History
Key Implementations
- ▸ Led full-stack Flutter development with ViewModel + Service + Repository three-layer architecture
- ▸ Built unified reactive state management with GetX: global state, business modules, routing, dependency injection
- ▸ Concurrent media upload pipeline: 6 images + 1 video, local compression, real-time progress
- ▸ Payment integration: WeChat Pay (App + URL Scheme) and Alipay (Universal Link + URL Scheme dual callback)
- ▸ Push notification system with JPush: alias management, categorized messaging, Deep Link navigation
- ▸ Rust FFI integration via flutter_rust_bridge for RSA encryption and digital signatures
Technical Highlights
- ▸ Image compression upload optimization reducing traffic by 30%
- ▸ 5-minute caching mechanism reducing API calls by 40%
- ▸ Real-time push notifications with Deep Link page navigation
Architecture & Code Deep Dive
BitVPN — sanitized code snippets demonstrating technical depth. Source repos are private (company NDA).
System Architecture
UI Layer
lib/pages/ · lib/widgets/ViewModel & State
lib/models/ · lib/bitState/AppModel
VPN status · Theme · UI
ServerModel
Node list · Selection · Cache
UserModel
Auth · Preferences
bitConfigState
Riverpod StateProvider
BaseModel extends ChangeNotifier · PageState (loading / error / success)
Service Layer
lib/service/MihomoConnectionService
Proxy switch · Connect · Disconnect
MihomoDelayService
Batch latency test · EventChannel
SmartSelectionService
Auto · Manual · Failover · Recommended
ConfigService
ProfileManager · YAML · Validation
NodeBatchTester
Concurrent test · Semaphore(36/20)
FallbackManager
Proxy failover · Auto-reconnect
Desktop: MihomoPortManager · ProcessCleanup · TrayService · BinaryResolver
FFI Bridge & Platform Channels
lib/utils/ffi/ · lib/channels/Rust FFI (base_ffi.dart)
Isolate-safe · Lazy init · Platform detection
Platform Channels
MethodChannel · EventChannel (Android/iOS)
Native Layer
native/ · android/ · ios/Android
Kotlin
TunnelService
Mihomo Core
iOS
Swift
PacketTunnel
NetworkExt
macOS
Static lib
.process()
Universal
Windows
DLL
x64 / ARM64
WinReg
Linux
.so
x64 / ARM
iptables
Rust FFI Modules (bit_native)
sysproxy
mihomo_socket
process_guard
port_scanner
hostname
privilege
network_if
sysinfo
timer
winreg
clash_verge_svc
tokio runtime
Compiled as staticlib + rlib · Dependencies: sysproxy-rs, tokio, sysinfo, network-interface
Code Highlights Sanitized snippets
abstract class BaseFFI {
DynamicLibrary? _lib;
Future<void> initializeLibrary() async {
if (Platform.isWindows) {
_lib = await WindowsDllLoader
.loadDll(windowsDllName);
} else if (Platform.isMacOS) {
// Static lib: symbols in process
_lib = DynamicLibrary.process();
}
}
// Isolate-safe library access
static DynamicLibrary getLibForIsolate(
{required String dllName}
) => Platform.isWindows
? loadLibInIsolate(dllName)
: DynamicLibrary.process();
} // Rust: Atomic handle + minimal lock
static NEXT_HANDLE: AtomicU64 =
AtomicU64::new(1);
pub extern "C" fn create(pid: pid_t)
-> u64 {
let handle = NEXT_HANDLE
.fetch_add(1, Ordering::Relaxed);
registry.lock().insert(handle, pid);
handle
}
// Dart: Finalizer = Rust Drop trait
static final Finalizer _finalizer =
Finalizer((cb) => cb());
ProcessGuard._(this._handle) {
_finalizer.attach(this, () {
ProcessGuardFFI.kill(_handle);
});
} struct IpcConnectionPool {
connections: Arc<Mutex<
VecDeque<IpcConnection>>>,
semaphore: Arc<Semaphore>,
config: PoolConfig,
}
enum RejectPolicy {
New = 0, // Create new connection
Reject = 1, // Reject immediately
Timeout= 2, // Wait with timeout
Wait = 3, // Wait indefinitely
}
// Global tokio runtime for pool reuse
static GLOBAL_RUNTIME:
OnceLock<tokio::Runtime> =
OnceLock::new(); static int get maxConcurrency {
if (Platform.isMacOS ||
Platform.isWindows) {
return 36; // Desktop: high concurrency
}
return 20; // Mobile: Semaphore(20)
}
// Stream-based result delivery
// Android: EventChannel replaces
// 300ms polling with push
static const EventChannel
_delayStream = EventChannel(
'com.sail/mihomo_delay_stream'
);
// Cache: proxy name TTL=1500ms
final _cache = TimedCache<
String, bool>(ttl: 1500); Experience
My professional journey
Cloud Museum Data Group Co., Ltd.
Flutter Developer
- ▸ Led core business module development for art authentication platform (10K+ DAU)
- ▸ Architected state management, payment integration, push notifications
- ▸ Integrated Rust FFI for cryptographic operations
Beijing ZeroOne Smart Technology
Flutter Developer
- ▸ Built cross-platform VPN client across 5 platforms
- ▸ Designed 12-module Rust FFI architecture
- ▸ Developed 73K+ line protocol parsing engine
Hebei University
B.S. in Bioinformatics
Let's Work Together
I'm available as a remote contractor for US companies. Whether through W-8BEN individual agreement or B2B contract via my company entity, I'm ready to help build your next cross-platform application.