Skip to content

Conversation

christianalfoni
Copy link
Contributor

WIP

Copy link

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Sep 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
projects-docs Ready Ready Preview Comment Sep 19, 2025 9:38am

Copy link

codesandbox bot commented Sep 5, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@christianalfoni christianalfoni changed the title major updates Best Practices Docs Sep 9, 2025
},
"sdk": {
"title": "SDK",
"title": "SDK v3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good choice on the location

## Use Cases

3. Install the SDK:
CodeSandbox SDK has been designed to help you build and launch any projects that require:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CodeSandbox SDK has been designed to help you build and launch any projects that require:
CodeSandbox SDK is designed to help you build and launch any projects that require:


## Architecture Overview

At its heart, the SDK enables management of and connections to Sandboxes. You have a lot of flexibility on how you want to deliver secure, scalable development environments:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
At its heart, the SDK enables management of and connections to Sandboxes. You have a lot of flexibility on how you want to deliver secure, scalable development environments:
The SDK enables management of and connections to Sandboxes in secure and scalable development environments. Due to the design of the architecture, there are many options for how to expose functionality in your application.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@christianalfoni Can you add a section above this graphic explaining the architecture?
The image is very helpful, but the page still needs a section that describes the architecture in words.


![Architecture](./architecture.png)

## Environment Types
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is an environment? And why do they matter?
We should explain what we mean by environments before identifying the types.


## The Development Environment Lifecycle

Understanding how your created environments move through their lifecycle is crucial for effective integration. You are building a product with end users that will see these environments through the lens of them being their own _project_. This project will have at least one Sandbox assigned to it for the end user to interact with. Whether that be directly or through an agent. This diagram touches on the integration points through the lifecycle of a project (SDK) VS a Sandbox.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Understanding how your created environments move through their lifecycle is crucial for effective integration. You are building a product with end users that will see these environments through the lens of them being their own _project_. This project will have at least one Sandbox assigned to it for the end user to interact with. Whether that be directly or through an agent. This diagram touches on the integration points through the lifecycle of a project (SDK) VS a Sandbox.
Understanding how sandboxes and templates progress through a development lifecycle is key to integrating CodeSandbox effectively.
An end user may interact with a Sandbox directly, or indirectly through an agent (such as a connected service or automated workflow). Depending on the development flow that you are creating, you will need to mindful of when to fork from a template and when to restart sandboxes.
The diagram below illustrates how the SDK and Sandboxes interact throughout a development lifecycle.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also link to /manage-sandboxes to learn more


Use these methods for:

- **Validation** - Cross-check your internal state against actual sandbox status
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where can I learn how to do this?

Use these methods for:

- **Validation** - Cross-check your internal state against actual sandbox status
- **Administrative features** - Build dashboards and debugging tools
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how I feel about adding this to the docs. Unless we have tools we provide for them to use, all we are saying is "build your own observability layer bc we don't have one for you"


- **Validation** - Cross-check your internal state against actual sandbox status
- **Administrative features** - Build dashboards and debugging tools
- **Runtime information** - Get current resource usage and activity data
Copy link
Contributor

@necoline necoline Sep 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are you trying to say here?
Suggestion
Monitor usage and runtime data - Leverage [data from the CLI](link to page) to monitor usage and activity data

- **Validation** - Cross-check your internal state against actual sandbox status
- **Administrative features** - Build dashboards and debugging tools
- **Runtime information** - Get current resource usage and activity data
- **Troubleshooting** - Investigate sandbox issues or unexpected states
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is too vague to be helpful. Do we have guidance that we can point them to?


# VM Specs

<Callout type="warning" emoji="">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this out of the callout and into a section with a header at the bottom titled '# Best Practices'?

@necoline
Copy link
Contributor

necoline commented Sep 18, 2025

I took a first pass the the docs
There are a few things that need attention

The integration guide

It's a great idea for a page, but the bullet points that are listed now are devoid of context, vague and missing actionable details. I've left some comments on what improvements could look like, but I think the page needs a full refresh.

CLI docs

We need better docs for the CLI - We can take inspiration from docker for how to format this.
Essentially we need to make this more readable by

  • adding descriptions to each section
  • listing the options and descriptions in a table format so it's easier to read
  • providing examples. I think the examples will be particularly useful for helping users understand how to use the CLI for monitoring and debugging

Missing troubleshooting and FAQs

We need to update the FAQs to include the items we posted in here

Add a versions & Changelog page

It's nice to see the callout in the intro page, but we need the SDK versions to be more discoverable
We can add a page in the sidebar for 'versions & changlogs' where we list the past versions and then underneath link to the release notes and docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants