frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Typst-WASM – Compile Typst in browsers, Node, and serverless runtimes

https://typst-wasm-playground-cloudflare.will-bradshaw50.workers.dev/
2•will-bradshaw•1h ago
today i am releasing typst-wasm and an experimental version of vite-plugin-typst!

the goal of this project is to provide a pragmatic promise based API for compiling typst using wasm in as many runtimes as possible.

the api is consistent across all supported runtimes and closely mirrors what you see in the rust crate. it gives you full control over where and how you load the wasm blobs, which allows you to provide the best possible user experience.

running typst in wasm/serverless environments like cloudflare workers or vercel allows you to do SSR, easily offload compilation to the server for low bandwidth devices while reusing code, run typst in sandboxes for AI agents, etc.

here's an example of the API:

``` await compiler.addFonts( readFile(new URL(import.meta.resolve( "@typst-wasm/fonts/NewCMMath-Regular.otf", ))), );

await compiler.addSource("main.typ", "= Hello from typst-wasm!"); const result = await compiler.compile({ main: "main.typ", format: "svg", });

console.log(result.pages[0]?.output); ```

how does it differ from typst.ts?

the goals are different! typst-wasm aims to support many runtimes and provide a consistent api without the use of deprecated APIs.

@typst-wasm/vite-plugin-typst

I am also releasing vite-plugin-typst, built on typst-wasm, to provide an easy way to use the new html output in your vite apps! to give you ideas, this is a cool alternative to markdown for content in vite-based websites/blogs!

``` import typstDocument from "./post.typ?typst=html";

document.querySelector("#output")!.innerHTML = typstDocument.html; ```

links and examples for you to look at !

* GitHub: https://github.com/typst-wasm/typst-wasm

* npm — typst-wasm: https://www.npmjs.com/package/typst-wasm, vite-plugin-typst: https://www.npmjs.com/package/@typst-wasm/vite-plugin-typst

* Docs: https://typst-wasm.github.io/typst-wasm/

* example blog: https://typst-wasm-blog.will-bradshaw50.workers.dev/ source: https://github.com/typst-wasm/typst-wasm/tree/main/packages/...

* example typst-wasm playground with SSR'd typst on cloudflare workers: https://typst-wasm-playground-cloudflare.will-bradshaw50.wor... source: https://github.com/typst-wasm/typst-wasm/tree/main/packages/...

* example typst-wasm playground with SSR'd typst on vercel: https://example-typst-playground-vercel.vercel.app/ source: https://github.com/typst-wasm/typst-wasm/tree/main/packages/...

* simple node example source: https://github.com/typst-wasm/typst-wasm/tree/main/packages/...

* my own website: https://w.bradshaw.page/ source: https://github.com/wra-bradshaw/personal-website

US manufacturing employment is down, but each state has its own story

https://fredblog.stlouisfed.org/2026/07/us-manufacturing-employment-is-down-but-each-state-has-it...
1•loughnane•52s ago•0 comments

Claude Code: Anatomy of a Misfeature

https://www.olafalders.com/2026/07/17/claude-code-anatomy-of-a-misfeature/
1•oalders•2m ago•0 comments

Show HN: DSA View View – A TypeScript runtime visualizer for algorithms

https://dsa-view-view.vercel.app/
1•nyaomaru•3m ago•1 comments

Show HN: Crux, a personal AI on your computer you can reach from anywhere

https://qunt.in
1•parker-nyx•3m ago•0 comments

SmartTAR – STAR 1.3.0

https://github.com/eco-by-different/smarttar-star
1•e_b_d•3m ago•1 comments

Show HN: On-chain bond market where the issuers are AI agents

https://selbonds.now
1•griffinfoster7•4m ago•0 comments

We cannot wait for better post-quantum signature algorithms

https://blog.cloudflare.com/ml-dsa-will-have-to-do/
1•pqpdf•4m ago•0 comments

Distant exoplanets may be hiding water beyond Webb Telescope's reach

https://news.uchicago.edu/story/distant-exoplanets-may-be-hiding-water-beyond-webb-telescopes-rea...
1•gmays•4m ago•0 comments

85.3 GFlops: Optimizing FP32 Matrix Multiplication on a Single AMD Zen 3 Core

https://github.com/houslast3/85.30-GFLOPS-Single-Core-FP32-Matrix-Multiplication-on-AMD-Zen-3
1•houslast•4m ago•0 comments

Kimi K3, and what we can still learn from the pelican benchmark

https://simonwillison.net/2026/Jul/16/kimi-k3/
1•droidjj•7m ago•0 comments

AI Meets Cryptography 2: What AI Found in OpenVM's ZkVM

https://blog.zksecurity.xyz/posts/openvm-bugs/
1•duha•7m ago•0 comments

Is GPT-5.6 Sol Max Worth It?

1•yohji1984•7m ago•0 comments

Grok Build Behavior Corrected

https://twitter.com/arafatkatze/status/2077991220954206608
1•kardianos•8m ago•0 comments

Arm Core Local Accelerator Driver Posted for Linux

https://www.phoronix.com/news/Arm-Core-Local-Accelerator
1•patadune•8m ago•0 comments

An Open-Source IDE and Coding Agent You Can Use Kimi-K3 With

https://stagewise.io/use-cases/kimi
1•juliangoetze•9m ago•0 comments

Brain implant helps paralysed man to feed himself and drink from cup

https://www.theguardian.com/science/2026/jul/16/neural-bypass-brain-implant-paralysed-man-feed-hi...
2•Brajeshwar•12m ago•0 comments

New process turns mixed plastic waste into hydrogen fuel without sorting

https://newsroom.ucla.edu/releases/new-process-turns-mixed-plastic-waste-hydrogen-fuel-without-so...
1•geox•12m ago•0 comments

The Expansion of Procedure Around Ordinary Life

https://therealitydrift.substack.com/p/the-proceduralization-of-everyday-life
1•realitydrift•14m ago•0 comments

Why Huge Pages Matter for Postgres?

https://clickhouse.com/blog/huge-pages-clickhouse-managed-postgres
1•saisrirampur•18m ago•0 comments

Google Clock's alarm failed me so I found better apps to wake me up

https://www.androidauthority.com/google-clock-alternatives-android-alarm-apps-3661128/
1•vanclaude•18m ago•0 comments

Nano Collective – Local-first AI tools, built for the people who use them

https://nanocollective.org
1•mrspence•21m ago•0 comments

Poll: Who will win the World Cup?

1•herodoturtle•22m ago•0 comments

How Should We Prepare Our Children for AI?

https://blog.comini.in/p/how-should-we-prepare-our-children
2•ChaitanyaSai•22m ago•0 comments

New Windows LegacyHive zero-day gives hackers admin privileges

https://www.bleepingcomputer.com/news/security/new-windows-legacyhive-zero-day-exploit-grants-hac...
1•sbulaev•22m ago•0 comments

First atmosphere found on Earth-like planet in habitable zone of distant star

https://www.bbc.com/news/articles/cy4kdd1e0ejo
1•neversaydie•23m ago•0 comments

China wants to end AI romances

https://www.economist.com/china/2026/07/16/china-wants-to-end-ai-romances
4•theanonymousone•23m ago•0 comments

Show HN: Watch bots interact with an SSH honeypot in real time

https://honeypotlive.cc/
2•tusksm•24m ago•0 comments

No liability exemption for Google in Italian YouTube spat, EU court says

https://www.reuters.com/world/eu-court-upholds-googles-854250-italian-fine-over-gambling-advertis...
3•1vuio0pswjnm7•24m ago•0 comments

Election denial activists briefed at White House ahead of primetime speech

https://www.ms.now/news/election-denial-activists-briefed-at-white-house-ahead-of-trumps-prime-ti...
3•hn_acker•25m ago•1 comments

Indonesia's copyright rewrite puts Google, AI platforms on notice

https://www.reuters.com/legal/litigation/indonesias-copyright-rewrite-puts-google-ai-platforms-no...
1•1vuio0pswjnm7•26m ago•0 comments