ctdozlite README

The project's README from github.com/ctdoteam1110/ctdozlite. As one markdown file: README.md.

ctdozlite

Tiếng Việt · English · 한국어 · 日本語 · 简体中文

Website Release CI & Release Rust Platform License: MIT OR Apache-2.0

Client Zalo Desktop thuần Rust (eframe/egui + ratatui), kết nối trực tiếp API & WebSocket của Zalo Web/PC — không Electron, không Chromium, không Node.js.

Cảnh báo miễn trừ trách nhiệm & sở hữu trí tuệ

[!CAUTION] Miễn trừ trách nhiệm: Dự án chỉ phục vụ học tập & nghiên cứu tương thích giao thức (Educational & Interoperability Research Only), hoàn toàn phi thương mại (không thu phí, không quảng cáo, không thu thập dữ liệu) và không liên kết với VNG / Zalo. Chi tiết pháp lý & cam kết gỡ bỏ trong 72h xem tại mục Pháp lý & Ghi công.

Giao diện ctdozlite Native trên Windows


Có gì mới trong v0.1.5

v0.1.5 tái cấu trúc phần lớn ứng dụng, từ giao diện desktop và terminal đến đồng bộ lịch sử, quản lý tài khoản, lưu trữ và cập nhật. Bản này giảm công việc lặp khi đồng bộ và bắt buộc xác minh SHA-256 trước khi cài bản cập nhật.

Xem thay đổi và giới hạn còn lại trong Changelog v0.1.5.

⚡ Hiệu năng thực tế (v0.1.4)

Chỉ số (Windows 11, --release) Zalo PC (Electron) ctdozlite (Rust Native)
RAM khi chờ (Working Set) 1.800 – 1.975 MB ~156 MB (Private: ~62 – 80 MB, tiết kiệm >91%)
Số tiến trình nền 7 tiến trình 1 tiến trình duy nhất
Kích thước binary ~136 MB ~47,6 MB (~17,2 MB khi strip symbols)
Khởi động cửa sổ 2,5 – 4,0 giây ~0,04 – 0,15 giây
Phụ thuộc runtime Chromium + Node.js Thuần native (ffmpeg tùy chọn khi gọi video)

✨ Tính năng nổi bật


📥 Cài đặt & Sử dụng nhanh

Tải gói dựng sẵn mới nhất tại GitHub Releases (xem kiểm tra SHA-256 chi tiết ở docs/CAI_DAT.md):

Hệ điều hành Gói phát hành Cách dùng
Windows Bộ cài .exe / Portable .exe Chạy bộ cài hoặc mở trực tiếp ctdozlite.exe
macOS .dmg (arm64, x86_64, Universal) Mở .dmg, kéo ctdozlite.app vào /Applications
Linux .deb (chuẩn & glibc 2.31), .rpm, .AppImage, .tar.gz Cài qua apt/dnf hoặc chmod +x rồi chạy .AppImage

Lệnh CLI thường dùng

Lệnh Chức năng
ctdozlite --gui Mở giao diện đồ họa desktop (mặc định)
ctdozlite --tui --qr Mở giao diện Terminal (TUI) kèm mã QR đăng nhập
ctdozlite --data-dir <PATH> --gui Chỉ định thư mục riêng lưu session, DB, media & cache
ctdozlite --gui --dev Bật thêm khay chẩn đoán mạng (Dev Inspector)
ctdozlite --logout Đăng xuất và xóa phiên lưu cục bộ
🛠️ Tự biên dịch từ mã nguồn (Windows / Linux / macOS) — Nhấn để mở

Yêu cầu: Rust stable, CMake 3.15+, trình biên dịch C/C++ (để biên dịch tĩnh libopus & sqlite3), và ffmpeg trong PATH (tùy chọn cho gọi video). Với CMake 4.x, đặt CMAKE_POLICY_VERSION_MINIMUM=3.5.

# Linux (Ubuntu/Debian cài phụ thuộc trước):
# sudo apt install -y build-essential cmake pkg-config libasound2-dev libxcb-render0-dev \
#   libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev zenity xclip wl-clipboard ffmpeg

git clone https://github.com/ctdoteam1110/ctdozlite.git
cd ctdozlite
CMAKE_POLICY_VERSION_MINIMUM=3.5 cargo build --release --locked --bin ctdozlite

Trên Windows PowerShell: $env:CMAKE_POLICY_VERSION_MINIMUM="3.5"; cargo build --release --locked --bin ctdozlite → đầu ra target\release\ctdozlite.exe.


🔒 Bảo mật & Quyền riêng tư

Cảnh báo bảo mật dữ liệu & khóa phiên

[!CAUTION]

  • Bảo vệ khóa phiên (SESSION_SECURITY.md): Tệp session.json chứa zpw_sek, zpw_enk và IMEI cho phép truy cập thẳng tài khoản mà không cần đăng nhập lại. Tuyệt đối không gửi, đính kèm vào Issue hay commit session.json, *.db, app_settings.json, *.log. Nếu lỡ lộ, mở ngay Zalo trên điện thoại (Cài đặt → Tài khoản và bảo mật → Lịch sử đăng nhập) để đăng xuất.
  • Dữ liệu hoàn toàn cục bộ: Mặc định ứng dụng chỉ kết nối trực tiếp máy chủ Zalo chính thức (giống chat.zalo.me). Nội dung chat chỉ đi tới bên thứ ba khi chính bạn bật Trợ lý AI (endpoint LLM tự chọn) hoặc Cầu nối Telegram ↔ Zalo.

📚 Tài liệu dự án

Tài liệu Nội dung
Tính năng & giới hạn Trạng thái hoạt động thực tế của từng tính năng
Hướng dẫn cài đặt · Sử dụng Cài đặt đa nền tảng, kiểm tra SHA-256, phím tắt & cờ CLI
Kiến trúc hệ thống · Giao thức Thiết kế UI/Worker, SQLite WAL, ParamCipher v2 & signkey
Xử lý sự cố · Cầu nối Telegram Bảng mã lỗi Zalo thường gặp & thiết lập đồng bộ Telegram
AGENTS.md · SESSION_SECURITY.md Quy chuẩn bảo mật, đóng góp mã nguồn & cổng kiểm tra tự động

🏆 Đóng góp tiêu biểu (Key Contributors)

Thành viên GitHub Đóng góp chính
TIPC1110 @TIPC1110 Kiến trúc lõi, VoIP engine, egui shell, Danh bạ/Nhật ký, App Lock, Quản lý dữ liệu 3 tầng & phát hành
Đỗ Trung Thành @thanhdo1110 GUI modular, Atom One Dark, MCP/REST API, Hẹn giờ tin nhắn, Auto-Updater & xử lý 25+ Issues
Thuong Tin @thuongtin 10 PRs: --data-dir, macOS helpers, atomic session, media cache, updater, định danh tin nhắn & trích dẫn
Đỗ Mạnh Cường @cuongdm75 Chọn thư mục tải native, tùy chỉnh UI, trả lời trích dẫn, chuyển tiếp tin nhắn & bảo toàn link card
Trần Đức Thịnh @Fin12n Thiết kế lại thẻ tập tin, phát video trực tiếp, cải tiến UI/UX & giải mã Sync V2 protobuf
hoanglong149 @hoanglong149 Wasmtime Sync V2, chống thu hồi, tối ưu CPU/RAM, TUI + LLM Agent & cầu nối Telegram ↔ Zalo
ngxccc · TraiNguyenVan · ducseul · gr219 · GrootTheDeveloper · minhngoc2512 · Leoaxo098 · ziq3 · NamGTitm Cộng đồng GitHub Tiêu chuẩn kỹ thuật, bộ gõ tiếng Việt Linux IME, đa tài khoản, album đa tệp, SQLite virtualization, Linux/Windows Tray, Twemoji, Polls & chẩn đoán đồng bộ

👉 Danh sách vinh danh đầy đủ 117+ thành viên đóng góp mã nguồn, kiểm thử và báo lỗi: Bảng vàng Contributors.


🙏 Pháp lý & Ghi công

ctdozlite trân trọng cảm ơn VNG Corporation và đội ngũ Zalo đã xây dựng nền tảng nhắn tin phục vụ hàng chục triệu người dùng Việt Nam.

📜 Giấy phép

Phân phối dưới giấy phép kép MIT OR Apache-2.0 cho mục đích học tập và nghiên cứu kỹ thuật hệ thống.

ctdozlite (ctdoteam1110/ctdozlite)

appimage
Searching Database…

What is this?ctdozlite is a lightweight native desktop client for Zalo (a Vietnamese messaging app), written in Rust with eframe/egui and ratatui, that talks directly to Zalo Web/PC's API and WebSocket instead of using Electron or Chromium.
Is this an official Zalo app or an unofficial clone?It is an independent, open-source reimplementation built by reverse-engineering the Zalo Web/PC protocol, created purely for educational and interoperability research; it has no affiliation with VNG Corporation or Zalo.
How do I install and run it?Download a pre-built package for your OS from GitHub Releases (.deb/.rpm/.AppImage/.tar.gz for Linux, .exe installer or portable for Windows, .dmg for macOS ARM64/Intel/Universal), or build it yourself with Cargo if you have Rust installed.
Does every Zalo feature actually work?Not guaranteed. The README points to a dedicated Features & Limitations page that tracks what's fully working, partially working, or still being tracked as issues, and the iOS build isn't released yet due to a revoked Apple Developer certificate.
Does it run on both Apple Silicon and Intel Macs, plus different Linux distros?Yes — builds cover Apple Silicon ARM64, Intel x86-64, and a Universal DMG for macOS, plus Windows installers and five Linux package formats (standard/legacy .deb, .rpm, .AppImage, .tar.gz) covering Debian, Ubuntu, Fedora, RHEL, Arch and more.
Where does my chat data and history go?Message history and session data are stored only locally (zalohistory.db SQLite plus threadscache.json and session.json), and the app sends no data to any third-party server other than Zalo's own system.
How much lighter is it than the official Zalo PC app?On Windows 11, ctdozlite idles at around 149.5MB of RAM in a single process versus 1,800-1,975MB across 7 processes for the official Electron-based Zalo PC, and it launches in about 0.18s instead of 2.5-4s.
Can I make voice and video calls?Yes, it reimplements Zalo's call signaling and ZRTP relay handshake directly in Rust without depending on ZaloCall.exe, using cpal+opus for audio and ffmpeg for H.264 video.
Can I use it over SSH without a GUI?Yes, besides the egui desktop GUI it ships a ratatui-based terminal UI (TUI) you can navigate with arrow keys or j/k, send messages with Enter, and quit with q.
Does it suggest Vietnamese stickers like the real Zalo app?Yes, it queries Zalo's sticker suggest and search endpoints in parallel as you type and matches Vietnamese text with or without diacritics plus common abbreviations like 'tks', 'hpbd' and 'g9'.
What are similar projects?exodium, course2md, zapfast, lap, zulu, ImageGlass, SpartanPort, dbdelve
Size
11.7 MB
Stars
360
Age
1mo
Commits · 90 Days