Initial MeshPort SDK and cross-platform client

This commit is contained in:
shenlei
2026-10-10 15:16:32 +09:00
commit e73e599165
664 changed files with 209894 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# MeshPort Logo v1
通过内置 imagegen 生成。设计为青蓝渐变底色、白色 M 形连线与节点,用于应用图标。透明 PNG 原图:`meshport-logo-v1.png`。已配置到 macOS、iOS、Android、Windows 图标资源和 Flutter 页头。iOS 图标按平台要求铺底去除透明通道;其他图标保留透明度。macOS 构建已验证,其他平台资源尚未打包验证。
使用 Pillow 运行 `scripts/generate-app-icons.py` 可从原图重新生成各尺寸资源。正式应用名称为 MeshPort,保留原应用标识及钥匙串服务名以兼容已保存配置。
## 生成提示词
Use case: logo-brand. Design a polished final app icon for MeshPort, a cross-platform virtual mesh networking application powered by Rust and compatible with EasyTier, used to connect devices and game servers. Single icon only, centered, front-facing, square composition. Create an original bold geometric white monogram that subtly combines an M with interconnected mesh paths and the idea of a port or gateway. Three or four strong connected endpoints integrated into the letter shape, visually balanced, large simple silhouettes, excellent readability at 32px. Refined teal and deep ocean blue palette consistent with a networking dashboard: rich teal rounded-square tile with a very subtle blue-to-teal tonal gradient, white symbol, small cyan accent only if useful. Flat vector-like graphic, crisp edges, restrained premium utility aesthetic. Plenty of safe padding around the glyph. Tile fills most of canvas, transparent outside the rounded corners. No wordmark, no letters other than the abstract M glyph, no captions, no mockup, no device, no shadows outside tile, no glass, no metallic 3D, no padlock, no globe, no wifi symbol, no circuit-board complexity. Deliver a single large high-resolution app icon.
参数:transparent_background = true。
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

@@ -0,0 +1,8 @@
Use case ui-mockup. Create a high-resolution cohesive Chinese mobile UI design board for MeshPort. Reference image is prior concept STYLE reference: use only its mobile styling, warm ivory, thin warm gray borders, white cards, pale cyan status backgrounds, teal primary actions, ochre relay badges, monospaced numeric metrics. This is an embedded application-only virtual networking SDK test app, no global VPN, no system routing or DNS controls. Need ALL SIX full mobile screens, arranged exactly THREE columns by TWO rows, equally sized tall screenshots, no hardware frames, no perspective, no overlaps, generous gutters and short numbered captions outside each screen. Canvas portrait-ish accommodates six 390x844-style screens. Large readable UI labels, restrained compact text, polished product sketch. Board title 'MeshPort · 移动端界面草图' and subtitle '应用内组网 / 连接测试 / 稳定性验证'. Every screen common bottom nav four tabs '概览' '节点' '测试' '设置'; appropriate selected tab. Stability under 测试 via segmented subnavigation; logs under 设置 via back navigation, do not add inconsistent nav tabs. Every screen status bar 9:41 battery, restrained header. Values demo only.
Screen 01 概览: MeshPort logo header network selector GameNet, cyan 已连接 card 10.77.0.11 运行02:14:36 small 应用内网络. Hero 28 ms 服务器RTT, tiny upload/download 114/156 kbps, recent60s teal chart ms and time axes, two cards 测试丢包率0.0% 在线节点3/3, Game Server row 10.77.0.2 teal直连28ms. Buttons 开始连接测试 and 断开连接. Overview selected.
Screen02 节点: header 节点 online 3/3, search 搜索节点或虚拟IP, filter 全部 直连 中继. Three distinct rows Game Server 10.77.0.2 直连28ms, Relay Tokyo 10.77.0.3 中继46ms, Laptop10.77.0.12 直连12ms. Expanded Game Server detail card 虚拟IP10.77.0.2 连接方式直连 传输UDP 最近活跃刚刚. button 测试此节点. Nodes selected.
Screen03 连接测试: header 测试 with two tabs 连接测试 selected 稳定性. Fields 目标IP10.77.0.2 端口25565, TCP/UDP segmented TCP selected, explanatory short 'TCP 检查连接;UDP 测试需服务端响应'. button 开始测试. Result cyan card TCP连接成功 28ms. secondary results 发送64KB 接收64KB 数据校验通过, small recent records with times and TCP成功 UDP超时. No imply arbitrary UDP echo support. Test selected.
Screen04 稳定性: header 测试 with tabs 连接测试 稳定性 selected. profile 循环重连 / 持续传输 / 并发连接 selectable chips. target10.77.0.2:25565, count100 interval1s. Running status '测试进行中' 68/100 clear teal progress bar, results 成功68 失败0 平均重连420ms. small trend sparkline, outlined 停止测试, subdued 导出报告. Test selected.
Screen05 日志: back chevron 日志 top export icon, text search 搜索日志, level chips 全部 信息 警告 错误, tidy chronological readable entries 14:32:08 TCP连接成功,14:32:07 直连已建立,14:31:55 节点加入网络,14:31:52 尝试中继连接 amber. Each brief content and timestamp mono. bottom outline 导出日志. Settings selected.
Screen06 设置: header 设置. Network configuration grouped rows 网络名称GameNet, 虚拟IP10.77.0.11, 接入节点2个, 网络密钥 masked bullets with eye icon; 导入配置 and 导出配置 buttons. 日志 row, 自动重连 toggle on. about group 核心版本0.1.0-dev SDK版本0.1.0-dev, 应用内网络 informational small '仅通过SDK接口的连接进入虚拟网络'. No kernel VPN, no permissions to modify whole network. Settings selected.
Keep good whitespace and hierarchy, no clipping, no random duplicated labels, no English brand SwiftWire, no default route or routed apps, no device renders. All screens should visibly belong to same app and be complete within their screenshot bounds.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

@@ -0,0 +1,14 @@
Use case ui-mockup. Create revised MeshPort mobile NETWORK CONFIGURATION design board, four detailed screens in a 2 columns x 2 rows grid, high resolution readable Chinese. Match attached previous mockups exactly in aesthetic: warm ivory, white rounded form groups thin gray border, pale cyan, teal primary controls, charcoal text, mono addresses. Screens full flat front facing, no hardware frames, no perspective. Header board 'MeshPort · 网络配置草图' subtitle '基础接入 / 连接策略 / 高级配置 / 导入校验'. This is proposed design for embedded application-only Rust EasyTier-compatible SDK, supported options still to be verified. Do not imply system VPN, route or DNS changes. All four screens header back chevron 网络配置 and segmented section nav 基础 连接 高级. Screens show selected configuration GameNet; use a small bottom caption board '配置支持范围以 SDK 固定版本为准 · 示例数据'.
Screen01 基础 active: header small GameNet 编辑配置. Identity form fields '配置名称' GameNet (local display name), '节点名称' MeshPort-iPhone, '网络名称' game-net, '认证方式' 网络密钥 chevron, masked 网络密钥 eye. Address card '虚拟地址' segmented '自动分配' selected '手动指定', small 当前地址10.77.0.11, row 虚拟IPv6 可选 chevron. Initial peers card '初始节点' '+添加', two monospace URLs udp://relay.example.com:11010 and tcp://backup.example.com:11010 with remove icons. Small link '共享节点设置 ›'. footer 保存配置 teal and tiny '保存后重新连接生效'. No hostname or addresses that are sensitive.
Screen02 连接 active: group 传输设置 rows '首选协议' UDP chevron, '监听设置' 自动 chevron, '底层IPv6' 启用 toggle, '连接策略' 自动直连与中继 chevron. group 路径选择 '延迟优先' toggle on, 'UDP打洞' toggle on, 'TCP打洞' toggle on; footnote '打洞失败时允许中继'. STUN设置 group 默认服务器 selected and 自定义服务器 chevron, separate IPv4 / IPv6 server lists entries manageable; label 公网映射与UPnP chevron '待验证' neutral badge, not auto on. Footer 保存配置.
Screen03 高级 active: Security group '安全模式' 与服务器一致 chevron, '本地身份密钥' 安全存储 chevron, '临时接入凭据' 可选 chevron, '加密算法' 默认 chevron. relay group '私有模式' toggle on, '外部网络中继' 关闭 row, '中继带宽限制' 未设置 row. run group '运行时线程' 自动 chevron, '更多兼容选项' chevron; label 待SDK验证. subtle informative box '应用内模式' '系统网卡、系统路由和系统DNS选项不在此模式启用'. bottom outline 导入TOML and teal 保存配置. Do not expose disable encryption switch casually, no arbitrary magic-DNS or kernel route toggles.
Screen04 standalone '导入配置' back header, source buttons 文件 粘贴 扫码, small monospace TOML preview real syntactically coherent content:
hostname = "MeshPort-iPhone"
ipv4 = "10.77.0.11"
[[peer]]
uri = "udp://relay.example.com:11010"
[network_identity]
network_name = "game-net"
network_secret = "••••••••"
Use masked preview only not actual valid secret claim. Below '校验结果' checkmark '基础配置可解析', amber '2项系统配置不适用', rows 'dev_name' '系统网卡选项' and 'proxy_forward_by_system' '系统转发选项'. small actionable choice '移除不适用项后导入' unchecked confirmation choice, secondary '查看原始配置'. Export include secrets toggle OFF label '导出包含密钥' (perhaps import screen omit export toggle to keep clear). Footer outline 取消 and teal 导入兼容配置. No silently ignore options, validation explicit. Don't claim schema validation implemented, visual conceptual only.
Layout realistic scrollable forms with bottom safe area, good whitespace but sufficient information, labels must be legible. No bottom main navigation inside config editor. Each screen caption below 01 基础配置 02 连接与传输 03 安全与高级 04 导入与校验. This board supplements previous six main screens.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

@@ -0,0 +1,4 @@
Use case: ui-mockup. Generate a polished first UI concept sketch board for MeshPort, a cross-platform Flutter tool for validating an embedded Rust EasyTier-compatible application-only virtual networking SDK. Reference image is STYLE REFERENCE ONLY: warm ivory background, restrained teal, ochre relay indicators, monospaced network metrics, fine gray borders, readable spacious rounded cards. Do not copy SwiftWire branding or global VPN functionality.
Composition: landscape high resolution design board, one large desktop dashboard on left (roughly 70% width) and one tall mobile dashboard on right (30%), both fully visible with generous margins, no devices, no perspectives, flat front-facing app screenshots. Small board heading 'MeshPort / UI 草图 · 01'. Realistic cohesive Flutter product layout, simplified and credible rather than marketing. Use readable Chinese labels and English technical terms.
Desktop: slim left sidebar MeshPort simple geometric mesh icon; nav 概览 selected, 节点, 连接测试, 稳定性, 日志, 设置. Main top bar 概览 with network selector 'GameNet' and outline '导入配置'. Teal pale status strip '已连接' '10.77.0.11' '运行 02:14:36' and outline '断开连接'. A quiet scope label '应用内网络' beside status. Four metric blocks '服务器 RTT' 28 ms, '测试丢包率' 0.0%, '在线节点' 3 / 3, '活动连接' 6. Main middle two columns: broad recent-60-seconds teal latency line chart with explicit ms axis; right compact quick-test panel '连接测试' target 10.77.0.2:25565, TCP / UDP segmented control, button '开始测试', status 'TCP 握手成功'. Under chart peer table '节点' rows Game Server 10.77.0.2 '直连' 28 ms, Relay Tokyo '中继节点' RTT 46 ms, Laptop 10.77.0.12 '直连' 12 ms. On bottom right small stability summary '稳定性测试' '循环重连 100 / 100' '数据校验 通过' secondary '查看报告'. Bottom slim event log '14:32:08 已连接 Game Server'. Metric figures are illustrative demo data.
Mobile matching visual: MeshPort header network dropdown GameNet, connected strip 已连接 10.77.0.11, prominent 28 ms RTT with upload download rates 114 / 156 kbps small, compact teal latency chart, two-column cards 测试丢包率 0.0% and 在线节点 3/3, Game Server row direct badge 28ms, primary '开始连接测试' and subtle '断开连接'. Bottom nav 概览 节点 测试 设置. No default route, routed apps, Stop VPN, system VPN toggle or global traffic capture. No blurry text, no redactions, no ornamental fake data. Professional calm refined mockup with subtle pencil-free digital wireframe feel, near-production visual hierarchy.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB