Skip to content

miku/runpad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published