~/talk

Building a Browser Based Code Editor

Talkat Build Stuff 2024 · 2024-11-13..11-15· [web-platform, javascript]
slides:none on file

Builds a browser code editor that runs user code in a sandbox via Dino sub hosting, returning a URL that the app loads into an iframe. Uses React and TypeScript for the UI, a server-side Oak HTTP API that creates or updates a files map (main.ts) and polls for deployment status, and demonstrates importing packages with jsr inside the serverless function. Adds syntax highlighting using PrismJS + transparent textarea hack and shows one-click deployment with Dino Deploy.

AI-written summary · about

  1. 0:00🚀 Introduction to Building a Code Editor in the Browser
  2. 2:00Why Build a Browser-Based Code Editor? Use Cases and Challenges
  3. 5:00Overview of Dino and Setting Up the Project
  4. 8:00Using Dino to Host Serverless Functions
  5. 12:00Setting Up the Frontend: Building the UI with React and TypeScript
  6. 15:00Creating the Backend API to Run User Code
  7. 18:00Running Code in the Sandbox: The Role of Serverless Functions
  8. 22:00Displaying Outputs in an iFrame
  9. 26:00Adding Syntax Highlighting with PrismJS
  10. 28:00Deploying the Editor with Dino Deploy
  11. 30:00Final Demo: The Working Code Editor in Action
  12. 31:00Conclusion: Why Dino is Perfect for Building a Code Editor
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.