<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Amir Ziari on Medium]]></title>
        <description><![CDATA[Stories by Amir Ziari on Medium]]></description>
        <link>https://medium.com/@amirzr?source=rss-aeee9b132f50------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kwRu3QdqFa6BJS1almOouA.jpeg</url>
            <title>Stories by Amir Ziari on Medium</title>
            <link>https://medium.com/@amirzr?source=rss-aeee9b132f50------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:32:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amirzr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[flutter_singbox_client: A Modern Flutter VPN & Proxy Plugin Built on Sing-box ]]></title>
            <link>https://medium.com/@amirzr/flutter-singbox-client-a-modern-flutter-vpn-proxy-plugin-built-on-sing-box-89c9162600e5?source=rss-aeee9b132f50------2</link>
            <guid isPermaLink="false">https://medium.com/p/89c9162600e5</guid>
            <category><![CDATA[sing-box]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android-vpn]]></category>
            <category><![CDATA[flutter-singbox]]></category>
            <category><![CDATA[flutter-vpn]]></category>
            <dc:creator><![CDATA[Amir Ziari]]></dc:creator>
            <pubDate>Tue, 19 May 2026 18:37:02 GMT</pubDate>
            <atom:updated>2026-05-19T18:37:02.511Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BrxRiWExUOIDOfCKsZv0AQ.png" /></figure><p><em>A stateless, event-driven Dart wrapper for the Sing-box proxy core — TUN VPN mode, kill switch, Clash API, per-app proxy, and native support for WireGuard, Hysteria2, TUIC, VMess, VLESS, Trojan, Shadowsocks, and more, all in one Flutter plugin.</em></p><p>Hey Flutter fam! 👋</p><p>If you’ve been following my journey, you know I shipped <a href="https://medium.com/@amirzr/introducing-flutter-v2ray-your-ultimate-flutter-vpn-solution-bc46ddab2f8f"><strong>flutter_v2ray_client</strong></a> not too long ago — and the community response was absolutely incredible. Thank you! 🙏</p><p>But you kept asking me one thing:</p><blockquote>“Amir, when are you bringing <strong>sing-box</strong> to Flutter?”</blockquote><p>Well — today is that day. 🎉</p><p>I’m beyond excited to introduce <strong>flutter_singbox_client</strong> — a powerful, modern <strong>Flutter VPN plugin</strong> and <strong>Flutter proxy library</strong> that wraps the <a href="https://github.com/SagerNet/sing-box">Sing-box</a> universal proxy core with a clean, stateless, event-driven Dart API. Whether you’re building a censorship-bypass VPN app, a privacy tool, or a custom proxy client in Flutter, this plugin gives you a production-ready foundation. 🌟</p><p><strong>Lightweight · Stateless · Engine-focused</strong></p><h3>TL;DR</h3><p>flutter_singbox_client is an Android-first (iOS, macOS, Windows, and Linux coming) Flutter plugin built on Sing-box 1.14. It supports VMess, VLESS, Trojan, Shadowsocks, Hysteria2, TUIC, WireGuard, ShadowTLS, AnyTLS, Naive, Tor, and SSH — with TUN VPN mode, HTTP/SOCKS proxy mode, a kill switch, per-app split tunneling, Clash API integration, live traffic and connection streams, hot config reload, and built-in STUN and network-quality testing.</p><h3>🤔 Why Sing-box for a Flutter VPN App?</h3><p>V2Ray and Xray got us far — but the proxy world has evolved dramatically. <strong>Sing-box</strong> is the new gold standard for proxy cores: broader protocol coverage, better performance, modern TLS features (uTLS, Reality, ECH), and an actively maintained open-source community.</p><p>If you’re choosing a Flutter VPN library or a Flutter proxy library in 2026, Sing-box is the most future-proof core to build on. And now with flutter_singbox_client, building a fully-featured VPN or proxy app in Flutter has never been cleaner or more powerful. 💜</p><h3>✨ Key Features of flutter_singbox_client</h3><p><strong>🔒 VPN Mode</strong> — Full device-wide TUN tunnel via Android VpnService</p><p><strong>🌐 Proxy Mode</strong> — HTTP/SOCKS proxy without a TUN device — no VPN permission required</p><p><strong>⚔️ Clash API</strong> — Runtime mode switching and outbound group control with latency testing</p><p><strong>📱 Per-App Proxy</strong> — Include or exclude specific apps from the tunnel (split tunneling)</p><p><strong>🌍 System Proxy</strong> — Register HTTP inbound as device-wide proxy on Android Q+</p><p><strong>🔑 Kill Switch</strong> — Block all traffic at the OS level when the tunnel is down</p><p><strong>📊 Live Traffic</strong> — Real-time upload/download speeds and session totals at ~1 Hz</p><p><strong>🔌 Connection Tracking</strong> — Full per-connection metadata, lifecycle, and close control</p><p><strong>📋 Live Logs</strong> — Real-time Go core log streaming with per-level filtering</p><p><strong>⚠️ Fault Alerts</strong> — Dedicated fault stream for actionable service errors</p><p><strong>🧠 Memory Limits</strong> — Go runtime soft memory cap (GOMEMLIMIT) with optional connection kill</p><p><strong>🧪 Network Testing</strong> — Built-in STUN (NAT type, latency) and network quality (speed, RPM) tests</p><p><strong>✅ Config Validation</strong> — Go core validation and JSON formatting before connecting</p><p><strong>🔄 Hot Reload</strong> — Reload config without restarting the service or dropping connections</p><p><strong>🚀 Boot Auto-start</strong> — Boot broadcast relay so your app can reconnect after device restart</p><p><strong>📦 Zero Persistence</strong> — No database, no shared preferences, no file I/O for user data</p><h3>📱 UI Screenshots</h3><p>Here’s a peek at the production-ready example app UI:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3igXR9bGm8NdIeGSohjTNw.jpeg" /></figure><h3>🌐 Supported Protocols: VMess, VLESS, WireGuard, Hysteria2, TUIC, and More</h3><p>Sing-box’s protocol arsenal is unmatched. With flutter_singbox_client you get native support for all major modern proxy protocols:</p><p><strong>VMess</strong> · <strong>VLESS</strong> · <strong>Trojan</strong> · <strong>Shadowsocks</strong> · <strong>Hysteria2</strong> · <strong>TUIC</strong> · <strong>WireGuard</strong> · <strong>ShadowTLS</strong> · <strong>AnyTLS</strong> · <strong>Naive</strong> · <strong>Tor</strong> · <strong>SSH</strong></p><p>Plus full support for V2Ray transports (WebSocket, gRPC, HTTPUpgrade, QUIC), TLS security (uTLS, Reality, ECH, ACME), FakeIP DNS, rule-based routing, and anti-censorship obfuscation.</p><h3>🚀 Getting Started: Install flutter_singbox_client in Your Flutter App</h3><h3>1️⃣ Add to Your Project</h3><pre>dependencies:<br>  flutter_singbox_client: ^1.0.0</pre><h3>2️⃣ Configure Android Gradle</h3><p>In android/app/build.gradle:</p><pre>android {<br>    compileSdk 35<br>    defaultConfig { minSdk 23 }<br>    compileOptions {<br>        sourceCompatibility JavaVersion.VERSION_17<br>        targetCompatibility JavaVersion.VERSION_17<br>    }<br>    kotlinOptions { jvmTarget = &quot;17&quot; }<br>}</pre><h3>3️⃣ Initialize Once at App Startup</h3><pre>import &#39;package:flutter_singbox_client/flutter_singbox_client.dart&#39;;</pre><pre>final client = SingboxClient();</pre><pre>// Initialize once — subsequent calls are no-ops<br>await client.initialize();</pre><p>Need custom paths? EngineOptions has you covered:</p><pre>await client.initialize(<br>  const EngineOptions(<br>    basePath: &#39;/data/user/0/com.example.app/files/engine&#39;,<br>    workingPath: &#39;/data/user/0/com.example.app/files/engine/working&#39;,<br>    commandServerPort: 10087, // only if 10086 conflicts<br>  ),<br>);</pre><h3>🎛️ Validate Sing-box Configs Before Connecting</h3><p>Always validate configs before connecting. checkConfig() calls the Go core directly and returns the <strong>exact error message</strong> on failure, so your users never see cryptic crashes.</p><pre>try {<br>  await client.checkConfig(myConfigJson);<br>} catch (e) {<br>  showError(&#39;$e&#39;); // full Go core error message<br>  return;<br>}</pre><pre>// Optional: pretty-print before storing<br>final formatted = await client.formatConfig(myConfigJson);</pre><h3>🔌 Connect &amp; Disconnect the VPN Tunnel in Flutter</h3><h3>Full VPN Mode (Android TUN tunnel via VpnService)</h3><pre>await client.connect(SessionOptions(<br>  config: myConfigJson,<br>  networkMode: NetworkMode.vpn,<br>  killSwitch: true,<br>  notification: NotificationConfig(<br>    title: &#39;VPN Active&#39;,<br>    showTrafficStats: true,<br>    showStopButton: true,<br>    stopButtonLabel: &#39;Disconnect&#39;,<br>  ),<br>));</pre><h3>Proxy-Only Mode (No VPN Permission!)</h3><pre>await client.connect(SessionOptions(<br>  config: proxyOnlyConfigJson, // must not contain a tun inbound<br>  networkMode: NetworkMode.proxy,<br>  notification: NotificationConfig(title: &#39;Proxy Active&#39;),<br>));</pre><h3>Disconnect</h3><pre>await client.disconnect();</pre><h3>🔥 Hot Reload — Zero Downtime Config Update</h3><p>Reload a new config <strong>without</strong> dropping existing connections or restarting the service:</p><pre>await client.reloadConfig();</pre><h3>📊 Real-Time Traffic Stats in Your Flutter VPN App</h3><pre>// Live stream at ~1 Hz<br>client.trafficStatsStream.listen((stats) {<br>  print(&#39;↑ ${stats.uplinkBps} bps&#39;);<br>  print(&#39;↓ ${stats.downlinkBps} bps&#39;);<br>});</pre><pre>// Point-in-time snapshot<br>final stats = await client.getTrafficStats();</pre><p>Use TrafficStats.zero as a safe initial value before the first event arrives.</p><h3>📱 Per-App Proxy &amp; Split Tunneling in Flutter</h3><p>Route only specific apps through the tunnel — or exclude specific apps from it:</p><pre>await client.connect(SessionOptions(<br>  config: configJson,<br>  networkMode: NetworkMode.vpn,<br>  killSwitch: true,<br>  perAppProxy: PerAppProxyOptions(<br>    mode: PerAppProxyMode.exclude,<br>    packages: [&#39;com.mycompany.internalapp&#39;],<br>  ),<br>  notification: NotificationConfig(title: &#39;VPN Active&#39;, showTrafficStats: true),<br>));</pre><h3>⚔️ Clash API: Outbound Groups &amp; URL Latency Testing</h3><p>Subscribe to outbound groups, run URL latency tests, and switch proxies at runtime:</p><pre>// Observe proxy group state<br>client.outboundGroupStream.listen((groups) {<br>  setState(() =&gt; _groups = groups);<br>});</pre><pre>// Run latency test for all outbounds in a group<br>await client.urlTest(group.tag);</pre><pre>// Select a specific outbound (selector groups only)<br>await client.selectOutbound(group.tag, &#39;HK-01&#39;);</pre><h3>⚡ Switching Clash Modes (direct / global / rule) at Runtime</h3><pre>// Available modes — emitted once on connect<br>client.clashModesStream.listen((modes) {<br>  // e.g. [&#39;direct&#39;, &#39;global&#39;, &#39;rule&#39;]<br>  setState(() =&gt; _availableModes = modes);<br>});</pre><pre>// Active mode — emitted on every change<br>client.clashModeStream.listen((mode) {<br>  setState(() =&gt; _currentMode = mode);<br>});</pre><pre>// Switch mode<br>await client.setClashMode(&#39;global&#39;);</pre><h3>🔌 Live Connection Tracking &amp; Control</h3><pre>// Full connection list — emitted on every open/close event<br>client.connectionStream.listen((connections) {<br>  setState(() =&gt; _connections = connections);<br>});</pre><pre>// Filter for active connections only<br>final active = connections.where((c) =&gt; c.isActive).toList();</pre><pre>// Close individual or all connections<br>await client.closeConnection(connection.id);<br>await client.closeAllConnections();</pre><h3>🌍 Device-Wide System Proxy on Android Q+</h3><p>Register the Sing-box HTTP inbound as the device-wide HTTP proxy — no separate proxy app needed:</p><pre>// Enable at startup<br>await client.connect(SessionOptions(<br>  config: configJson,<br>  systemProxyEnabled: true,<br>));</pre><pre>// Check status at runtime<br>final status = await client.getSystemProxyStatus();</pre><pre>// Toggle without restart<br>await client.setSystemProxyEnabled(true);<br>await client.setSystemProxyEnabled(false);</pre><h3>🧪 Built-In Network Testing: STUN &amp; Network Quality</h3><h3>STUN Test (NAT Type &amp; Latency)</h3><p>Tests external IP, latency, NAT mapping, and NAT filtering in three sequential phases:</p><pre>StreamSubscription&lt;StunProgress&gt;? _sub;<br>_sub = client.stunProgressStream.listen((p) {<br>  setState(() =&gt; _progress = p);<br>  if (!p.isRunning) _sub = null; // test complete<br>});</pre><pre>await client.startStunTest();                         // default server<br>await client.startStunTest(&#39;stun.example.com:3478&#39;); // custom server</pre><h3>Network Quality Test</h3><p>Runs for up to 30 seconds with live progress updates:</p><pre>StreamSubscription&lt;NetworkQualityProgress&gt;? _sub;<br>_sub = client.networkQualityProgressStream.listen((p) {<br>  setState(() =&gt; _progress = p);<br>  if (!p.isRunning) _sub = null;<br>});</pre><pre>await client.startNetworkQualityTest();<br>await client.stopNetworkQualityTest(); // cancel early</pre><h3>🚀 Boot Auto-Start: Reconnect VPN After Device Reboot</h3><p>The SDK’s BootReceiver relays a broadcast after device reboot. Register your own receiver to reconnect from your persisted state:</p><pre>class BootRestartReceiver : BroadcastReceiver() {<br>    override fun onReceive(context: Context, intent: Intent?) {<br>        if (intent?.action != &quot;dev.amirzr.singbox.DEVICE_BOOTED&quot;) return<br>        // Read your persisted &quot;was running&quot; flag and re-launch<br>    }<br>}</pre><pre>&lt;receiver android:name=&quot;.BootRestartReceiver&quot; android:exported=&quot;false&quot;&gt;<br>    &lt;intent-filter&gt;<br>        &lt;action android:name=&quot;dev.amirzr.singbox.DEVICE_BOOTED&quot; /&gt;<br>    &lt;/intent-filter&gt;<br>&lt;/receiver&gt;</pre><h3>🌟 Tech Stack &amp; Requirements</h3><p><strong>Core Engine:</strong> Sing-box 1.14.0-alpha.20 (Go)</p><p><strong>Android:</strong> API 23+ (Marshmallow), 16 KB page size ✅</p><p><strong>Flutter:</strong> &gt;= 3.19.0</p><p><strong>Dart:</strong> &gt;= 3.3.0</p><p><strong>Java Target:</strong> 17</p><p><strong>License:</strong> GPL-3.0</p><h3>🎨 Real-World Use Cases for flutter_singbox_client</h3><p>Imagine building:</p><p><strong>Privacy-First Browsers</strong> 🛡️ — Full TUN tunnel, zero traffic leaks</p><p><strong>Secure Messaging Apps</strong> 💬 — Proxy layer over end-to-end encryption</p><p><strong>Streaming Media Players</strong> 🎥 — Bypass geo-restrictions with Hysteria2</p><p><strong>Corporate VPN Solutions</strong> 🏢 — Split tunneling for enterprise workflows</p><p><strong>Censorship-Bypass Tools</strong> 🌍 — Reality + TUIC for the toughest networks</p><p><strong>Developer Proxy Utilities</strong> ⚙️ — Route debug traffic, inspect connections live</p><h3>🎯 Perfect For</h3><p>✅ <strong>Flutter Developers</strong> wanting plug-and-play VPN/proxy integration</p><p>✅ <strong>Privacy Advocates</strong> building censorship-resistant tools</p><p>✅ <strong>Network Engineers</strong> crafting custom routing and policy tools</p><p>✅ <strong>Developers migrating from V2Ray</strong> who need broader protocol support</p><p>✅ <strong>Companies</strong> building enterprise-grade secure connectivity</p><h3>🆚 flutter_singbox_client vs flutter_v2ray_client: Which Should You Choose?</h3><p><strong>Core Engine:</strong> flutter_v2ray_client uses Xray, flutter_singbox_client uses Sing-box</p><p><strong>Protocols:</strong></p><ul><li>Hysteria2: ✅ Both (v3.2+ in v2ray) vs ✅ Native in singbox</li><li>TUIC: ❌ Not in v2ray vs ✅ In singbox</li><li>WireGuard: ❌ Not in v2ray vs ✅ In singbox</li><li>ShadowTLS / AnyTLS: ❌ Not in v2ray vs ✅ In singbox</li><li>Tor / SSH: ❌ Not in v2ray vs ✅ In singbox</li></ul><p><strong>Advanced Features:</strong></p><ul><li>Kill Switch: ❌ Not in v2ray vs ✅ In singbox</li><li>Hot Config Reload: ❌ Not in v2ray vs ✅ In singbox</li><li>Clash API: ❌ Not in v2ray vs ✅ In singbox</li><li>Connection Tracking: ❌ Not in v2ray vs ✅ In singbox</li><li>STUN / Network Test: ❌ Not in v2ray vs ✅ In singbox</li><li>Boot Auto-start: ❌ Not in v2ray vs ✅ In singbox</li><li>System Proxy: ❌ Not in v2ray vs ✅ In singbox</li></ul><p><strong>Bottom Line:</strong> Both packages are great — but flutter_singbox_client is the evolution. If you&#39;re starting a new Flutter VPN project in 2026, this is the one to pick. 🚀</p><h3>❓ Frequently Asked Questions</h3><p><strong>What is flutter_singbox_client?</strong></p><p>It’s an open-source Flutter plugin that wraps the Sing-box proxy core in a stateless, event-driven Dart API. It lets Flutter developers build VPN and proxy apps with full TUN tunneling, kill switch, per-app proxy, and live traffic monitoring.</p><p><strong>Is flutter_singbox_client free and open source?</strong></p><p>Yes. It’s released under GPL-3.0 on <a href="https://github.com/amir-zr/flutter_singbox_client">GitHub</a> and published to <a href="https://pub.dev/packages/flutter_singbox_client">pub.dev</a>.</p><p><strong>Which proxy protocols does it support?</strong></p><p>VMess, VLESS, Trojan, Shadowsocks, Hysteria2, TUIC, WireGuard, ShadowTLS, AnyTLS, Naive, Tor, and SSH — plus V2Ray transports (WebSocket, gRPC, HTTPUpgrade, QUIC) and modern TLS features (uTLS, Reality, ECH, ACME).</p><p><strong>Does it support iOS?</strong></p><p>iOS and macOS support are currently in active development. Windows and Linux are planned. Android is fully supported today.</p><p><strong>What’s the difference between VPN mode and proxy mode?</strong></p><p>VPN mode opens a system-wide TUN tunnel via Android’s VpnService and requires the user to grant VPN permission. Proxy mode runs an HTTP/SOCKS inbound only — no VPN permission needed, but apps must opt in to the proxy.</p><p><strong>Can I use flutter_singbox_client in a production app?</strong></p><p>Yes. It’s built on Sing-box 1.14, supports Android API 23+ (including the 16 KB page size requirement for the Play Store), and is designed for production use with a stateless architecture and no persistent storage.</p><p><strong>How is it different from flutter_v2ray_client?</strong></p><p>flutter_v2ray_client wraps the Xray core. flutter_singbox_client wraps Sing-box and adds protocols (TUIC, WireGuard, ShadowTLS, AnyTLS, Tor, SSH), kill switch, hot config reload, Clash API, connection tracking, network testing, and system proxy. See the comparison above.</p><p><strong>Do I need root access?</strong></p><p>No. Everything runs in user space through Android’s standard VpnService API.</p><h3>🗺️ Supported Platforms</h3><p><strong>Android:</strong> ✅ Done</p><p><strong>iOS:</strong> 🔧 In Development</p><p><strong>macOS:</strong> 🔧 In Development</p><p><strong>Windows:</strong> 🗓 Planned</p><p><strong>Linux:</strong> 🗓 Planned</p><h3>💝 Community Love</h3><p>This project thrives on community input! Whether you’re:</p><ul><li>🐛 Reporting bugs</li><li>💻 Contributing code</li><li>📚 Improving documentation</li><li>⭐ Starring the repo</li><li>☕ Supporting via Buy Me a Coffee to accelerate iOS &amp; desktop support</li></ul><p>Every contribution makes the Flutter privacy ecosystem stronger. Check out the <a href="https://github.com/amir-zr/flutter_singbox_client/blob/main/CONTRIBUTING.md">Contributing Guide</a> to get started.</p><h3>👨‍💻 About Me</h3><p>Hey there! I’m <strong>Amir</strong> — a passionate Full Stack developer obsessed with privacy, performance, and clean Flutter APIs.</p><p>If flutter_v2ray_client was my first love letter to the Flutter community, flutter_singbox_client is the sequel — more powerful, more protocol-rich, and built with everything I&#39;ve learned since. 🎯</p><p>📱 <strong>Portfolio</strong>: <a href="https://amirzr.dev/">amirzr.dev</a> 💼 <strong>LinkedIn</strong>: <a href="https://www.linkedin.com/in/amir-ziari/">Amir Ziari</a> 🐦 <strong>X (Twitter)</strong>: <a href="https://x.com/amirzrdev">@amirzrdev</a> ✈️ <strong>Telegram</strong>: <a href="https://t.me/AmirZrDevv">@AmirZrDevv</a></p><h3>🎉 Final Thoughts</h3><p>Sing-box represents the future of open-source proxy technology, and I’m incredibly proud to be building the Flutter bridge to it.</p><p>Whether you’re bypassing censorship, building a privacy product, or just curious about cutting-edge networking in Flutter — <strong>flutter_singbox_client</strong> gives you the tools to do it, cleanly and confidently.</p><p><strong>Ready to take your Flutter VPN app to the next level?</strong></p><p>Give flutter_singbox_client a ⭐ and let&#39;s build the future of private networking together! 🚀</p><h3>🔗 Links</h3><p><strong>flutter_singbox_client</strong></p><ul><li>📦 <a href="https://pub.dev/packages/flutter_singbox_client">flutter_singbox_client | Pub.dev</a></li><li>🐙 <a href="https://github.com/amir-zr/flutter_singbox_client">flutter_singbox_client | GitHub</a></li><li>📚 <a href="https://github.com/amir-zr/flutter_singbox_client/blob/main/doc/getting-started.md">Getting Started Guide</a></li><li>📖 <a href="https://github.com/amir-zr/flutter_singbox_client/blob/main/doc/api-reference.md">API Reference</a></li><li>🛡️ <a href="https://github.com/amir-zr/flutter_singbox_client/blob/main/doc/supported-protocols.md">Supported Protocols</a></li><li>💬 <a href="https://github.com/amir-zr/flutter_singbox_client/issues">Issues &amp; Discussions</a></li><li>☕ <a href="https://www.buymeacoffee.com/amirzr.dev">Buy Me A Coffee</a></li></ul><p><strong>flutter_v2ray_client (my previous package)</strong></p><ul><li>📝 <a href="https://medium.com/@amirzr/introducing-flutter-v2ray-your-ultimate-flutter-vpn-solution-bc46ddab2f8f">Introducing flutter_v2ray | Medium</a></li><li>📦 <a href="https://pub.dev/packages/flutter_v2ray_client">flutter_v2ray_client | Pub.dev</a></li><li>🐙 <a href="https://github.com/amir-zr/flutter_v2ray_client">flutter_v2ray_client | GitHub</a></li></ul><p><strong>Connect with me</strong></p><ul><li>💼 <a href="https://www.linkedin.com/in/amir-ziari/">LinkedIn</a></li><li>🐦 <a href="https://x.com/amirzrdev">X (Twitter)</a></li><li>✈️ <a href="https://t.me/AmirZrDevv">Telegram</a></li></ul><p><em>Have questions or feedback? Drop a comment below or reach out on GitHub — I read every single one! Let’s build something amazing together. 🎯</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89c9162600e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Flutter V2Ray Client v3.2.0 + Hysteria2 — A Major Leap in VPN Performance]]></title>
            <link>https://medium.com/@amirzr/flutter-v2ray-client-v3-2-0-hysteria2-a-major-leap-in-vpn-performance-cdb6d47350d8?source=rss-aeee9b132f50------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdb6d47350d8</guid>
            <category><![CDATA[v2ray]]></category>
            <category><![CDATA[hysteria]]></category>
            <category><![CDATA[xray-core]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Amir Ziari]]></dc:creator>
            <pubDate>Sun, 26 Apr 2026 15:10:04 GMT</pubDate>
            <atom:updated>2026-04-26T15:10:04.645Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vC-OmeYfVYlxm4eB3qX2Yw.png" /></figure><p>We’re excited to announce <strong>version 3.2.0</strong> of the Flutter V2Ray Client — a release that significantly upgrades the core architecture, improves mobile stability, and introduces powerful new networking capabilities.</p><p>This update is not just a routine bump — it’s a <strong>core-level evolution</strong>, powered by the latest <strong>Xray v26.4.17</strong>.</p><h3>🔥 What’s New in v3.2.0?</h3><h3>🧠 Core Upgrade — Xray v26.4.17</h3><p>We’ve updated the embedded core from the <strong>v25.10.15 line to v26.4.17</strong>, bringing a wide range of improvements across performance, networking, and security.</p><h3>⚙️ Architecture Improvements</h3><h3>📡 Native TUN Mode (Android VPN)</h3><p>The biggest change in this release:</p><ul><li>Full integration with Android’s VpnService</li><li>True <strong>device-wide VPN</strong> via TUN interface</li><li>Reduced dependency on legacy <strong>tun2socks setups</strong></li></ul><p>👉 Result:</p><ul><li>Better performance</li><li>Lower latency</li><li>More stable connections on mobile networks</li></ul><h3>🎯 Process-Based Routing</h3><p>Fine-grained traffic control is now possible:</p><ul><li>Route traffic per-app (where Android allows)</li><li>Better control over which apps use VPN</li></ul><p>👉 Ideal for:</p><ul><li>Split tunneling</li><li>Battery optimization</li><li>Advanced routing rules</li></ul><h3>🌐 Protocol &amp; Networking Enhancements</h3><h3>⚡ Hysteria2 Support</h3><p>A modern UDP-based protocol designed for mobile conditions:</p><ul><li>High throughput</li><li>Better performance on unstable networks</li><li>Reduced latency under packet loss</li></ul><h3>🔄 UDPhop</h3><p>Dynamic port hopping for UDP traffic:</p><ul><li>Keeps connections alive under throttling</li><li>Bypasses port-based restrictions</li></ul><h3>🦎 Salamander Obfuscation</h3><p>An optional obfuscation layer:</p><ul><li>Makes traffic harder to detect</li><li>Improves resilience against DPI (Deep Packet Inspection)</li></ul><h3>🕵️ Advanced Obfuscation — FinalMask</h3><p>More tools to stay undetectable:</p><ul><li>Custom HTTP/TCP headers</li><li>TCP fragmentation</li><li>UDP noise injection</li><li>Randomized traffic patterns</li></ul><p>👉 Result:</p><ul><li>Stronger resistance against fingerprinting</li><li>Better reliability in restricted networks</li></ul><h3>🔐 Security Upgrades</h3><h3>📌 Certificate Pinning</h3><ul><li>Replaces insecure TLS options</li><li>Uses pinnedPeerCertSha256</li></ul><p>👉 Prevents:</p><ul><li>MITM attacks</li><li>Fake certificates</li></ul><h3>🛡️ REALITY Enhancements</h3><ul><li>Stricter certificate validation</li><li>Better detection of interception</li></ul><p>👉 Especially important on:</p><ul><li>Public WiFi</li><li>Mobile networks</li></ul><h3>🌍 DNS &amp; Routing Improvements</h3><h3>🧭 XDNS</h3><ul><li>More stable DNS resolution on mobile</li><li>Better behavior during network switches (WiFi ↔ Mobile Data)</li><li>Improved routing consistency in TUN mode</li></ul><h3>📱 Mobile Performance &amp; Stability</h3><p>This release focuses heavily on real-world Android usage:</p><ul><li>Reduced memory consumption (optimized geodata)</li><li>Fewer runtime crashes</li><li>Better handling of long-lived background sessions</li><li>Improved performance on weak or unstable networks</li></ul><h3>🔌 Android TUN Improvements</h3><p>We’ve refined the VPN service layer:</p><ul><li>More stable packet handling</li><li>Reduced packet loss on high-latency connections</li><li>Better behavior under Android background restrictions</li><li>Fewer stalls and race conditions</li></ul><h3>🔄 What Changed</h3><ul><li>Updated libv2ray (AAR)</li><li>Updated V2rayCoreManager</li><li>Fully aligned with new Xray APIs and architecture</li></ul><h3>🎯 Why This Release Matters</h3><p>Version <strong>3.2.0</strong> is a major step toward:</p><ul><li><strong>True native VPN performance on Android</strong></li><li><strong>Stronger censorship resistance</strong></li><li><strong>More reliable long-term connections</strong></li><li><strong>Cleaner and more modern architecture</strong></li></ul><p>If you’re building a VPN app or integrating V2Ray into Flutter, this update gives you a <strong>solid, future-proof foundation</strong>.</p><h3>📦 Get Started</h3><p>👉 GitHub: <a href="https://github.com/amir-zr/flutter_v2ray_client">https://github.com/amir-zr/flutter_v2ray_client</a></p><p>If you’ve been waiting for a more stable, powerful, and production-ready mobile VPN core — this is it.</p><h3>🔗 Links</h3><ul><li>📦 <a href="https://pub.dev/packages/flutter_v2ray_client">flutter v2ray | Pub.dev</a></li><li>🐙 <a href="https://pub.dev/packages/flutter_v2ray_client">flutter v2ray | Github</a></li><li>📚 <a href="https://github.com/amir-zr/flutter_v2ray_client/blob/main/README.md">Documentation</a></li><li>💬 <a href="https://github.com/amir-zr/flutter_v2ray_client/issues">Issues &amp; Discussions</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdb6d47350d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Introducing flutter v2ray : Your Ultimate Flutter VPN Solution!]]></title>
            <link>https://medium.com/@amirzr/introducing-flutter-v2ray-your-ultimate-flutter-vpn-solution-bc46ddab2f8f?source=rss-aeee9b132f50------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc46ddab2f8f</guid>
            <category><![CDATA[vpn-service]]></category>
            <category><![CDATA[v2ray]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[vpn]]></category>
            <dc:creator><![CDATA[Amir Ziari]]></dc:creator>
            <pubDate>Tue, 11 Nov 2025 22:38:22 GMT</pubDate>
            <atom:updated>2025-11-11T22:41:09.923Z</atom:updated>
            <content:encoded><![CDATA[<h3>🚀 Introducing flutter v2ray : Your Ultimate Flutter VPN Solution!</h3><figure><img alt="flutter v2ray" src="https://cdn-images-1.medium.com/max/1024/1*ovt57DLcJVl7jkwdOE_CzA.png" /></figure><p>Hey Flutter fam! 👋<br>I’m absolutely thrilled to share my very first open-source package with you all! After months of hard work, I’m excited to introduce <strong>flutter_v2ray_client</strong> — a powerful Flutter plugin that brings the full power of <strong>V2Ray/Xray</strong> to your mobile applications! 🌟</p><h3>🎯 What Makes This Special?</h3><p>As someone who’s passionate about privacy and performance, I wanted to create something that would make it incredibly easy for Flutter developers to integrate robust VPN and proxy functionality into their apps.</p><p>This isn’t just another wrapper — it’s a thoughtfully designed, <strong>modern Flutter plugin</strong> with a clean API that you’ll actually enjoy using! 💜</p><h3>✨ Key Features That’ll Blow Your Mind</h3><h3>🔐 Dual Mode Support</h3><ul><li><strong>VPN Mode</strong>: Full system-level tunneling for complete privacy protection</li><li><strong>Proxy Mode</strong>: Lightweight proxy-only connections for specific app traffic</li></ul><h3>🌐 Multi-Protocol Powerhouse</h3><p>Seamlessly works with:</p><ul><li><strong>VMess</strong> — The classic choice for speed and reliability</li><li><strong>VLess</strong> — Lightweight and efficient modern protocol</li><li><strong>Trojan</strong> — Stealthy connections that blend with normal traffic</li><li><strong>Socks</strong> — Universal proxy protocol support</li><li><strong>ShadowSocks</strong> — Popular choice for censorship resistance</li></ul><h3>📊 Real-Time Monitoring Dashboard</h3><p>Get live updates on:</p><ul><li>Connection status and health</li><li>Upload/download speeds</li><li>Total traffic usage</li><li>Connection duration</li><li>Server response times</li></ul><h3>🎛️ Flexible Configuration</h3><pre>// Parse any V2Ray sharing link effortlessly<br>V2RayURL parser = V2ray.parseFromURL(&quot;your_v2ray_link_here&quot;);<br><br>// Customize everything to your needs<br>parser.inbound[&#39;port&#39;] = 10890;<br>parser.log[&#39;loglevel&#39;] = &#39;info&#39;;<br>parser.dns = {&quot;servers&quot;: [&quot;1.1.1.1&quot;]};</pre><h3>🛡️ Smart Traffic Management</h3><ul><li><strong>App Exclusion</strong> — Choose specific apps to bypass VPN traffic</li><li><strong>LAN Bypass</strong> — Keep local network traffic flowing normally</li><li><strong>Socket Protection</strong> — Prevents connection loops and ensures stability</li></ul><h3>🚀 Getting Started (It’s Super Easy!)</h3><h3>1️⃣ Add to Your Project</h3><pre>flutter pub add flutter_v2ray_client</pre><p>2️⃣ Basic Implementation</p><pre>import &#39;package:flutter_v2ray_client/flutter_v2ray.dart&#39;;<br><br>final V2ray v2ray = V2ray(<br>  onStatusChanged: (status) {<br>    print(&#39;Connection status: ${status.state}&#39;);<br>  },<br>);<br><br>// Initialize and connect<br>await v2ray.initialize(<br>  notificationIconResourceType: &quot;mipmap&quot;,<br>  notificationIconResourceName: &quot;ic_launcher&quot;,<br>);<br><br>V2RayURL parser = V2ray.parseFromURL(&quot;your_v2ray_link_here&quot;);<br><br>if (await v2ray.requestPermission()) {<br>  await v2ray.startV2Ray(<br>    remark: parser.remark,<br>    config: parser.getFullConfiguration(),<br>    proxyOnly: false,<br>  );<br>}</pre><h3>🎨 Real-World Usage</h3><p>Imagine building apps like:</p><ul><li><strong>Privacy-First Browsers</strong> 🛡️</li><li><strong>Secure Messaging Apps</strong> 💬</li><li><strong>Streaming Media Players</strong> 🎥</li><li><strong>Corporate VPN Solutions</strong> 🏢</li><li><strong>Developer Tools</strong> ⚙️</li></ul><h3>🌟 What’s Under the Hood?</h3><ul><li><strong>Android-First</strong> — Built with Xray 25.10.15 core for max performance</li><li><strong>Modern Flutter</strong> — Compatible with Flutter 3.16.0+ &amp; Dart 3.1.0+</li><li><strong>Clean Architecture</strong> — Platform interface ready for iOS, Windows, Linux, macOS</li><li><strong>Google Play Ready</strong> — Supports Android 16 KB page size</li><li><strong>Open Source</strong> — MIT licensed</li></ul><h3>🎯 Perfect For</h3><p>✅ <strong>App Developers</strong> wanting to add VPN functionality<br>✅ <strong>Privacy Advocates</strong> building secure apps<br>✅ <strong>Network Engineers</strong> creating custom proxy tools<br>✅ <strong>Students</strong> learning plugin development<br>✅ <strong>Companies</strong> needing enterprise VPNs</p><h3>🛣️ Roadmap &amp; Future Plans</h3><h3>🚀 Performance Boost</h3><ul><li>Integration with <a href="https://github.com/heiher/hev-socks5-tunnel">hev-socks5-tunnel</a></li><li>Enhanced connection stability &amp; resource efficiency</li></ul><h3>🌍 Multi-Platform Expansion</h3><ul><li><strong>iOS Support</strong> (community donations welcome!)</li><li><strong>Windows, Linux, macOS</strong> desktop versions</li><li>Cross-platform consistency</li></ul><h3>⚡ Advanced Features</h3><ul><li>Traffic routing &amp; filtering</li><li>Custom UI components</li><li>Extended protocol support</li></ul><h3>💝 Community Love</h3><p>This project thrives on community contributions! Whether you’re:</p><ul><li>🐛 Reporting bugs</li><li>💻 Contributing code</li><li>📚 Improving docs</li><li>🎨 Creating example apps</li><li>🌟 Spreading the word</li></ul><p>Check out our <a href="https://github.com/amir-zr/flutter_v2ray_client/blob/main/CONTRIBUTING.md">Contributing Guide</a> to get started.</p><h3>👨‍💻 About Me</h3><p>Hey there! I’m <strong>Amir</strong>, a passionate Full Stack developer who loves creating tools that make privacy and security accessible to everyone.</p><p>📱 <strong>Portfolio</strong>: <a href="https://amirzr.dev/">amirzr.dev</a></p><h3>🎉 Final Thoughts</h3><p>Building <strong>flutter_v2ray_client</strong> has been an incredible journey.<br>I’m so grateful to the Flutter community for the amazing ecosystem that made this possible — and I can’t wait to see what you’ll build with it!</p><p><strong>Ready to supercharge your Flutter apps with VPN capabilities?</strong><br>Give flutter_v2ray_client a try today! 🚀</p><h3>🔗 Links</h3><ul><li>📦 <a href="https://pub.dev/packages/flutter_v2ray_client">flutter v2ray | Pub.dev</a></li><li>🐙 <a href="https://pub.dev/packages/flutter_v2ray_client">flutter v2ray | Github</a></li><li>📚 <a href="https://github.com/amir-zr/flutter_v2ray_client/blob/main/README.md">Documentation</a></li><li>💬 <a href="https://github.com/amir-zr/flutter_v2ray_client/issues">Issues &amp; Discussions</a></li></ul><p><em>Have questions or feedback? Drop a comment below or reach out on GitHub — let’s build something amazing together! 🎯</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc46ddab2f8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>