A scrapyard for Scrapscript.

GET /$sha256

Retrieve a scrap by its SHA-256 hash.

If requested via Accept: application/scrap such will be its response type, otherwise text/plain.

Example

This scrap from the Scrapscript website (simplified) can be evaluated like so:

$ echo '$sha256~~5784ceb93d8e863632b123fbf082ba217525464b85893b564cdf94e2811a0166' | scrap eval
"hi aaaron"

POST /

Stores a scrap passed in the request body, returning its SHA-256 hash.

Uploads will only be accepted if sent with the Content-Type: application/scrap header.