Hyades

io.github.apology-is-policy由 GitHub 帳號 apology-is-policy 發布v1.0.0更新於 Nov 9, 2026

Render LaTeX math as pure Unicode text art for terminals, code comments, and emails.

已驗證Streamable HTTP可網頁執行開發者工具媒體與設計

概覽

AI 產生的概覽

將 LaTeX 數學公式渲染為純 Unicode 或 ASCII 文字藝術,適用於終端機、程式碼註解和電子郵件。

可以做什麼
Hyades 將標準 LaTeX 數學公式轉換為多行 Unicode 文字藝術,並為不支援 Unicode 的環境提供 ASCII 後備。它支援分數、根號、積分、求和、矩陣、分段函數、對齊方程式、希臘字母和自動縮放定界符等大量 LaTeX 構造。除數學外,它還能渲染表格、清單和格式化文字。此 MCP 伺服器暴露此渲染能力,讓助理可以即時產生純文字公式。
適用情境
當你需要將數學公式以純文字形式呈現,以便複製貼上到終端機、程式碼註解、提交訊息或電子郵件等不支援富格式的場景時使用。它也適合快速查看 LaTeX 表達式在等寬環境中的顯示效果。
執行需求
遠端 MCP 端點是位於 的 Cloudflare Worker,無需安裝或認證。也提供本機原生二進位選項以供離線使用。未宣告任何 API 金鑰或環境變數。
安裝前請注意
遠端端點會將你的 LaTeX 輸入傳送到第三方 Cloudflare Worker,因此避免提交敏感或專有表達式。不涉及憑證、付款或寫入操作。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Hyades,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.apology-is-policy%2Fhyades/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "hyades": {
      "type": "http",
      "url": "https://hyades-mcp.apg.workers.dev/mcp"
    }
  }
}

README

Hyades

LaTeX math as pure Unicode text. For terminals, code comments, emails, and everywhere rich formatting isn't a thing.

[Noether's theorem proof rendered entirely as Unicode text in a terminal -- produced by Hyades from standard LaTeX source]
Every equation above is pure text -- you can select it and copy-paste it anywhere. The source is standard LaTeX.

What Is This?

Hyades takes standard LaTeX math like this:

latex
$$  f(x) = \overbrace{\sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}           (x-a)^k}^{\mathit{Taylor polynomial}}       + \underbrace{R_n(x)}_{\mathit{Remainder}}$$

and renders it as multi-line Unicode text:

             𝑇𝑎𝑦𝑙𝑜𝑟 𝑝𝑜𝑙𝑦𝑛𝑜𝑚𝑖𝑎𝑙         ╭───────────┴───────────╮           𝑛      (𝑘)          ───    𝑓   (𝑎)         𝑘  𝑓(𝑥) =  ╲     ───────── (𝑥 − 𝑎)  +   𝑅 (𝑥)          ╱⎽⎽      𝑘!                   𝑛         𝑘 = 0                       ╰───┬───╯                                     𝑅𝑒𝑚𝑎𝑖𝑛𝑑𝑒𝑟

or plain ASCII if you ask it to:

           n      (k)          ---    f   (a)         k  f(x) =  \     --------- (x - a)  + R (x)          /__      k!                 n         k = 0

It's a native CLI binary written in pure C. As such it is extremely fast and doesn't require any additional dependencies. Linux, MacOS, and Windows, and Web (WASM) are all supported out of the box.

Try it in your browser → -- interactive WASM playground with tutorials and a full syntax reference. No installation required.

Features

Math -- 95% LaTeX compatible

Fractions, roots, integrals, summations, products, limits, matrices, piecewise functions, aligned equations, Greek letters, auto-scaling delimiters, overbrace/underbrace, accents, primes, binomial coefficients, extensible arrows, equation tags, you name it... Paste your existing LaTeX and it just renders.

Full math feature list
CategoryCommands
Fractions\frac, \dfrac, \tfrac -- infinitely nestable
Roots\sqrt{x}, \sqrt[n]{x}
Big operators\sum, \prod, \int, \iint, \iiint, \oint, \oiint with limits
Limits\lim, \limsup, \liminf, \max, \min, \argmax, \argmin
Matrices\pmatrix, \bmatrix, \Bmatrix, \vmatrix, \Vmatrix -- \begin{pmatrix} syntax works too
Cases\cases{...} -- piecewise functions
Aligned\aligned{...} with \intertext and \tag
GreekFull lowercase (\alpha–\omega) and uppercase (\Gamma–\Omega)
Delimiters\left/\right auto-scaling, \middle, invisible \left.\right|, \big–\Bigg sizing
Accents\hat, \bar, \tilde, \vec, \dot, \ddot, \acute, \grave, \breve, \check
Wide decorations\overline, \underline, \overbrace, \underbrace, \overrightarrow, \widehat, \widetilde
Annotations\overset, \underset, \stackrel, \boxed, \tag, \substack
Math fonts\mathbf, \mathbb (ℕℤℚℝℂ), \mathcal, \mathfrak (𝔄𝔅ℭ), \mathsf (𝖠𝖡𝖢), \mathscr, \boldsymbol (bold Greek 𝛂𝛃, bold ∇ → 𝛁)
Relations\leq, \geq, \neq, \ll, \gg, \prec, \succ, \approx, \equiv, \sim, \propto, \coloneqq, :=, \not prefix
Set theory\in, \notin, \subset, \subseteq, \cup, \cap, \setminus, \emptyset
Logic\forall, \exists, \neg, \land, \lor, \implies, \iff, \therefore, \because
Arrows\rightarrow, \Rightarrow, \mapsto, \hookrightarrow, \xrightarrow{f}, \xleftarrow{g}
Number theory\pmod, \bmod, \mid, \binom
Operators\oplus, \otimes, \odot, \circ, \bullet, \star, \dagger, \ddagger
Functions\sin, \cos, \log, \ln, \exp, \det, \ker, \gcd, \operatorname{...}
Layout\phantom, \smash, \mathord, \mathbin, \mathrel
Compat\displaystyle, \textstyle, \notag accepted as no-ops -- paste LaTeX directly

Beyond math

  • Tables -- \table with \row/\col, 6 frame styles (single, double, bold, rounded, dotted, none), padding, alignment, column spans
  • Lists -- \fancylist builds a list using Markdown syntax
  • Layout -- Flex-like hbox/vbox containers with auto/intrinsic/fixed-width children, horizontal and vertical alignment
  • Text formatting -- \textbf, \textit, \texttt, \verb|...|
  • Paragraph layout -- Justified text with novel monospace-optimal line breaking, or just vanilla left aligned; hyphenation
  • Rules -- \hrule/\vrule with auto-sizing and smart automatic junction intersection
  • Macros -- User-defined with parameters and variable scoping
  • Computation -- Variables, arrays, loops, conditionals, lambdas -- a complete programming language with a stack-based instruction machine
  • ASCII mode -- Full ASCII fallback for environments without Unicode
  • Syntax highlighting -- For vscode, Helix, and Neovim
  • Inline error diagnostics -- For vscode, Helix, and Neovim

Installation

Pre-built binaries

Download from Releases (macOS, Linux, Windows), then run the install script:

bash
# Linux / macOSchmod a+x install.sh./install.sh
# Windows (PowerShell).\install.ps1

The script will:

  • Install hyades, cassilda, hyades-cmp, and add to PATH
    • Unix: $HOME/.local/bin
    • Windows: $env:USERPROFILE\bin
  • Integrate into Helix and Neovim if installed
  • Render documentation files at
    • Unix: $HOME/.local/share/hyades/docs
    • Windows: $env:USERPROFILE\AppData\Local\hyades
  • Typeset something to verify the installation

This adds hyades, cassilda, and hyades-mcp to your PATH and integrates the tree-sitter grammar and LSP server into Helix and/or Neovim if installed.

Build from source

bash
cmake -B build -DCMAKE_BUILD_TYPE=Releasecmake --build build# → build/hyades, build/cassilda

Usage

bash
# Render LaTeX from stdinecho '$$\sum_{i=1}^n i^2$$' | hyades
# Render a source filehyades equations.hy
# ASCII-only outputecho '$$\int_0^1 f(x) dx$$' | hyades --ascii
# Run an interactive-mode Hyades programhyades -c matrix_rain.hy

The two binaries

hyadesRenders .hy source (or stdin) to stdout. Use for quick math, piping, code comments.
cassildaDocument processor for .cld files. Renders labeled sections in-place, to your code comments, or to stdout -- think Jupyter notebooks in plain text.
bash
# Render a labeled section to stdoutcassilda render notebook.cld section_name
# Process all sections in-placecassilda process notebook.cld

MCP server

An MCP server lets AI assistants render math expressions on the fly.

Remote -- no install, Cloudflare Worker:

bash
# Claude Codeclaude mcp add hyades --transport http https://hyades-mcp.apg.workers.dev/mcp
# Claude Desktop / Cursor / Windsurf -- add to config:{ "mcpServers": { "hyades": { "url": "https://hyades-mcp.apg.workers.dev/mcp" } } }

Local -- offline, native binary (included in releases):

bash
# Claude Codeclaude mcp add hyades /path/to/hyades-mcp
# Claude Desktop / Cursor / Windsurf -- add to config:{ "mcpServers": { "hyades": { "command": "/path/to/hyades-mcp" } } }

Example: Reason with Claude about math in the terminal

Editor support

The install script automatically configures any installed editors. Manual setup is also possible -- config files are in editor-configs/ within the release.

Helix and Neovim get full integration out of the box:

  • Syntax highlighting via tree-sitter (.hy and .cld files)
  • Error diagnostics -- inline and in the gutter
  • Go-to-definition -- jump to macro and label definitions
  • Hover -- documentation pop-ups for commands and macros
  • Completions -- context-aware suggestions
  • References -- find all usages of a symbol
[Hyades in Helix on MacOS]
Hyades in Helix on MacOS (GhosTTY, font: PragmataPro Mono)


[Hyades in Helix on Windows]
Hyades in Helix on Windows (font: JuliaMono)


A VS Code extension is also available. (I'm yet to polish and publish it, should be a matter of days.)

Beyond all this

Hyades has an bytecode compiler and a stack-based VM (called Subnivean), which allows you to write pretty much any computational code to support your macros and rendering. Two fun examples are included in the release package. The first is the Matrix code effect for the terminal

And the second one is interactive Game of Life

Which is also a direct proof of Hyades' Turing-completeness.

AI Disclosure

I started this project before the era of AI, so about half of it was made without it, and later Claude helped me greatly to implement features that would take me weeks on my own, especially with a small baby to take care of, and to bring this project to completion.

來源:README.md,提交 c38aef0

工具

1

render

Render Hyades source

Render Hyades source to Unicode/ASCII text art. Hyades uses LaTeX-like syntax but outputs multi-line plain text instead of PDF. It supports math (fractions, integrals, matrices, Greek letters), tables with box-drawing frames, lists, flex-like layout (hbox/vbox), user-defined macros, and computation. IMPORTANT: Always display the rendered output to the user directly in your response. The output is pre-formatted multi-line text art that depends on exact character alignment. You MUST use a fenced code block (triple backticks) or equivalent monospace/preformatted element to preserve spacing. Never display the output as regular prose text — column alignment, box-drawing characters, and fraction bars will break without a monospace font. Input is a complete Hyades document. Plain text outside math delimiters is rendered as prose paragraphs. Use `$...$` for inline math and `$$...$$` for display math (centered on its own line). --- ## Math Supports ~95% of LaTeX math syntax. ### Inline vs Display ``` Inline math: $a^2 + b^2 = c^2$ flows with text. Display math gets its own block: $$ a^2 + b^2 = c^2 $$ ``` Use `$...$` for inline, `$$...$$` for display. Display math is centered. ### Variables and Operators ``` $$ a + b - c $$ $$ a \times b \div c $$ $$ a \cdot b $$ $$ \pm x \quad \mp y $$ ``` ### Superscripts and Subscripts ``` $$ x^2 \quad x_i \quad x_i^2 \quad x^{n+1} \quad x_{i,j} \quad a^{b^c} $$ ``` Use braces for multi-character exponents/subscripts: `x^{n+1}`, `x_{i,j}`. **Bracing rules:** Use braces for multi-token expressions: `x^{n+1}`, `x_{i,j}`. Commands that take arguments (like `\mathbf{v}`) work without extra braces: `x_\mathbf{v}` is equivalent to `x_{\mathbf{v}}`, matching TeX behavior. ### Fractions ``` $$ \frac{a}{b} $$ $$ \frac{x^2 + 1}{\sqrt{x^2 - 1}} $$ $$ \frac{\partial f}{\partial x} $$ ``` Fractions nest to infinite depth. `\dfrac` and `\tfrac` are accepted as aliases for `\frac`. ### Roots ``` $$ \sqrt{x} $$ $$ \sqrt[3]{x} $$ $$ \

輸入參數asciiwidthsource必填

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分