Skip to main content

xdtui

X岛匿名版(xdnmb)的终端(TUI)客户端。基于 Rust 核心 + Python Textual 界面 的混合架构:Rust 核心负责网络请求、缓存、全文检索与本地数据库,Python 端提供终端交互界面,二者在本机通过 gRPC 通信。

功能特性

  • 浏览版块 / 时间线,翻页、跳页与按 ID 跳串
  • 串详情阅读:只看 Po、回复、引用跳转、引用列表、剧透揭示
  • 发新串 / 回复 / 举报,多饼干(Cookie)切换与颜文字快捷插入
  • 订阅(Feed)列表与「我的发言」本地记录
  • 星标收藏(Favorites),主要是清理豁免
  • 「Tips 酱」语录收集
  • 本地全文检索(Tantivy + 仓颉,支持自定义梗词分词)
  • 本地离线缓存(内存 + SQLite 分层存储)
  • 图片浏览(缩略图 / 原图 / TUI 原生模式)
  • 浏览历史(本地记录看过的串)
  • 版规查看、存储管理(DB/索引统计、缓存清理、Tips 管理)与设置面板
  • 深色主题、动态配色
  • 核心服务崩溃自动重启
  • 极简模式(隐藏多余 UI)

安装

需要 Python 3.12+

pip install xdtui

安装后直接运行:

xdtui

系统依赖

支持平台:Windows、Linux(x86_64 / aarch64)

  • Windows:开箱即用,二维码解码库(zbar)已随包附带,无需额外安装。
  • Linux:需系统提供 zbar 库,否则扫码功能会报错:
    • Debian/Ubuntu:sudo apt install libzbar0
    • Fedora:sudo dnf install zbar

键盘快捷键

全局

按键 功能
ctrl+q / q 退出
z 极简模式(隐藏多余 UI)

主界面(版块 / 串列表)

按键 功能
j / 下一项
k / 上一项
h / 上一页
l / 下一页
space 首页(回到第 1 页并刷新)
enter 打开当前串 / 版块
s 跳页
r 刷新本页
b 版块侧栏
/ 搜索
n 发新串
m 发言
f 订阅
alt+h 浏览历史
alt+t 跳串(按 ID)
alt+g 版规
alt+r 引用列表
t 看图(仅含图卡片可用;无图模式或配置缺失时禁用)

版块侧栏内:↑/↓(或 k/j)移动焦点,←/→(或 h/l)收缩/展开组节点(在版块或时间线叶子节点上按 Enter / / l 均可直接加载该版块);r 重新加载侧栏、e 全部展开/收缩、esc 返回列表。

串详情界面

按键 功能
esc 返回
o 只看 Po
p 回复
P 引用回复
f 订阅
S 星标(收藏)
R 举报
t 看图(仅含图楼层可用;无图模式或配置缺失时禁用)

发帖 / 回复 / 举报 弹窗

按键 功能
esc 取消
ctrl+g 快捷插入(颜文字)
ctrl+enter 快捷回复

模态窗口 / 确认弹窗

所有带明确确认/取消或关闭按钮的模态窗口(如二次确认、跳页、岛公告、选择饼干、选择订阅 UUID、版规、帮助、关于等):

按键 功能
y 快捷确认 / 同意 / 知道了
n 快捷取消 / 拒绝 / 关闭
esc 取消 / 关闭

注:含有文本输入框的弹窗(如发帖/回复、搜索输入框、星标备注)在焦点处于输入框时优先响应文本输入,不影响字符输入。

引用弹窗

在串详情中点击某条引用(或按 alt+r 打开引用列表后选中某条)弹出的引用查看窗口:

按键 功能
g 跳转到被引用的原串
esc 关闭

历史界面

按键 功能
c 清空浏览历史
esc 返回

搜索

按键 功能
enter / ctrl+s 搜索
esc 关闭

其他界面

订阅、历史、我的发言、设置、存储管理、图片查看等界面均以 esc 关闭 / 返回。 模态窗口(除发串/回复窗口外)均可以通过点击空白处关闭。

数据与日志位置

应用数据(配置 config.toml、本地数据库 data.db、全文检索索引)统一存放在:

  • Windows:%APPDATA%\xdtui\xdtui\config\
  • Linux:~/.config/xdtui

运行日志 app.log 位于数据目录下的 cache/ 子目录:

  • Windows:%APPDATA%\xdtui\xdtui\config\cache\app.log
  • Linux:~/.config/xdtui/cache/app.log

许可证

本项目以 MIT 许可证 发布。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

xdtui-0.1.32-cp312-abi3-win_arm64.whl (14.9 MB view details)

Uploaded CPython 3.12+Windows ARM64

xdtui-0.1.32-cp312-abi3-win_amd64.whl (15.4 MB view details)

Uploaded CPython 3.12+Windows x86-64

xdtui-0.1.32-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.8 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ x86-64

xdtui-0.1.32-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (16.0 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ ARM64

File details

Details for the file xdtui-0.1.32-cp312-abi3-win_arm64.whl.

File metadata

  • Download URL: xdtui-0.1.32-cp312-abi3-win_arm64.whl
  • Upload date:
  • Size: 14.9 MB
  • Tags: CPython 3.12+, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for xdtui-0.1.32-cp312-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 a9abe2a3a5232467a6195f1eb76a0a6468d926223cf0cbbee21fde07f18f90d8
MD5 c857e2829d303cfc769df20068ba73c1
BLAKE2b-256 fd4bc7890ba48f33bb85edd05ef37a9a5ad449f3914caa0f80568a831dc9f397

See more details on using hashes here.

File details

Details for the file xdtui-0.1.32-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: xdtui-0.1.32-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 15.4 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for xdtui-0.1.32-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d1ca1020b0ec9da16e412986bc793a66126da4d38304164654003bb9098e0791
MD5 371885605c3ae011ddf446e7336e5b03
BLAKE2b-256 0a9023737085c8115a4111333e6e708de3b605d62812749a3105298e92780aac

See more details on using hashes here.

File details

Details for the file xdtui-0.1.32-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: xdtui-0.1.32-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 16.8 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for xdtui-0.1.32-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1fc31d3f7ec89c466f57039666c707abf47a5340cb0f0239c92ebddcbff501f6
MD5 5ab4b0608d8300b916784c9c2865a8d0
BLAKE2b-256 3a0227f1ff9f90eb1771088ff8cc7303538ad567be4c0f94d03a9324fe25d9be

See more details on using hashes here.

File details

Details for the file xdtui-0.1.32-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

  • Download URL: xdtui-0.1.32-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  • Upload date:
  • Size: 16.0 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for xdtui-0.1.32-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 eb1bc8c44790ea687dfe7d711b40a334d4684e139bd7e5919d8831ed16faea73
MD5 75f8e0bf5b01c58eda68c90fc807d54c
BLAKE2b-256 988e8d613077d9f55b42abec491784756846d02587585f657f0f44abc9ab965b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.47

4 files

0.1.46

4 files

0.1.45

4 files

0.1.44

4 files

0.1.43

4 files

0.1.42

4 files

0.1.41

4 files

0.1.40

4 files

0.1.39

4 files

0.1.38

4 files

0.1.37

4 files

0.1.36

4 files

0.1.35

4 files

0.1.34

4 files

0.1.33

4 files

This release

0.1.32 This release

4 files

0.1.31

4 files

0.1.30

4 files

0.1.29

4 files

0.1.28

4 files

0.1.27

4 files

0.1.26

4 files

0.1.25

4 files

0.1.24

3 files

0.1.23

3 files

0.1.22

3 files

0.1.21

3 files

0.1.20

3 files

0.1.19

3 files

0.1.18

3 files

0.1.17

3 files

0.1.16

3 files

0.1.15

3 files

0.1.14

3 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page