Skip to content

witheredAd/tyraria

 
 

Repository files navigation

tyraria

This is tyraria, a project that attempts to recreate the online editing experience of typst.app based on tinymist and typst.ts.

Try it now: https://tyraria.typs.town/

Note

It takes time to load fonts on your first visit.

TODO

  • Monaco Editor basic editing functionality
  • tinymist LSP language service
  • typst-preview preview functionality
  • typst-preview componentization
  • Load fonts from workspace
  • Optimize startup speed
  • Clean up redundant logs
  • Eliminate tinymist compilation warnings
  • Merge changes into tinymist mainline
    • This won't happen soon until the right time comes, but some less critical commits will be merged gradually
  • Automated build
  • Save workspace to pastebin and load workspace from pastebin

Build

Build Tinymist WASM

git clone -b tinymist-wasm https://github.com/ParaN3xus/tinymist.git
cd tinymist/crates/tinymist
yarn && yarn build
cd pkg && yarn link
cd ../../../tools/typst-dom && yarn link

Build tyraria

git clone https://github.com/ParaN3xus/tyraria/
cd tyraria
yarn
yarn link tinymist typst-dom
yarn build

Acknowledgements

  • Tinymist: Tinymist provides typst language services
  • typst.ts: typst.ts provides incremental SVG rendering
  • typst-preview: The live preview feature of tinymist originally derived from typst-preview
  • typst: The Typst language and compiler.

I deeply appreciate Typst and understand the value of Typst making its compiler open source. Therefore, this project exists solely as a proof-of-concept demo. I would not and do not wish to see others create products based on this project that could potentially harm Typst GmbH's business model.

License

This project is licensed under GPLv3.

Legal

This project is not affiliated with, created by, or endorsed by Typst the brand.

About

Recreate the online editing experience of typst.app based on tinymist and typst.ts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 49.4%
  • Vue 21.6%
  • JavaScript 20.6%
  • Typst 6.3%
  • CSS 1.7%
  • HTML 0.4%