Skip to content

MemexIntranet Office Instant Messaging System

Dual-engine IM for a physically isolated intranet — messaging works without a server, and everything is fully archived the moment one connects; built in C++17 + Qt

Memex

System Architecture ​

Memex system architecture diagram


UI Preview ​

The UI preview covers eight desktop screens and four mobile screens, in the brand orange (#e16531), with both light and dark variants available. Desktop and mobile are split into two carousels; the button in the top-right corner switches the screenshot theme, and auto-advance, left/right arrows, keyboard arrow keys, and touch swipes are supported. (Progress on swapping in live shots: all eight desktop and all four mobile screens have been replaced with live client screenshots, one light and one dark each, and all twelve carousel slots are live; live screenshots are not promised for the HarmonyOS client. See UI Prototypes and Preview.)

Desktop (Windows / UOS / Kylin / macOS) ​

Desktop · Unauthenticated Direct Mode(浅色)
Desktop · Unauthenticated Direct ModeZero-configuration discovery of endpoints on the same subnet; retained on the local machine, not archived

Mobile (Android / iOS / HarmonyOS) ​

Mobile · Setup Wizard(浅色)
Mobile · Setup WizardFirst use requires setting a server address, and entry is only allowed after the connectivity check passes

Full-size single-screen images and prototype source files are in UI Prototypes and Preview.

Quick Preview ​

Product Modes ​

ModeHow to enterPathArchive
Direct mode (default)Install and use immediately, zero configurationUDP broadcast discovers endpoints on the same subnet, TCP reaches the peer directlyLocal machine only
Collaboration mode (after login)Enter the server address and sign inPersistent connection to the collaboration serverFully stored on the server, searchable

Mobile is entirely in collaboration mode: on first launch the server address must be initialized before anything else, and no anonymous use without login is provided.

Monorepo Structure ​

memex/
├── client/               # Qt C++17 桌面客户端(Windows / UOS / 麒麟 / macOS)
│   ├── app/              # 入口与主窗口、系统集成(界面层并入 app)
│   ├── engine/direct/    # 直连引擎:UDP 发现、点对点消息与文件
│   ├── engine/collab/    # 协作引擎:长连接、消息同步、离线与补传
│   ├── core/             # 共享内核:本地库、会话、联系人、文件传输
│   └── tests/            # 桌面端单测
├── server/               # C++ 协作服务端(单进程实现评审报告六模块职能)
├── common/               # 双端共用:协议定义、序列化、公共工具
├── apps/                 # 手机端:android(已落地)/ ios(代码-only+CI)
│                         #   / harmony(代码-only+CI)
├── admin/                # 管理后台(规划,README 占位)
├── docs/                 # 文档站(VitePress)、评审报告、原型
└── third_party/          # 第三方组件清单与许可核验(依赖经 vcpkg 管理)

Build ​

Dependencies (asio / protobuf / nlohmann-json / sqlite3 / openssl / aws-sdk-cpp:s3 / Qt6) are managed through the vcpkg manifest, and the build entry points are CMake presets:

bash
# 准备 vcpkg(一次性)
git clone https://github.com/microsoft/vcpkg.git ~/vcpkg
~/vcpkg/bootstrap-vcpkg.sh
export VCPKG_ROOT="$HOME/vcpkg"

# 开发构建(Release · 服务端+客户端+测试)
cmake --preset dev
cmake --build --preset dev
ctest --preset dev

More: Product Positioning · Requirements and Acceptance · Four-Phase Roadmap · Decision List · Review Report Summary · Clone and Build

Intranet office IM · Dual-engine clients · Traceability first