The Journey of CodeSandbox Projects

Rate this content
Bookmark
CodeSandbox is an online code editor like a local editor but with the ability to share code easily. It began as a side project to help developers by offering a development environment available everywhere. The talk highlights the importance of seeking external feedback and releasing fast to improve products, emphasizing lessons like keeping it simple and focusing on true fans. CodeSandbox Projects integrates Git, allowing users to create branches and collaborate easily. The platform supports running any development server and enables collaboration between VS Code and CodeSandbox. Unique features include VM hibernation and Always On branches, which save memory to disk and resume quickly. CodeSandbox is free for open-source projects, with plans for a subscription model for private repositories.

From Author:

CodeSandbox Projects is the new version of CodeSandbox that enables the workflow of CodeSandbox today, but for projects of any size. During this talk, Ives will share the story of how Projects was created, and how we made it technically possible to build Projects.

This talk has been presented at React Summit 2022, check out the latest edition of this React Conference.

FAQ

The speakers at the conference are Daniel, Marco, Matt, and Yves van Hoornen.

Code Sandbox is an online code editor that allows users to build and share code with a unique link. It supports various features like real-time previews, NPM dependencies, and collaboration tools.

Code Sandbox turned five years old last month, and the company is four years old this month.

Code Sandbox was co-founded by Yves van Hoornen and his co-founder Bas.

The initial idea behind Code Sandbox was to create a component editor, which then evolved into a component library builder, an online component library builder, and finally an online code editor.

Code Sandbox is used for learning to code, sharing work with developers, designers, and product managers, and building projects beyond prototypes.

Code Sandbox Projects is a new feature that integrates with Git, allowing users to create branches, contribute back to original sandboxes, and run any development server or tool within a micro VM.

Code Sandbox uses various techniques like hibernating VMs after inactivity, leveraging Firecracker for fast VM snapshots, and optimizing bundlers to improve performance and scalability.

Yes, Code Sandbox supports private repositories and plans to extend support to other Git platforms like GitLab and Bitbucket.

Code Sandbox is free for open source projects. For private repositories, a subscription model will be applied to cover the costs.

Initially, the founders managed infrastructure costs by running everything in the browser and using a minimal backend setup, which allowed them to scale to 500,000 monthly users on just $40 a month of hosting.

Ives van Hoorne
Ives van Hoorne
32 min
17 Jun, 2022

Comments

Sign in or register to post your comment.

Video Transcription

1. Introduction to Code Sandbox

Short description:

Welcome to the conference! I'm Yves van Hoornen, one of the cofounders of Code Sandbox. Let me introduce you to Code Sandbox, an online code editor. It's like your local code editor, but with the ability to share your code easily. Try it out!

It's time to meet the guys at the conference. Welcome, Daniel, Marco, and Matt. This is the first time we've had a session, so let's check out what the speakers are up to.

Hello, everyone. It's really nice to be here. I think I've never spoken at a conference with this many people. It's absolutely crazy. Keep in mind, this is the first time that I'm using Keynote. I might be a bit enthusiastic with the animations.

So my name is Yves van Hoornen. You can find me on Twitter under the name Compuives. My name is pretty hard to pronounce, even in the Netherlands. So you can call me Yves. You can call me Ives. My friends also have trouble with my name. They call me Flip. So if you want to call me Flip, that's fine as well. I am one of the two cofounders of Code Sandbox.

And first of all, who of you before today has heard of Code Sandbox or has used Code Sandbox? Okay. That is really, really cool. It doesn't matter. I'm still going to demo it because I want to demo it. So this is Code Sandbox. Code Sandbox is an online code editor. It's essentially like your local code editor, but the nice thing is that whenever you build something, you get a link that you can share with people. So I can make a change. I can change this to hello world, for example. It will update in the preview. And if I press fork, I get my unique link and I can share it with other people. Now, Code Sandbox is quite old.

2. The Story of Code Sandbox

Short description:

Last month we turned five years old. We now have 25 million sandboxes. Today I want to talk about the story of Code Sandbox. How Code Sandbox got started as this little side project that turned into a company and what we've learned along the way. At the end, I will do a bit of a crazy talk about Minecraft. So let's get started. I was a web developer for an auction website called Katawiki. We were converting Ruby on Rails, version 2 pages to React. I got questions from my co-workers about the pieces of code. I started to think, it would be interesting if you would have your development environment available everywhere.

Last month we turned five years old. And this month, the company is four years old. When we started Code Sandbox, I never could have expected this amount of people using Code Sandbox. We now have 25 million sandboxes. And the sandboxes are crazy. There is also, like, the top right one is Mario Kart without JavaScript, just in CSS. Which is... I don't know.

Anyway, today I want to talk about the story of Code Sandbox. How Code Sandbox got started as this little side project that turned into a company and what we've learned along the way. My goal is really to inspire you if you have an idea that you actually think about working on it. At the end, I will do a bit of a crazy talk about Minecraft. Which we'll get to at the end.

So let's get started. So five years ago, I was a web developer for an auction website called Katawiki. We were converting Ruby on Rails, version 2 pages to React. At some point, I was on vacation to St. Ives. And we literally went there, because my name is in it. And at the time, I got questions from my co-workers about the pieces of code. And they just sent me snippets on Slack of React. And I couldn't decipher what was going on. Because nowadays, you have everything has a V8 compiler. I didn't have one in my head. I just tried to decipher what was going on. And I started to think, it would be interesting if you would have your development environment available everywhere. And of course, didn't do much with the idea. Like most ideas, started studying. And I remember going to university, and the first lecture was about Java. And then the second lecture was about Java.

QnA

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

React Compiler - Understanding Idiomatic React (React Forget)
React Advanced Conference 2023React Advanced Conference 2023
33 min
React Compiler - Understanding Idiomatic React (React Forget)
Top Content
Watch video: React Compiler - Understanding Idiomatic React (React Forget)
Joe Savona
Mofei Zhang
2 authors
The Talk discusses React Forget, a compiler built at Meta that aims to optimize client-side React development. It explores the use of memoization to improve performance and the vision of Forget to automatically determine dependencies at build time. Forget is named with an F-word pun and has the potential to optimize server builds and enable dead code elimination. The team plans to make Forget open-source and is focused on ensuring its quality before release.
Speeding Up Your React App With Less JavaScript
React Summit 2023React Summit 2023
32 min
Speeding Up Your React App With Less JavaScript
Top Content
Watch video: Speeding Up Your React App With Less JavaScript
Mishko, the creator of Angular and AngularJS, discusses the challenges of website performance and JavaScript hydration. He explains the differences between client-side and server-side rendering and introduces Quik as a solution for efficient component hydration. Mishko demonstrates examples of state management and intercommunication using Quik. He highlights the performance benefits of using Quik with React and emphasizes the importance of reducing JavaScript size for better performance. Finally, he mentions the use of QUIC in both MPA and SPA applications for improved startup performance.
SolidJS: Why All the Suspense?
JSNation 2023JSNation 2023
28 min
SolidJS: Why All the Suspense?
Top Content
Suspense is a mechanism for orchestrating asynchronous state changes in JavaScript frameworks. It ensures async consistency in UIs and helps avoid trust erosion and inconsistencies. Suspense boundaries are used to hoist data fetching and create consistency zones based on the user interface. They can handle loading states of multiple resources and control state loading in applications. Suspense can be used for transitions, providing a smoother user experience and allowing prioritization of important content.
From GraphQL Zero to GraphQL Hero with RedwoodJS
GraphQL Galaxy 2021GraphQL Galaxy 2021
32 min
From GraphQL Zero to GraphQL Hero with RedwoodJS
Top Content
Tom Pressenwurter introduces Redwood.js, a full stack app framework for building GraphQL APIs easily and maintainably. He demonstrates a Redwood.js application with a React-based front end and a Node.js API. Redwood.js offers a simplified folder structure and schema for organizing the application. It provides easy data manipulation and CRUD operations through GraphQL functions. Redwood.js allows for easy implementation of new queries and directives, including authentication and limiting access to data. It is a stable and production-ready framework that integrates well with other front-end technologies.
Jotai Atoms Are Just Functions
React Day Berlin 2022React Day Berlin 2022
22 min
Jotai Atoms Are Just Functions
Top Content
State management in React is a highly discussed topic with many libraries and solutions. Jotai is a new library based on atoms, which represent pieces of state. Atoms in Jotai are used to define state without holding values and can be used for global, semi-global, or local states. Jotai atoms are reusable definitions that are independent from React and can be used without React in an experimental library called Jotajsx.
A Framework for Managing Technical Debt
TechLead Conference 2023TechLead Conference 2023
35 min
A Framework for Managing Technical Debt
Top Content
Today's Talk discusses the importance of managing technical debt through refactoring practices, prioritization, and planning. Successful refactoring requires establishing guidelines, maintaining an inventory, and implementing a process. Celebrating success and ensuring resilience are key to building a strong refactoring culture. Visibility, support, and transparent communication are crucial for addressing technical debt effectively. The team's responsibilities, operating style, and availability should be transparent to product managers.

Workshops on related topic

Build Modern Applications Using GraphQL and Javascript
Node Congress 2024Node Congress 2024
152 min
Build Modern Applications Using GraphQL and Javascript
Featured Workshop
Emanuel Scirlet
Miguel Henriques
2 authors
Come and learn how you can supercharge your modern and secure applications using GraphQL and Javascript. In this workshop we will build a GraphQL API and we will demonstrate the benefits of the query language for APIs and what use cases that are fit for it. Basic Javascript knowledge required.
Building a Shopify App with React & Node
React Summit Remote Edition 2021React Summit Remote Edition 2021
87 min
Building a Shopify App with React & Node
Top Content
WorkshopFree
Jennifer Gray
Hanna Chen
2 authors
Shopify merchants have a diverse set of needs, and developers have a unique opportunity to meet those needs building apps. Building an app can be tough work but Shopify has created a set of tools and resources to help you build out a seamless app experience as quickly as possible. Get hands on experience building an embedded Shopify app using the Shopify App CLI, Polaris and Shopify App Bridge.We’ll show you how to create an app that accesses information from a development store and can run in your local environment.
Build a chat room with Appwrite and React
JSNation 2022JSNation 2022
41 min
Build a chat room with Appwrite and React
WorkshopFree
Wess Cope
Wess Cope
API's/Backends are difficult and we need websockets. You will be using VS Code as your editor, Parcel.js, Chakra-ui, React, React Icons, and Appwrite. By the end of this workshop, you will have the knowledge to build a real-time app using Appwrite and zero API development. Follow along and you'll have an awesome chat app to show off!
Hard GraphQL Problems at Shopify
GraphQL Galaxy 2021GraphQL Galaxy 2021
164 min
Hard GraphQL Problems at Shopify
WorkshopFree
Rebecca Friedman
Jonathan Baker
Alex Ackerman
Théo Ben Hassen
 Greg MacWilliam
5 authors
At Shopify scale, we solve some pretty hard problems. In this workshop, five different speakers will outline some of the challenges we’ve faced, and how we’ve overcome them.

Table of contents:
1 - The infamous "N+1" problem: Jonathan Baker - Let's talk about what it is, why it is a problem, and how Shopify handles it at scale across several GraphQL APIs.
2 - Contextualizing GraphQL APIs: Alex Ackerman - How and why we decided to use directives. I’ll share what directives are, which directives are available out of the box, and how to create custom directives.
3 - Faster GraphQL queries for mobile clients: Theo Ben Hassen - As your mobile app grows, so will your GraphQL queries. In this talk, I will go over diverse strategies to make your queries faster and more effective.
4 - Building tomorrow’s product today: Greg MacWilliam - How Shopify adopts future features in today’s code.
5 - Managing large APIs effectively: Rebecca Friedman - We have thousands of developers at Shopify. Let’s take a look at how we’re ensuring the quality and consistency of our GraphQL APIs with so many contributors.
0 To Auth In An Hour For Your JavaScript App
JSNation 2023JSNation 2023
57 min
0 To Auth In An Hour For Your JavaScript App
WorkshopFree
Asaf Shen
Asaf Shen
Passwordless authentication may seem complex, but it is simple to add it to any app using the right tool.
We will enhance a full-stack JS application (Node.js backend + Vanilla JS frontend) to authenticate users with One Time Passwords (email) and OAuth, including:
- User authentication – Managing user interactions, returning session / refresh JWTs- Session management and validation – Storing the session securely for subsequent client requests, validating / refreshing sessions
At the end of the workshop, we will also touch on another approach to code authentication using frontend Descope Flows (drag-and-drop workflows), while keeping only session validation in the backend. With this, we will also show how easy it is to enable biometrics and other passwordless authentication methods.