Running & Deploying

To interact with the Replit App, such as running the code and seeing its output, users will need to fork it. Forking creates a personal copy of the Replit App in their workspace, where they can run and edit the code. For a more integrated experience, you can deploy your Replit App and use an iframe to embed the deployed application from replit.app directly into your site.

How to embed a Replit App

To embed a public Replit App, append the ?embed=true query parameter to the Replit App’s URL. This modification converts the URL into an embeddable link. Below is an example demonstrating how to embed a Replit App using an iframe in HTML:

<iframe src="YOUR Replit App LINK?embed=true" width="600" height="400"></iframe>

Here’s an example of an embedded Replit App:

Customizing the Theme

You can customize the appearance of the embedded Replit App by setting the theme. Add theme=light or theme=dark at the end of the URL to choose between a light or dark theme. For instance, to embed a Replit App with a light theme:

<iframe src="YOUR Replit App LINK?embed=true&theme=light" width="600" height="400"></iframe>

Example with a light theme: