An open API service indexing awesome lists of open source software.

https://github.com/tylim88/firebox

📦Simple CodeSandBox-like Web App, Install Dependencies and Run Code All In Your Browser
https://github.com/tylim88/firebox

esbuild monaco-editor react

Last synced: about 2 months ago
JSON representation

📦Simple CodeSandBox-like Web App, Install Dependencies and Run Code All In Your Browser

Awesome Lists containing this project

README

        

# Firebox

[![Netlify Status](https://api.netlify.com/api/v1/badges/04a9977a-1fb4-433f-bb17-ce3adc58b8f4/deploy-status)](https://app.netlify.com/sites/firebox1/deploys)

## Intro

Simple CodeSandBox-like Web App, Install Dependencies and Run Code All In Your Browser.

![Firebox](./img/img1.png)

https://firebox1.netlify.app/

1. the root div id is `root`
2. automatic install dependencies by resolving import statements

For some reason, the code doesn't work in development, it only works in production.

## Installation

```bash
npm i --force
```

## Quick Start

```bash
npm run serve
```

## Future Works

1. virtual file system
2. resolve local relative path
3. create fullstack to store user codes
4. resizer

## Credit

https://codesandbox.io/s/h4xfy

There is not much demo I can found on web, most are Codepen like example that cannot do import and transpilation

The above Codesandbox is one that has almost complete minimum viable solution.

Improvements:

1. update esbuild and editor API to modern version (2022)
2. add console (the original one is not working)
3. simplify logics, especially on the iframe
4. remake UI and add light theme