Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
How online in browser Code Editor like Code sandbox stores files in browser?

How code sandbox and stackblitz like online in browser code editors store the files in the browser?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

There are various storage APIs available in all major web browsers, Introduced in what's commonly thought of as being part of HTML5. Nowadays, may of these technologies are extending beyond HTML5 - and are growing into standards of their own.

These include:

  • LocalStorage (persists between page loads)
  • SessionStorage (goes away between page loads),
  • IndexedDB (a SQL database in which the browser stores content specifically for that website) - also persists between page loads.

There are various sizing limitations (such as 5MB for localStorage and sessionStorage).

Learn more about IndexedDB (basically an SQL database), here: https://www.w3.org/TR/IndexedDB/

about 4 years ago · Juan Pablo Isaza Report

0

@Derrick's answer is good when it comes to web storage, but it doesn't explain how the code editors do it. If you are interested in how they do it, that would require a backend. Many cloud/backend storage providers, such as Amazon S3, enable them to store the files and then run them in a server on a VM on their own backend after transferring them to the frontend for you to edit. Once you edit them, it re-saves them to the storage backend. This allows them to persist an indefinite number of files for an indefinite amount of time.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!