Running code should be easy.

Use Bruce to run your code with one request. No servers, no security, no scaling.

See it in action:

How to use Bruce

Bruce has two entities, pipelines and submissions. A pipeline configures the execution environment, and a submission has a pipeline and a piece of code to run. To get started, we can create a basic pipeline:
> curl -X POST https://api.usebruce.com/v1/pipelines -H "X-Access-Token: <access_token>" -d "name=mypipeline"
{
  "name": "mypipeline",
  "id": "55a7b91bc1c7970100bd8471",
  "settings": {
    "env": "",
    "command": "",
    "container": "execution_worker"
  },
  "timeout": 5,
  "language": "any"
}
Then we can send a submission through that pipeline:
> curl -X POST https://api.usebruce.com/v1/submissions -H "X-Access-Token: <access_token>" -d "pipelineId=55a7b91bc1c7970100bd8471&language=python&code=print('hello world')"
{
  "id": "55a7bad2c1c7970100bd8474",
  "pipeline": "55a7b91bc1c7970100bd8471",
  "language": "python",
  "executeDate": "2015-07-16T14:08:19.037Z",
  "status": "executed",
}
And fetch its output:
> curl https://api.usebruce.com/v1/submissions/55a7bad2c1c7970100bd8474/output -H "X-Access-Token: <access_token>"
hello world

Want to try it out?

Enter your email and we'll get in touch about setting up a test drive!