Repository navigation
Releases
ZHEXU 0.1.0-rc.3
The third release candidate of ZHEXU (折序), an open-source AI classroom built on OpenMAIC that adds printable material for teachers: A4 handouts, worksheets made from a saved course, and annotated images.
Handouts now set the Markdown a model writes, and a first run with a real model made a handout and an annotated image. It is still a release candidate: one model and a few requests are not a release check; see "How it was checked".
Built on upstream main at b3b51384, which is OpenMAIC 1.5.0-rc.3 and the changes upstream has made since.
New since rc.2
- Markdown in handouts: headings (
#to######) are set bold, the first three levels larger;**bold**,*italic*and_italic_follow CommonMark, and also work in Chinese text without spaces (**注意:**这里). Bullet and numbered lists get their marker, wrapped lines aligned with the text, and nest when indented; a---line is a rule. A heading that only repeats the title is left out. A course handout is the course's own words and is printed as it is. - Line and page breaks, found with the real model: closing punctuation after bold text no longer starts a line, a blank answer bracket
( )no longer breaks inside, and a page no longer starts with blank lines. - The brand everywhere: upstream's strings that name the product (the welcome tour, the about entry, the sandbox settings, the achievement image) say 折序 ZHEXU, the classic home page shows the brand, and the browser tab shows the brand mark where SVG icons are read.
- Repository: a code of conduct (Contributor Covenant 2.0), and a new sample page in the README and on the showcase page.
Run it
You need Node.js 22.19 or later, pnpm 10 and PostgreSQL 16. The steps are in the README (中文). The features are off until their switch is set (ZHEXU_DELIVERABLES_ENABLED, ZHEXU_IMAGE_ANNOTATIONS_ENABLED). Nothing is added to the database schema.
There is no prebuilt image. A Docker build includes the extension when NEXT_PUBLIC_DEPLOYMENT_EXTENSION=zhexu and NEXT_PUBLIC_WORKBENCH_ENABLED=true are passed as build arguments.
How it was checked
- A real model, once: DeepSeek Flash on a development machine. Asked for a handout, it called the handout tool once and wrote Markdown with headings, lists, bold text, two tables and two formulas; asked to label an attached diagram, it looked at it, called the annotation tool and checked the result, and all four labels sit on their parts. Other models and the course handout tool were not run with a real model.
- 317 unit tests, and 7 browser tests that CI runs against a production build and against the Docker image. The scripted stand-in in the browser tests now writes its handout in Markdown.
- Text without Markdown marks gives byte-identical pages before and after the Markdown change (eight pages checked).
Known limits
- Links, block quotes and code in a handout are printed as written; under CommonMark
2*3*4sets the 3 in italic (write\*for a literal star). - Only pictures in the owner's assets are placed. A handout has at most sixteen pages; longer text is refused, not cut.
- The annotation tools are offered only to a model that upstream's built-in registry declares vision-capable.
The full list is in the changelog.
中文说明
折序 ZHEXU 的第三个候选版本。比 rc.2 新增:
- 讲义里的 Markdown:标题、粗体、斜体、项目符号和编号列表、
---分隔线排成对应的样式,没有空格的中文里也能正确识别。课程讲义取自课程原文,照原样印出。 - 换行和分页:用真实模型跑出的三个问题已修好:粗体后的句号不再落到行首,“( )”不再从中间断开,新一页不再以空行开头。
- 品牌:上游界面里提到产品名的地方(欢迎引导、关于入口、沙箱设置、成就图)显示 折序 ZHEXU,经典首页显示折序标志,支持 SVG 图标的浏览器标签页显示折序标志。
- 仓库:加了行为准则(Contributor Covenant 2.0),README 和展示页加了新样张。
检查情况:用真实模型(DeepSeek Flash)跑过一次,做出了一份讲义和一张标注图,结果都正确;其他模型、课程讲义工具还没用真实模型跑过。另外有 317 个单元测试和 7 个浏览器测试(分别在生产构建和 Docker 镜像里跑),浏览器测试里的模型替身现在也用 Markdown 写讲义。只跑过一个模型、几次请求,所以仍是候选版本。
这些功能默认关闭,设置开关后才启用。没有预构建镜像,需要从源码运行,步骤见中文 README。
MIT 许可,与上游相同。
ZHEXU 0.1.0-rc.2
The second release candidate of ZHEXU (折序), an open-source AI classroom built on OpenMAIC that adds printable material for teachers: A4 handouts, worksheets made from a saved course, and annotated images.
Handouts now draw what rc.1 printed as plain text: formulas, tables and pictures. It is still a release candidate because no run has used a real model yet; see "How it was checked".
Built on upstream main at ce7f05a8, which is OpenMAIC 1.5.0-rc.3 and the changes upstream has made since.
New since rc.1
- Formulas: LaTeX between
\(and\)stays in its line, between\[and\]gets a line of its own ($and$$work too). They are laid out by KaTeX, as on a slide, and drawn with KaTeX's fonts. A course handout marks the course's formulas the same way: formula elements, inline formulas and quiz text. - Tables: a Markdown pipe table is drawn ruled, with a shaded header, the column alignment the dashes set and long cells wrapped. A cell that is only
<or^joins the cell to its left or above, so cells can span. A long table repeats its header rows on each page. A course's tables, merged cells included, are written this way. - Pictures: a line
places a picture from the owner's assets. Nothing remote is fetched, and only PNG, JPEG, WebP and GIF within size limits are decoded. A course handout places the course's pictures. A picture that cannot be placed leaves a visible note. - Interactive and project pages: a course handout now takes their text (what a simulation, procedure or diagram explains; a project's description, objective and milestones) instead of only their title.
- Subscripts and superscripts such as H₂O and m² are drawn, although the text fonts lack them.
- My files loads older files fifty conversations at a time and fits a phone screen.
Run it
You need Node.js 22.19 or later, pnpm 10 and PostgreSQL 16. The steps are in the README (中文). The features are off until their switch is set (ZHEXU_DELIVERABLES_ENABLED, ZHEXU_IMAGE_ANNOTATIONS_ENABLED). Nothing is added to the database schema.
There is no prebuilt image. A Docker build includes the extension when NEXT_PUBLIC_DEPLOYMENT_EXTENSION=zhexu and NEXT_PUBLIC_WORKBENCH_ENABLED=true are passed as build arguments.
How it was checked
- 295 unit tests. Formula layout is compared with a record of 66 formulas made with KaTeX in Chromium; the largest difference is under 0.1 pixel for a formula 100 pixels high. Handouts of plain text give byte-identical page images before and after these changes.
- 7 browser tests, which CI runs against a production build and against the Docker image. The course in them now holds formulas and a picture.
- In all of these a scripted stand-in took the place of the model. How a real model uses the tools, and what it writes into a handout, is not checked.
Known limits
- A formula KaTeX's layout cannot be drawn from is printed as its LaTeX source. Other Markdown marks (headings, bold, list bullets) are printed as written.
- Only pictures in the owner's assets are placed.
- A handout has at most sixteen pages; longer text is refused, not cut.
- The annotation tools are offered only to a model that upstream's built-in registry declares vision-capable.
- The brand does not reach the classic home page, the favicon and upstream strings that name the product.
The full list is in the changelog.
中文说明
折序 ZHEXU 的第二个候选版本。比 rc.1 新增:
- 公式:讲义里的 LaTeX 公式按 KaTeX 排版,和幻灯片上一样;课程讲义里的公式也会排出来。
- 表格:Markdown 表格画成带线的表格,表头加底色,支持合并单元格,跨页时重复表头。
- 图片:放入课程里的图片(只读取本人的素材,不抓取外部链接),放不下时留下文字说明。
- 互动页和项目页:课程讲义收录它们的文字内容,不再只有标题。
- 上下标:H₂O、m² 这类字符能正确显示。
- 我的文件:可以加载更早的文件,手机宽度下也能正常显示。
之所以仍是候选版本:所有检查(295 个单元测试,7 个浏览器测试,分别在生产构建和 Docker 镜像里跑)用的都是按脚本回答的模型替身,还没有用真实模型跑过。
这些功能默认关闭,设置开关后才启用。没有预构建镜像,需要从源码运行,步骤见中文 README。
MIT 许可,与上游相同。
ZHEXU 0.1.0-rc.1
The first release candidate of ZHEXU (折序), an open-source AI classroom built on OpenMAIC. It adds printable material for teachers on top of the upstream classroom: A4 handouts, worksheets made from a saved course, and annotated images.
It is a release candidate because no run has used a real model yet. Everything below was checked with a scripted stand-in that calls the tools with fixed content. See "How it was checked".
Built on upstream main at a985fc4d, which is OpenMAIC 1.5.0-rc.3 and the changes upstream has made since.
What it adds
- A4 handouts: the assistant hands an answer over as real files: an A4 PDF, an image of the first page and, for more than one page, a ZIP of every page. A Chinese handwriting face is optional.
- Course handouts and worksheets: a course you have saved, exported as a handout: what is written on each page, the narration and the quiz questions in page order, with the answers on a page of their own. The text is taken from the course as it is saved; no model rewrites it. The quiz questions alone make a worksheet with a line for the name, class and date, and room to write under open questions.
- Image annotations: the assistant looks at an image you attached and puts numbered labels on it, as an A4 PNG and PDF. The original image is not changed.
- My files: a page that lists the handouts and annotated images delivered in your conversations, ready to download.
- Brand and theme: the ZHEXU mark and colours, in light and dark mode.
- Extension layer: all of this lives under
extensions/and hooks into four upstream files by a few lines each. With the extension off, the app is exactly upstream OpenMAIC.
The handout, annotation and file features are off until their switch is set (ZHEXU_DELIVERABLES_ENABLED, ZHEXU_IMAGE_ANNOTATIONS_ENABLED). Nothing is added to the database schema.
Run it
You need Node.js 22.19 or later, pnpm 10 and PostgreSQL 16. The steps are in the README (中文).
There is no prebuilt image. A Docker build includes the extension when NEXT_PUBLIC_DEPLOYMENT_EXTENSION=zhexu and NEXT_PUBLIC_WORKBENCH_ENABLED=true are passed as build arguments.
How it was checked
- 135 unit tests.
- 7 browser tests, which CI runs against a production build and against the Docker image: a handout, a course handout, a worksheet, an annotated image, the "My files" page, and that a course of another visitor is refused.
- In all of these a scripted stand-in took the place of the model. How a real model uses the tools, and what it writes into a handout, is not checked.
Known limits
- Formulas in a handout are printed as their LaTeX source. Tables, images and subscript or superscript digits are not drawn.
- A handout has at most sixteen pages. Longer text is refused, not cut; a course can be exported as a range of pages.
- A course handout takes text from slides and quizzes. An interactive or project-based page gives only its title.
- The annotation tools are offered only to a model that upstream's built-in registry declares vision-capable.
- "My files" reads at most fifty conversations at a time.
- The brand does not reach the classic home page, the favicon and upstream strings that name the product.
The full list of changes is in the changelog.
中文说明
折序 ZHEXU 的第一个候选版本。它基于 OpenMAIC,在上游课堂之外增加了给教师用的可打印材料:
- A4 讲义:助手把回答交付成真实文件(A4 PDF 和页面图片),可选中文手写字体。
- 课程讲义和练习卷:把已保存的课程导出成讲义,内容取自课程原文,不经模型改写;只取测验题时生成练习卷,答案单独一页。
- 图片标注:在你上传的图片上加编号标注,原图不改动。
- 我的文件:列出各个对话里交付过的文件,可以直接下载。
之所以是候选版本:目前所有检查(135 个单元测试,7 个浏览器测试,分别在生产构建和 Docker 镜像里跑)用的都是按脚本回答的模型替身,还没有用真实模型跑过。
这些功能默认关闭,设置开关后才启用。没有预构建镜像,需要从源码运行,步骤见中文 README。
MIT 许可,与上游相同。