# Web is a Great IDEa! - Salto's Story of Developing a Web Based IDE

- Speaker: [Noam Hammer](/wiki/speakers/noam-hammer.md)
- Event: [Reversim Summit 2021](/wiki/years/2021.md)
- Video: https://www.youtube.com/watch?v=zcKnUhlyC2s
- Transcript: [/transcripts/2021/04-zcKnUhlyC2s.md](/transcripts/2021/04-zcKnUhlyC2s.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Developer Experience](/wiki/topics/developer-experience.md), [Frontend](/wiki/topics/frontend.md), [Performance](/wiki/topics/performance.md), [Productivity](/wiki/topics/productivity.md)

> 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](https://www.youtube.com/watch?v=zcKnUhlyC2s&t=11s) The speaker introduces the company, their configuration management tool, and the need for an IDE extension.
- [2:20](https://www.youtube.com/watch?v=zcKnUhlyC2s&t=140s) The speaker explains the proprietary declarative configuration language used, which is a dialect of HCL.
- [6:36](https://www.youtube.com/watch?v=zcKnUhlyC2s&t=396s) The project expands to bring a code editor into the browser using the Monaco editor to support users without local IDEs.
- [8:56](https://www.youtube.com/watch?v=zcKnUhlyC2s&t=536s) The initial attempt uses a traditional backend language server architecture, which fails due to stateless startup times and serverless timeout limits.
- [12:02](https://www.youtube.com/watch?v=zcKnUhlyC2s&t=722s) 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](https://www.youtube.com/watch?v=zcKnUhlyC2s&t=1018s) Analyzing user behavior shows that users perform many navigation actions but very little editing.
- [17:58](https://www.youtube.com/watch?v=zcKnUhlyC2s&t=1078s) 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
