https://github.com/miku/runpad
Run code from an etherpad
https://github.com/miku/runpad
code collaboration etherpad execution
Last synced: 10 months ago
JSON representation
Run code from an etherpad
- Host: GitHub
- URL: https://github.com/miku/runpad
- Owner: miku
- License: mit
- Created: 2022-04-02T21:42:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-03T16:04:30.000Z (about 3 years ago)
- Last Synced: 2025-01-24T21:41:08.259Z (about 1 year ago)
- Topics: code, collaboration, etherpad, execution
- Language: Go
- Homepage:
- Size: 192 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# runpad
This is a working **prototype** - use your own risk.
Run code from an etherpad. Designed for collaborative editing, e.g. in a
classroom setting. Works with any publicly accessible pad.
What code is executed?
* we call a fenced code a snippet
* in the future you will be able to control execution with additional options

Each instance gets a scratch space for files as well. Each pad also gets access
to a virtual filesystem containing a variety of data.

## Usage
```
$ RUNPAD_BASE_URL=http://example.com/api RUNPAD_APIKEY=123 runpad -h
Usage of runpad:
-a string
etherpad api key (default "123")
-c show pad contents and info
-l list pads
-p string
pad name to watch (default "runpad")
-r int
run snippet with given id (default -1)
-s list snippets
-u string
etherpad base URL (default "http://example.com/api")
```
## MVP
```
$ watch ./runpad -r 0 -p hello
```

## TODO
* [ ] container sandbox
* [ ] only run code on change
* [ ] implement `watch` like monitor
* [ ] webpage to follow output