系统小,应用多
Keep it lean.
固件只提供渲染、触摸、阅读页、存储和联网,功能都在应用里,加功能不用重刷固件。
The firmware offers rendering, touch, the reader, storage and networking; features live in apps.
运行在小纸 Pico 上的嵌入式开放应用系统。系统只管显示、触摸和阅读这些底层能力,书、漫画、番茄、微信读书、小红书、微博……每个功能都是能单独安装、更新、卸载的应用。
An embedded open app system for Read Pico. The system handles the display, touch and reading; books, comics, Tomato, WeRead, Xiaohongshu, Weibo and the rest are apps you install, update and remove on their own.
适合有自己私人服务器(比如 NAS)的用户:番茄、微信读书、小红书、微博、X、WEBTOON、虎扑这些联网应用,要在你自己的服务器上跑一个宿主(Docker 一键部署,看部署教程)。只看本地书和漫画不需要。
Best for people with their own server (a NAS, say): the online apps (Tomato, WeRead, Xiaohongshu, Weibo, X, WEBTOON, Hupu) need a host running on it, one Docker deploy (setup guide). Local books and comics need none.

阅读器不该只有一种用法。TreaderOS 把系统做小,把空间留给应用。
A reading device shouldn't be locked to one way of reading. TreaderOS keeps the core small and gives the rest to apps.
固件只提供渲染、触摸、阅读页、存储和联网,功能都在应用里,加功能不用重刷固件。
The firmware offers rendering, touch, the reader, storage and networking; features live in apps.
设备上管界面和离线,宿主上干重活:抓取、登录、转图、打包。两半同一个包,版本永远一致。
The device runs the UI and offline logic; the host fetches, signs in, converts and packs. One package, never out of step.
应用只描述界面,排版、分页、三档显示大小和刷新方式由系统决定。
Apps describe the UI; the system handles layout, paging, three display sizes and refreshes.
内容先存到 TF 卡,断网照样看;缓存写成大文件,不写内部 flash。
Content lands on the TF card and stays readable offline; caches are large files.
设备提供墨水屏需要的一切基础能力,应用带来具体的体验;放在 NAS 上的宿主处理重活,让阅读器保持专注、省电、响应快。
The device provides what an e-ink reader needs, apps bring the experiences, and a host on your NAS handles the heavy lifting so the reader stays focused, frugal and responsive.
功能都是应用。到应用商店按需挑选,每个应用单独下载、单独安装。
Features are apps. Pick what you need in the app store; each downloads and installs on its own.
官方应用和社区应用都在应用商店里,每个都有简介、权限和会访问的网站,点一下就能下载它的安装包。
Official and community apps live in the app store, each with its blurb, permissions and the sites it reaches, and its package one click away.
内容存在卡上,不依赖一直联网。让网络帮你收集,让设备只用来读。
Content lives on the card, not on a constant connection. Let the network collect, and let the device be a place to read.
用 JavaScript 写应用:设备端描述界面,需要联网的部分写在宿主端。打包、上传、同步,不用重刷固件。从官方应用开始改起最快。
Write apps in JavaScript: describe the UI on the device and put the online work on the host. Pack, upload and sync without reflashing. Starting from an official app is quickest.
你是 TreaderOS 应用开发助手。TreaderOS 是跑在小纸 Pico(4.7 寸、16 级灰度墨水屏)上的嵌入式开放应用系统,应用用 JavaScript 写,不用编译。我没有编程基础,请一步一步带我做出一个能在设备上运行的应用。
我想做的应用:【用一两句话写你想要什么,比如:记录每天读书时长,能按周看统计】
需不需要联网:【不需要 / 需要,要从哪个网站取什么内容】
请按这个流程做:
1. 先读开发指南 https://raw.githubusercontent.com/bidabrain/treaderos/main/docs/APP_GUIDE.md ,只用里面写到的积木和接口,不要自己编造。
2. 参考最接近的官方应用 https://github.com/bidabrain/treaderos/tree/main/apps :纯本地的看 library.todo,要联网的看 hupu.bbs 或 weibo.posts。
3. 有不清楚的地方先问我,最多问 3 个问题,然后开始写。
4. 给我一个完整的应用文件夹 community/我的名字.应用名/,里面有 manifest.json 和 app.js;要联网时再加 server.js(它跑在我自己的宿主上,只能访问 manifest 里 server.hosts 列出的网站,请求要少、要慢)。每个文件都给完整内容,不要只给片段。
5. 照墨水屏的习惯设计:不用动画、不频繁刷新;按钮用普通按钮;小数据存 storage,缓存用打包缓存并设上限,不要建一堆小文件。
6. 最后告诉我三件事:怎么检查(python tools/check_apps.py)、怎么打包(python tools/tpk.py pack community/...)、怎么装到设备上(在宿主面板上传 .tpk,或者拷进 TF 卡的 Apps/.inbox/)。
You are a TreaderOS app assistant. TreaderOS is an embedded open app system on Read Pico (a 4.7-inch, 16-level gray e-ink reader); apps are written in JavaScript with no compiling. I have no programming background, so walk me step by step to an app that runs on the device.
The app I want: [one or two sentences, e.g. log how long I read each day and show weekly totals]
Does it need the internet: [no / yes, fetching what from which website]
Please work like this:
1. First read the app guide https://raw.githubusercontent.com/bidabrain/treaderos/main/docs/APP_GUIDE.md and use only the blocks and APIs it describes; do not invent any.
2. Follow the closest official app in https://github.com/bidabrain/treaderos/tree/main/apps : library.todo for local-only apps, hupu.bbs or weibo.posts for online ones.
3. Ask me about anything unclear first, at most 3 questions, then start writing.
4. Give me a complete app folder community/myname.appname/ with manifest.json and app.js; add server.js only if it needs the internet (it runs on my own host, may reach only the sites listed in server.hosts in the manifest, and should make few, slow requests). Give every file in full, not fragments.
5. Design for e-ink: no animation or frequent redraws; plain buttons; small data in storage, caches in a pack cache with a limit, never many small files.
6. Finally tell me how to check it (python tools/check_apps.py), pack it (python tools/tpk.py pack community/...) and install it (upload the .tpk in the host panel, or copy it into Apps/.inbox/ on the TF card).
用电脑上的 Chrome 或 Edge,通过 USB 直接把 TreaderOS 刷进小纸 Pico,不用装任何软件。
Use Chrome or Edge on a computer to flash TreaderOS over USB, with nothing to install.
从最新构建下载。第一次装用全量包,之后用升级包;TF 卡文件第一次要解压到卡的根目录。
From the latest build. Use the full image the first time and the upgrade afterwards; unzip the card files to the card root on a first install.
第一次刷 TreaderOS:必须用全量包,选“完整安装”并勾选“擦除设备”。TreaderOS 有自己的分区表,和 Treader 等其他固件不一样,不擦除直接刷可能起不来。以后升级只用升级包。
First time flashing TreaderOS: use the full image, choose Full install and tick Erase the device. TreaderOS has its own partition table, different from Treader and other firmware, and may not boot without erasing. Later upgrades use the upgrade file only.
只要某一个应用?到应用商店单独下载。
Need just one app? Get it on its own in the app store.
页面会检查文件和所选方式是否对得上,选错会提示。
The page checks that the file matches the chosen mode.
用 USB-C 连接设备,保持亮屏(深睡时电脑看不到设备),点下面的按钮选择串口。
Connect over USB-C and keep the screen awake (the computer can't see a sleeping device), then pick its serial port.
需要电脑上的 Chrome 或 Edge。刷写由 Espressif 的 esptool-js 完成;刷完设备会自己重启。
Needs desktop Chrome or Edge. Flashing is done by Espressif's esptool-js; the device restarts by itself.