{"id":26748312,"url":"https://github.com/runabol/code-execution-demo","last_synced_at":"2025-04-14T22:14:39.350Z","repository":{"id":193611179,"uuid":"689101427","full_name":"runabol/code-execution-demo","owner":"runabol","description":"A demo of a remote code execution engine using Tork","archived":false,"fork":false,"pushed_at":"2023-10-01T17:23:02.000Z","size":306,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-14T22:14:36.085Z","etag":null,"topics":["arbitrary-code-execution","code-execution-engine","docker","golang","remote-code-execution","remote-code-execution-engine"],"latest_commit_sha":null,"homepage":"","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/runabol.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}},"created_at":"2023-09-08T20:01:12.000Z","updated_at":"2024-09-23T13:03:17.000Z","dependencies_parsed_at":"2023-09-10T22:32:21.370Z","dependency_job_id":"9abb0d8b-3279-45cf-a88e-75e3be0b6a20","html_url":"https://github.com/runabol/code-execution-demo","commit_stats":null,"previous_names":["runabol/tork-demo-codexec","runabol/code-execution-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Fcode-execution-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Fcode-execution-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Fcode-execution-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Fcode-execution-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runabol","download_url":"https://codeload.github.com/runabol/code-execution-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248968917,"owners_count":21191162,"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":["arbitrary-code-execution","code-execution-engine","docker","golang","remote-code-execution","remote-code-execution-engine"],"created_at":"2025-03-28T10:17:22.332Z","updated_at":"2025-04-14T22:14:39.334Z","avatar_url":"https://github.com/runabol.png","language":"TypeScript","readme":"## Arbitrary Code Execution Demo\n\n![screenshot](screenshot.png \"screenshot\")\n\nHave you ever wondered what happens behind the scenes when you hit \"Run\" on a code snippet in online development environments like [Go Playground](https://go.dev/play/) or [Repl.it](https://replit.com/)?\n\n## Detailed instructions \n\n[https://dev.to/acoh3n/lets-build-a-code-execution-engine-4kgi](https://dev.to/acoh3n/lets-build-a-code-execution-engine-4kgi)\n\n## Running the demo\n\nYou'll need:\n\n- [Go](https://golang.org/) version 1.19 or better installed.\n- Docker \n\nStart the server:\n\n```bash\ngo run main.go run standalone\n```\n\nExecute a code snippet. Example\n\n```bash\ncurl \\\n  -s \\\n  -X POST \\\n  -H \"content-type:application/json\" \\\n  -d '{\"language\":\"python\",\"code\":\"print(\\\"hello world\\\")\"}' \\\n  http://localhost:8000/execute\n```\n\nShould output:\n\n```bash\nhello world\n```\n\nYou can try changing the `language` to `go` or `bash`.\n\n## Frontend \n\n```shell\ncd frontend\nnpm i\nnpm run dev\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunabol%2Fcode-execution-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunabol%2Fcode-execution-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunabol%2Fcode-execution-demo/lists"}