I'm curious about how platforms like Replit, orchids.app, and lovable.dev manage to set up browser-based ephemeral workspaces. Specifically, I'm interested in their process for running npm or pnpm, generating a preview URL, and then effectively suspending or tearing down these environments. Do you think they're utilizing Google Cloud Platform services for this? Also, are there any optimizations they might use to speed up installations, like Nix layers, buildpacks, or PNPM store caches? I find the technical aspects fascinating and somewhat complex. Thanks for any insights!
1 Answer
It seems like the process is similar to how GitHub Codespaces operates, which is built on Docker containers. If they rely on virtual machines, they might use tools like Packer to create those VMs from a base image. If you want to explore more, check out some learning materials on GitHub Codespaces.

Thanks for the info! I'm looking into GitHub Codespaces as well. Can you explain a bit more about what Packer does? Do these services use raw Kubernetes or something like Azure's serverless Container Instances?