A fork is a complete copy of a Pen or Project that you can save to your own account and modify. Your forked copy comes with everything the original author wrote, including all of the code and any dependencies.

How to Fork

To fork a Pen or Project, click the Fork button in the header of the Editor, Details, or Full view of the Pen.

You can create a fork before making changes, or you can start editing first, then fork when you're ready to save your changes.

A link to the parent is included in the description of a forked Pen or Project (shown in Details View).

A link to your fork will also appear on the "Forks" tab on the Details View of the original.

The original tags are also included on your fork. You can change or remove them in your settings.

Pro tip! If you're forking your own work often, consider making a Pen Template or Project Template instead.

Forks in Your Dashboard

The "All" view of your Pens and Projects in your Dashboard includes forks. But, you can choose to exclude them if you want to focus on your original work.

To exclude forks from your Dashboard view, select "All My Pens (No Forks)" or "All My Projects (No Forks") from the "View Filter" menu.

You can also choose to only view your forks. To do that, select "Forks" from the "View Filter" menu.

Forks on Your Profile

We separate your forks from your original Pens and Projects on your profile pages so visitors to your profile will see your work first.

On your profile, forked Pens are categorized under Pens > Forked. Forked Projects are categorized under Projects > Forked.

Viewing a Pen or Project's Forks

You can see the children of any public Pen or Project on the "Forks" tab of its Details page. If you hover over the to see a preview of what it looks like.

What happens when a fork is forked?

When a new fork is created from a Pen or Project that is a fork, the new fork is considered a child of the original. So for example, if you create Pen A, and another member forks your Pen to create Pen B, then a third member forks Pen B to create Pen C, Pen C is a child of your Pen A, and will appear on the list of forks from Pen A.

Other fork differences

  • Forks aren't shown in search by default, but you can expand your search to include forks by setting "Show forks" to "True" on the search result page.
  • Forks aren't shown in Recent Pens or Recent Projects.
  • We avoid picking forks, unless they are significantly different from the original.