{"repo":"Myriad-Dreamin/typst.ts","free":true,"listed":false,"github":"https://github.com/Myriad-Dreamin/typst.ts","clone":"git clone https://github.com/Myriad-Dreamin/typst.ts.git","description":"Run Typst in JavaScriptWorld.","language":"TypeScript","stars":1199,"topics":["server-side-rendering","typst","browser","nodejs","wasm"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"typst.ts Markdown typst Online HTML Online SVG Online Canvas typst.ts is a project dedicated to bring the power of typst to the world of JavaScript. In short, it provides an typst::World implementation and several exporters to help compile and render your Typst document typically inside Browser Environment . In the scope of server-side rendering collaborated by $\\textcolor{#3c9123}{\\textsf{server}}$ and $\\textcolor{#0074d9}{\\textsf{browser}}$, there would be a data flow like this: Specifically, it first typically presents a typst document in three forms: - Form1: Renders to SVG at server side and then embeds it as a high-quality vectored image into HTML files statically. - Form2: Preprocesses to a Vector Format artifact at server side and renders it at client side (in browser). - Form3: Compiles document at client side and manipulates a canvas element at client side. The Form2: Vector Format is developed specially for typst documents, and it has several fancy features: So with Form2 , you can continue rendering the document in different ways: Static but responsive rendering Example Application: shiroa and the docs built using it, and hexo-renderer-typst A compressed artifact containing data for different theme and screen settings. The bundle size of artifacts is optimized for typst documents. Incremental server-side rendering Example Application: typst-preview Build a server for compilation with Compiler Service, streaming the artifact, and render it incrementally. Serverless","default_branch":null,"files":null,"tree":[],"storefront":"/r/Myriad-Dreamin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Myriad-Dreamin/typst.ts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}