{"id":24617715,"url":"https://github.com/jacoblincool/tex-svg-worker","last_synced_at":"2025-10-05T14:09:47.061Z","repository":{"id":42704681,"uuid":"460098571","full_name":"JacobLinCool/TeX-SVG-Worker","owner":"JacobLinCool","description":"Translate TeX to SVG on the fly. Free \u0026 Open Source TeX-SVG API. Batch Conversion Supported.","archived":false,"fork":false,"pushed_at":"2025-08-11T11:57:31.000Z","size":36,"stargazers_count":6,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-11T13:30:15.674Z","etag":null,"topics":["cloudflare-workers","latex","svg","tex"],"latest_commit_sha":null,"homepage":"https://tex.jacob.workers.dev/?tex=-b%20\\pm%20\\sqrt{b^2%20-%204ac}%20\\over%202a","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JacobLinCool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-02-16T17:03:15.000Z","updated_at":"2024-05-10T10:44:23.000Z","dependencies_parsed_at":"2023-10-12T14:38:32.385Z","dependency_job_id":"c6f06272-ca2d-459f-b190-bfaeb04413d2","html_url":"https://github.com/JacobLinCool/TeX-SVG-Worker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"JacobLinCool/Cloudflare-Module-Worker","purl":"pkg:github/JacobLinCool/TeX-SVG-Worker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTeX-SVG-Worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTeX-SVG-Worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTeX-SVG-Worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTeX-SVG-Worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JacobLinCool","download_url":"https://codeload.github.com/JacobLinCool/TeX-SVG-Worker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTeX-SVG-Worker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275180123,"owners_count":25419065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare-workers","latex","svg","tex"],"created_at":"2025-01-24T23:40:07.662Z","updated_at":"2025-10-05T14:09:42.026Z","avatar_url":"https://github.com/JacobLinCool.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TeX SVG Worker\n\nA Cloudflare Worker that translates TeX to SVG.\n\n## Usage\n\n### Direct Image Link\n\n```\nGET https://tex.jacob.workers.dev/?tex=\u003cTeX String\u003e\n```\n\n**Example:** \u003chttps://tex.jacob.workers.dev/?tex=\\int_0^\\infty\\frac{x^2}{1%2bx^2}dx\u003e\n\n![DEMO](https://tex.jacob.workers.dev/?tex=\\int_0^\\infty\\frac{x^2}{1%2bx^2}dx\u0026css=svg{background:white})\n![CSS DEMO](https://tex.jacob.workers.dev/?tex=-b%20\\pm%20\\sqrt{b^2%20-%204ac}%20\\over%202a\u0026css=svg{color:white;background:royalblue})\n\n- Add `\u0026inline=true` to the end of the URL to get the \"inline\" version of the image.\n- Add `\u0026css=\u003cCSS Rules\u003e` to inject css into the image. For example: `svg{color:white;background:royalblue}`\n\n### Use Post\n\n```\nPOST https://tex.jacob.workers.dev/\n```\n\n**Body:**\n\n```json\n{\n    \"tex\": \"\u003cTeX String\u003e\"\n}\n```\n\n### JSON Batch Convert API\n\n```\nPOST https://tex.jacob.workers.dev/json\n```\n\n**Body:**\n\n```json\n{\n    \"tex\": [\n        \"\u003cTeX String 1\u003e\",\n        \"\u003cTeX String 2\u003e\",\n        ...\n    ],\n    \"key\": true\n}\n```\n\n`tex` is a list of TeX expressions.\n\n`key` is a boolean value. If `true`, the response will be a JSON object with key-value pairs of TeX expression and their SVGs. If `false`, the response will be a JSON array of SVGs.\n\n**`key` set to `true`:**\n\n```json\n{\n    \"\u003cTeX String 1\u003e\": \"\u003cSVG String 1\u003e\",\n    \"\u003cTeX String 2\u003e\": \"\u003cSVG String 2\u003e\",\n    ...\n}\n```\n\n**`key` set to `false`:**\n\n```json\n[\n    \"\u003cSVG String 1\u003e\",\n    \"\u003cSVG String 2\u003e\",\n    ...\n]\n```\n\nOther options:\n\n- `inline`: display the inline version of the image.\n- `css`: CSS string to be injected into the SVG.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblincool%2Ftex-svg-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacoblincool%2Ftex-svg-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblincool%2Ftex-svg-worker/lists"}