Summary note: This is a summary of dax’s (@thdxr) November 15, 2026 X post, not a reprint of the original. Original link: https://x.com/thdxr/status/2121692397323350468
Note: The post was published on November 15 at 3:51 AM (the page does not state a timezone); at the time of checking (November 17, ~09:05) it showed 100,038 views, 2,470 likes, 54 reposts and 347 bookmarks. The post includes a Rust-vs-Node comparison table; the figures below are transcribed from the image in the post. All claims are the author’s own and have not been independently verified.
OpenCode author dax says he rewrote OpenCode Browse in Rust, including reimplementing the parts of Playwright/Patchright it needed (spelled “playwrite/patchwrite” in the original post), and it only cost $60.
The comparison table
The post includes a table comparing the Rust version with today’s Node version side by side:
| Metric | Rust | Node (today) |
|---|---|---|
| Binary size | 4.3 MB (1.9 MB gzipped) | 53–64 MB download |
| Relay memory at idle | 6 MB (6.6 MB after serving calls) | 353 MB after 6 days |
| Per-session OpenCode connector memory | 3.5 MB idle, 5.6 MB after a few calls | ~190 MB per agent session (0.0.16) |
All three gaps are more than an order of magnitude: the binary is roughly a tenth of the old size, idle memory drops from hundreds of megabytes to single digits, and per-session connector memory falls from about 190 MB to 3.5 MB.
Why it matters
Browse is the part of OpenCode that handles browser operations, so rewriting it means swapping a long-running Node process for a lightweight Rust binary. For users, the most direct change is faster startup and far lower memory use from background processes — and with several agent sessions open at once, the roughly 180 MB saved per session adds up quickly.
The $60 figure is also worth a pause: that is what the author says this rewrite cost, not a formal engineering budget. The post does not break down where the $60 went or how long the rewrite took, so treat the number as the author’s own rough note rather than a strict accounting.
Key facts
- What was done: OpenCode Browse rewritten in Rust, with the Playwright/Patchright parts it needed reimplemented.
- Cost: $60 (the author’s own figure).
- Binary: 4.3 MB (1.9 MB gzipped), versus a 53–64 MB download before.
- Idle memory: 6 MB for the Rust relay, versus 353 MB for the Node version after 6 days.
- Per-session connector memory: 3.5 MB idle in the Rust version, versus about 190 MB per session in Node.
Written by

