typst.ts is a project that brings the Typst typesetting system into the JavaScript ecosystem, enabling document compilation and rendering directly in browser and Node.js environments. It provides an implementation of Typst’s execution environment along with tools for compiling documents into various output formats, including vector graphics and web-friendly representations. The system is designed to support both client-side and server-side rendering workflows, allowing flexible deployment architectures for document generation. It includes multiple modules such as compilers, renderers, and exporters, which can be combined depending on the application’s needs. Developers can use typst.ts to build interactive document editors, live preview tools, or automated publishing systems entirely in JavaScript. The project also supports watching file changes and incremental compilation, improving development efficiency for dynamic content.
Features
- Typst document compilation and rendering in JavaScript
- Support for browser and server-side execution environments
- Multiple exporters for vector and web output formats
- Modular architecture with compiler and renderer components
- CLI tools with watch mode for incremental compilation
- Integration with modern web frameworks and build tools