Building a Browser Based Code Editor
summary
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
chapters (12)
- 0:00🚀 Introduction to Building a Code Editor in the Browser
- 2:00Why Build a Browser-Based Code Editor? Use Cases and Challenges
- 5:00Overview of Dino and Setting Up the Project
- 8:00Using Dino to Host Serverless Functions
- 12:00Setting Up the Frontend: Building the UI with React and TypeScript
- 15:00Creating the Backend API to Run User Code
- 18:00Running Code in the Sandbox: The Role of Serverless Functions
- 22:00Displaying Outputs in an iFrame
- 26:00Adding Syntax Highlighting with PrismJS
- 28:00Deploying the Editor with Dino Deploy
- 30:00Final Demo: The Working Code Editor in Action
- 31:00Conclusion: Why Dino is Perfect for Building a Code Editor
related talks
21mBuilding an in-browser code editor (that can run your code too!)
35mBuilding a Browser Based Code Editor
34mBuilding a Browser Based Code Editor
29mBuilding an in-browser editor
28mCodeSandbox
01h 29mTooling for the JavaScript Era
05mBuilding Editors in the Browser
37mWhy don’t the browser’s Dev Tools understand Your Code?
