The Journey of CodeSandbox Projects

Rate this content
Bookmark

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 Advanced 2022, check out the latest edition of this React Conference.

FAQ

Code Sandbox is an online code editor that allows users to code, see a live preview, and share their work via a URL. It supports immediate preview updates on code changes and integrates with GitHub, enabling users to fork sandboxes and contribute back with pull requests.

Code Sandbox was initially created to provide a development environment that was always accessible, especially useful when the creator was away on vacation without access to a local development setup. It started as a student project aimed at simplifying code sharing and collaboration.

Originally designed as a component editor focused on React components, Code Sandbox evolved into a more robust online code editor supporting various frameworks and libraries, and eventually integrated features for extensive collaboration and version control through GitHub.

One of the key milestones for Code Sandbox includes reaching 30 million sandboxes created on the platform, indicating substantial user engagement and growth since its inception.

Code Sandbox lowers the barrier to entry for coding by eliminating the need for environment setup. Beginners can start coding immediately in a pre-configured environment, making it an excellent tool for learning and experimenting with code.

Code Sandbox Repos extends the platform's capabilities by integrating with GitHub, allowing sandboxes to be tied to repository branches. This enables seamless contributions through pull requests and enhances collaborative features, making it suitable for larger and more complex projects.

In Code Sandbox, users can fork an existing sandbox, creating a new sandbox that is an exact copy but owned by the user. This model facilitates experimentation and individual contribution while maintaining the integrity of the original codebase.

Integrating Code Sandbox with GitHub allows users to manage their sandboxes within the context of their repositories, streamline contributions via pull requests, and enhance version control processes. This integration supports a more robust development workflow directly from the browser.

Ives van Hoorne
Ives van Hoorne
25 min
21 Oct, 2022

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Code Sandbox is an online code editor that started as a component editor. It has evolved and now has 30 million sandboxes. The creators emphasize the importance of seeking external feedback and doing fast releases. They also highlight the power of having true fans and the value of user feedback. Code Sandbox is expanding to support big projects and integrating with GitHub. It offers collaboration features, the ability to use your own code editor, and native apps for iPad and iPhone. The challenges lie in running everything in a virtual machine and enabling fast dev servers. Code Sandbox is also exploring the possibility of running other technologies like Deno, Bun, and Ruby on Rails. The talk concludes with a demo of running a Minecraft server on Code Sandbox.

1. Introduction to Code Sandbox

Short description:

Hello, everyone. This is my first time speaking at React events. I'm here to talk about Code Sandbox. We now have a kind of celebration. Since yesterday we have hit the 30 million sandboxes on Code Sandbox. During this talk, I want to talk about the story of how Code Sandbox got started and what we have learned along the way.

Hello, everyone. This is my first time that I'm speaking at React events. I've been attending before, but now I'm speaking here and I'm very happy that I can now stand here.

I want to give a warning. This is the first time I've started to use Keynote for this presentation, so I'm pretty enthusiastic with animations.

My name is Yves Van Horne, but my name is pretty hard to pronounce, even in the Netherlands. So you can also call me Yves, you can call me Ives. My friends have trouble with my name, too. They call me Flip. If you want to call me Flip, that's fine as well. My Twitter handle is Compute Ives, or Compute Yves, it doesn't matter.

I'm here to talk about Code Sandbox. First I want to quickly check who of you know Code Sandbox? Okay, this is great. I'm still going to give a demo, because that is just something I like to do. This is Code Sandbox. Essentially, you have code and you have a preview. The great thing about it is you can make changes to that code. You will immediately see it in the preview. The better thing is you get a URL that you can share with other people and then they can play with that code and they can get started with it. Well, they can learn about your ideas.

We now have a kind of celebration. I think since yesterday we have hit the 30 million sandboxes on Code Sandbox. That was something that when we started Code Sandbox we never expected. That was not in our wildest dreams. People have built crazy stuff. All that Mario Kart there, that's not JavaScript. It's just CSS and it's working. You can move your kart around and everything. Any way, during this talk, I want to talk about the story of how Code Sandbox got started. How it started as a little student project and how it grew and grew and grew and what we have learned along the way because my goal really with this talk is if any of you has an idea and might want to work on that idea, I want to talk about the learnings we had so that you might use this as well.

2. The Story of Code Sandbox

Short description:

At the end, I have a bit of a technical part of the talk on how we make the latest version of Code Sandbox work. Let's go back six years and a bit. I was working at an auction website, converting our Ruby on Rails pages to React. While on vacation in St. Ives, I got questions from coworkers about code snippets. I didn't have my laptop, so I couldn't execute the code. This led me to think about having a development environment always available. Instead of pursuing the idea immediately, I started studying at the university. As I attended more lectures, including Java, I decided to start a side project. I saw Code Sandbox on my idea board and created the first version, React Sandbox, focused on components.

And at the end, I have a bit of a technical part of the talk as well on how we make the latest version of Code Sandbox work.

So, let's go back six years and a bit. I was working at an auction website. We were converting our Ruby on Rails pages to React. And, at some point, I was on vacation to a beautiful place called St. Ives. And we went there because my name was in it. That was really the only reason. And, while I was there, I got questions from my coworkers about pieces of code. I got like snippets on Slack. I had to decipher what was going on. And I saw, well, this piece of code is not working because I think it might be this. But it was frustrating. I didn't have my laptop with me so I couldn't execute the code.

And, so, at that point, I was thinking, what if I have my development environment always available? Would that make it easier? Like, would I be able to put it in the browser, for example? And, of course, like many ideas, I didn't do anything with the idea. Instead, I started studying at the university. And at first, that was very nice. And over time, we started to get lectures. More and more lectures. And they were interesting. But then we started getting Java lectures. First one was fine. Second one was also fine. But after the third one, I thought, OK, maybe it's time to also start a side project. Maybe.

And, so, I went to my idea board. I saw Code Sandbox in there and started to open Sketch and create the first version called React Sandbox. And it was very focused on components. Like this in here. It should be a component in the...

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 2023React Advanced 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.