Dinos and Clouds: Node apps for Deno and Cloudflare Workers
summary
Stripe’s Node SDK is rewritten to run on Deno and Cloudflare Workers without forking by making transports and crypto pluggable: a pluggable HTTP client chooses fetch or node http, an async WebCrypto provider wraps platform webcrypto or node crypto, and CommonJS modules load via esm.sh wrapper when Deno requires ESM. Work uncovers subtle spec differences (a content-length bug), heavy testing, and build-tool stubbing for missing Node APIs. Timeline: six months from issue to multi-runtime support; recommends better conversion tools and standardization.
AI-written summary · about
chapters (11)
- 0:00Introduction and background
- 1:45Why support Deno and Cloudflare
- 5:10Challenges in cross-runtime support
- 7:42HTTP clients and fetch API
- 11:32Cryptography differences
- 12:55Path and events compatibility
- 13:59ES modules vs CommonJS
- 15:24Key takeaways and lessons
- 17:51WinterCG standardization
- 19:14Tools for easier adoption
- 20:39Call to action and conclusion








