{"id":13829763,"url":"https://github.com/Enter-tainer/typst-preview","last_synced_at":"2025-07-09T10:31:32.501Z","repository":{"id":152243305,"uuid":"625576338","full_name":"Enter-tainer/typst-preview","owner":"Enter-tainer","description":"[DEPRECATED] Use tinymist instead","archived":false,"fork":false,"pushed_at":"2024-07-07T12:31:45.000Z","size":49321,"stargazers_count":446,"open_issues_count":30,"forks_count":21,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T15:48:32.526Z","etag":null,"topics":["typst","typst-preview","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://Enter-tainer.github.io/typst-preview/","language":"Typst","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/Enter-tainer.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}},"created_at":"2023-04-09T14:43:43.000Z","updated_at":"2024-10-29T01:44:56.000Z","dependencies_parsed_at":"2024-03-13T14:31:37.717Z","dependency_job_id":"a8ae3579-6d74-4e66-b211-f71459e0412b","html_url":"https://github.com/Enter-tainer/typst-preview","commit_stats":null,"previous_names":["enter-tainer/typst-preview"],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enter-tainer%2Ftypst-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enter-tainer%2Ftypst-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enter-tainer%2Ftypst-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enter-tainer%2Ftypst-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Enter-tainer","download_url":"https://codeload.github.com/Enter-tainer/typst-preview/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225470734,"owners_count":17479368,"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","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":["typst","typst-preview","vscode","vscode-extension"],"created_at":"2024-08-04T10:00:44.714Z","updated_at":"2024-11-20T10:31:13.657Z","avatar_url":"https://github.com/Enter-tainer.png","language":"Typst","funding_links":[],"categories":["编辑器集成插件"],"sub_categories":["VSCode"],"readme":"# Important Notice\n\nThe contents of this repository have been consolidated into [tinymist](https://github.com/Myriad-Dreamin/tinymist). It is an all-in-one language server for typst.\n\nWe recommend all users migrate to tinymist for the following benefits:\n\n- More centralized resource management\n- Reduced redundancy and lower resource usage\n- Easier updates and maintenance\n\nThis repository will no longer be updated in future. All development will move to tinymist. Thank you for your support and understanding!\n\n- We still maintain the typst-preview extension for a while in a best effort way.\n   - The lazy people can continue using their setting, as all old things are still working.\n   - This respect people who love minimal env, like a treesitter plugin plus preview.\n- Tinymist will ensure compatibility to typst-preview as much as possible.\n   - for vscode users: uninstall the preview extension and install the tinymist extension.\n   - for standalone cli users: `typst-preview -\u003e tinymist preview`\n\nIf you have any questions, please open an issue in the new repository.\n\n# Typst Preview VSCode\n\nPreview your Typst files in vscode instantly!\n\nInstall this extension from [marketplace](https://marketplace.visualstudio.com/items?itemName=mgt19937.typst-preview), open command palette (Ctrl+Shift+P), and type `\u003eTypst Preview:`.\n\nhttps://github.com/Enter-tainer/typst-preview/assets/25521218/7a151b3d-fe50-4440-8aab-2cc9a9abcf37\n\nhttps://github.com/Enter-tainer/typst-preview/assets/25521218/600529ce-8f42-4c2f-a224-b6b73e6ad017\n\nThis repo contains:\n- the native part of the extension, in rust\n- a vscode extension, in typescript\n\n## Features\n\n- Low latency preview: preview your document instantly on type. The incremental rendering technique makes the preview latency as low as possible.\n- Open in browser: open the preview in browser, so you put it in another monitor. https://github.com/typst/typst/issues/1344\n- Cross jump between code and preview: We implement SyncTeX-like feature for typst-preview. You can now click on the preview panel to jump to the corresponding code location, and vice versa.\n\nFor comparison between alternative tools, please refer to [Comparison with other tools](https://enter-tainer.github.io/typst-preview/intro.html#loc-1x0.00x949.99).\n\n## Bug report\n\nTo achieve high performance instant preview, we use a **different rendering backend** from official typst. We are making our best effort to keep the rendering result consistent with official typst. We have set up comprehensive tests to ensure the consistency of the rendering result. But we cannot guarantee that the rendering result is the same in all cases. There can be unknown corner cases that we haven't covered.\n\n**Therefore, if you encounter any rendering issue, please report it to this repo other than official typst repo.**\n## How it works?\n\nThe extension watches for file changes, and incrementally compile your document to svg files. Then we use a websocket to send the rendered svg to the client. The client calculates the diff between the new svg and the old one, and apply the diff to the old one. This is done by a VDOM based incremental rendering technique.\n\nIf you are interested in the details, please refer to [Typst-Preview Architecture](https://enter-tainer.github.io/typst-preview/arch.html).\n## Use without VSCode\n\nYou can use the binary `typst-preview` as a standalone typst preview server. It can be used to preview your document in browser. For example: `typst-preview ./assets/demo/main.typ --partial-rendering`. This should be useful if you don't use VSCode but still want to experience the low latency preview.\n\n## Use with other editors\n\n- nvim: [typst-preview.nvim](https://github.com/chomosuke/typst-preview.nvim)\n- emacs: [typst-preview.el](https://github.com/havarddj/typst-preview.el)\n\n## Acknowledgements\n\n- [typst.ts](https://github.com/Myriad-Dreamin/typst.ts): typst.ts provide incremental svg export.\n- [typst-lsp](https://github.com/nvarner/typst-lsp): The CI and the vscode extension are heavily inspired by typst-lsp.\n\n## Related projects\n\n- [typstyle](https://github.com/Enter-tainer/typstyle): Beautiful and reliable typst code formatter\n- [tinymist](https://github.com/Myriad-Dreamin/tinymist): Feature rich typst language server\n\n## Legal\n\nThis project is not affiliated with, created by, or endorsed by Typst the brand.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEnter-tainer%2Ftypst-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEnter-tainer%2Ftypst-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEnter-tainer%2Ftypst-preview/lists"}