gristlabs_grist-core/app
Paul Fitzpatrick 66643a5e6b
add a pyodide-based "sandbox" flavor (#437)
This adds a new `GRIST_SANDBOX_FLAVOR=pyodide` option where the
version of Python used for the data engine is wasm, and so can
be run by node like the rest of the back end. It still runs as
a separate process.

There are a few small version changes made to packages to avoid
various awkwardnesses present in the current versions. All existing
tests pass.

This is very experimental. To use, you'll need something with
a bash shell and make. First do:
```
cd sandbox/pyodide
make setup           # README.md and Makefile have details
cd ..
```

Then running Grist as:
```
GRIST_SANDBOX_FLAVOR=pyodide yarn start
```
should work. Adding a formula with content:
```
import sys; return sys.version
```
should return a different Python version than other sandboxes.

The motivation for this work is to have a form of sandboxing
that will work on Windows for Grist Electron (for Linux we have
gvisor/runsc, for Mac we have sandbox-exec, but I haven't found
anything comparable for Windows).

It also brings a back-end-free version of Grist a bit closer, for
use-cases where that would make sense - such as serving a report
(in the form of a Grist document) on a static site.
2023-03-06 16:56:25 -05:00
..
client (core) updates from grist-core 2023-03-06 08:21:09 -05:00
common (core) Minimazing widgets 2023-03-02 11:22:49 +01:00
gen-server (core) updates from grist-core 2023-02-21 10:49:19 -05:00
plugin Use relative imports only in plugin folder (#328) 2022-10-26 10:41:38 -04:00
server add a pyodide-based "sandbox" flavor (#437) 2023-03-06 16:56:25 -05:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00