Hacker News new | past | comments | ask | show | jobs | submit login
A Whole New Quick Edit in Cloudflare Workers (cloudflare.com)
6 points by macleos on May 17, 2023 | hide | past | favorite | 1 comment



Wow, wild effort,

> how does this work at a high level? We embed VSCode for Web in the Cloudflare dashboard as an iframe, and communicate with it over a MessageChannel. When the iframe is loaded, the Cloudflare dashboard sends over the contents of your worker to a VSCode for Web extension. This extension seeds an in-memory filesystem from which VSCode for Web reads. When you edit files in VSCode for Web, the updated files are sent back over the same MessageChannel to the Cloudflare dashboard, where they’re uploaded as a previewed worker to Cloudflare's global network.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: