{"id":18282018,"url":"https://github.com/danimydev/code-runner-api","last_synced_at":"2026-05-06T18:32:36.436Z","repository":{"id":248769983,"uuid":"694214691","full_name":"danimydev/code-runner-api","owner":"danimydev","description":"Rest API that runs your code in containers and provide stdout and stderr","archived":false,"fork":false,"pushed_at":"2024-11-07T19:41:55.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-04T15:55:06.362Z","etag":null,"topics":["api","code-runner","deno","docker"],"latest_commit_sha":null,"homepage":"https://github.com/danimydev/code-runner-api","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danimydev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-20T14:50:50.000Z","updated_at":"2024-11-07T19:41:58.000Z","dependencies_parsed_at":"2024-07-17T02:28:10.028Z","dependency_job_id":"a0d99332-4955-4c09-baad-5e64288ef6e6","html_url":"https://github.com/danimydev/code-runner-api","commit_stats":null,"previous_names":["danimydev/code-runner-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimydev%2Fcode-runner-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimydev%2Fcode-runner-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimydev%2Fcode-runner-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimydev%2Fcode-runner-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danimydev","download_url":"https://codeload.github.com/danimydev/code-runner-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247982454,"owners_count":21028120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","code-runner","deno","docker"],"created_at":"2024-11-05T13:04:03.889Z","updated_at":"2026-05-06T18:32:36.401Z","avatar_url":"https://github.com/danimydev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# code-runner-api\n\nA deno api for running code in different programming languages.\n\n\n## Requirements\n\n- [deno](https://deno.land/)\n- [docker-desktop](https://www.docker.com/products/docker-desktop/)\n\n\n## Supported Languages\n\n- [typescript](https://www.typescriptlang.org/)\n- [javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript)\n- [python](https://www.python.org/)\n- [golang](https://go.dev/)\n\n\n## Run Locally\n\nClone the project\n\n```bash\n  git clone https://github.com/thieves-guild/code-runner-api.git\n```\n\nGo to the project directory\n\n```bash\n  cd code-runner-api\n```\n\nStart the server\n\n```bash\n  # locally production\n  deno task start\n```\n\n```bash\n  # locally development\n  deno task dev\n```\n\n```bash\n  # container\n  docker-compose up --build\n```\n\n## API Reference\nYou can use Bruno to open code-runner-api folder (collection).\n\n#### Health check\n```http\nGET /health\n\nHTTP/1.1 200 OK\n```\n\n#### Get all supported languages\n\n```http\nGET /languages\n\nHTTP/1.1 200 OK\nContent-Type: application/json\n\n{\n  \"languages\": [\n    {\n      \"name\": \"typescript\",\n      \"info\": {\n        \"enviromentCommand\": \"--version\",\n        \"executionCommand\": \"deno\",\n        \"executionArgs\": [\n          \"run\"\n        ],\n        \"extension\": \"ts\",\n        \"websiteUrl\": \"https://www.typescriptlang.org/\"\n      },\n      \"enviroment\": [\n        \"deno 1.37.0 (release, x86_64-unknown-linux-gnu)\",\n        \"v8 11.8.172.3\",\n        \"typescript 5.2.2\"\n      ]\n    },\n    {\n      \"name\": \"python3\",\n      \"info\": {\n        \"enviromentCommand\": \"--version\",\n        \"executionCommand\": \"python3\",\n        \"executionArgs\": [],\n        \"extension\": \"py\",\n        \"websiteUrl\": \"https://www.python.org/\"\n      },\n      \"enviroment\": [\n        \"Python 3.10.13\"\n      ]\n    }\n  ],\n  \"timeStampt\": 1695563685183\n}\n```\n\n#### Get supported languages by name (unique)\n\n```http\nGET /languages/:languageName\n\nHTTP/1.1 200 OK\nContent-Type: application/json\n\n{\n  \"name\": \"python3\",\n  \"info\": {\n    \"enviromentCommand\": \"--version\",\n    \"executionCommand\": \"python3\",\n    \"executionArgs\": [],\n    \"extension\": \"py\",\n    \"websiteUrl\": \"https://www.python.org/\"\n  },\n  \"enviroment\": [\n    \"Python 3.10.13\"\n  ],\n  \"timeStampt\": 1695563724530\n}\n```\n\n#### Run code\n\n```http\nPOST /code\nContent-Type: application/json\n\n{\n  \"language\": \"typescript\",\n  \"code\": \"console.log('hello world');\"\n}\n\nHTTP/1.1 201 OK\nContent-Type: application/json\n\n{\n  \"languague\": \"typescript\",\n  \"code\": 0,\n  \"stdout\": \"hello world\\n\",\n  \"stderr\": \"\",\n  \"timeStampt\": 1695563805981\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanimydev%2Fcode-runner-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanimydev%2Fcode-runner-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanimydev%2Fcode-runner-api/lists"}