Wiki: Web is a Great IDEa! - Salto’s Story of Developing a Web Based IDE

For agents: Markdown version · Wiki index · Explore

Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

Summary

The speaker shares the engineering journey of developing a browser-based code editor and IDE extension for a proprietary configuration language. The talk details the evolution from a standard backend-heavy language server architecture to a frontend-heavy approach, and finally to a hybrid on-demand model. Through this progression, the audience learns how to handle scalability challenges when dealing with large datasets and complex codebases in web environments.

Key points

  • 0:11 The speaker introduces the company, their configuration management tool, and the need for an IDE extension.
  • 2:20 The speaker explains the proprietary declarative configuration language used, which is a dialect of HCL.
  • 6:36 The project expands to bring a code editor into the browser using the Monaco editor to support users without local IDEs.
  • 8:56 The initial attempt uses a traditional backend language server architecture, which fails due to stateless startup times and serverless timeout limits.
  • 12:02 The second iteration moves the language server logic to the frontend via web workers, but fails to scale when handling very large environments.
  • 16:58 Analyzing user behavior shows that users perform many navigation actions but very little editing.
  • 17:58 The final hybrid on-demand architecture fetches minimal initial metadata and loads additional data lazily as needed.

Takeaways

  • Always consider the standard backend-first approach for language servers before exploring complex custom architectures.
  • Analyze actual user patterns, such as distinguishing between navigation and heavy editing, to make informed architectural trade-offs.
  • Use a hybrid on-demand data loading strategy when client environments grow too large to be fully loaded into browser memory at once.

Questions this talk answers

  • How can you implement IDE features like autocompletion and go-to-definition inside a web browser?
  • What are the scalability limits of running language server logic entirely on the frontend using web workers?
  • How do you design a hybrid caching and on-demand loading strategy for large codebases in a web-based IDE?

Technologies

TypeScript, VS Code, Monaco Editor, RocksDB, React

Tags

browser architecture, developer tools, frontend performance, ide development, language server protocol, scalability