Skip to content

Repository files navigation

httpjax

MathJax-over-HTTP, a free public REST API to render TeX where it really makes no sense to drag the entire library of LaTeX just to show a neatly formatted math expression.

Note

httpjax is in early development stage and is largely just Proof-of-Concept as of now; while I commit to avoid introducing breaking changes, the API design and/or layout is still subject to change.

Docs

You can find up-to-date REST API docs (and a convenient Swagger UI) here.

OpenAPI JSON schema can be found here (this repo) or here (hosted).

Host your own

You can easily self-host this on your own Cloudflare account, with your own Worker and with your own R2 bucket — in just a click of a button:

Deploy to Cloudflare

You may be wondering...

Why?

Because of this issue. Then I thought it's certainly not the only use case for a TeX rendering REST API.

Why Cloudflare Workers?

Because it's free and it's been a while since I last did something useful with Hono and Workers. Check out QRify, by the way 😎

Why HTTP 302 to R2 bucket?

Because I thought it'd be neat to use it as sort of a cache. It's free anyway 😛

About

MathJax-over-HTTP

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages