Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miku/runpad
Run code from an etherpad
https://github.com/miku/runpad
code collaboration etherpad execution
Last synced: 28 days 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-03T16:04:30.000Z (about 2 years ago)
- Last Synced: 2024-06-21T18:11:35.482Z (6 months 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![](static/example.png)
Each instance gets a scratch space for files as well. Each pad also gets access
to a virtual filesystem containing a variety of data.![](static/RunPad.png)
## 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
```![](static/screenie.png)
## TODO
* [ ] container sandbox
* [ ] only run code on change
* [ ] implement `watch` like monitor
* [ ] webpage to follow output