{"id":36494847,"url":"https://github.com/codiewio/codenire","last_synced_at":"2026-01-12T02:00:01.942Z","repository":{"id":270710854,"uuid":"893157984","full_name":"codiewio/codenire","owner":"codiewio","description":"🐳 Codenire — Code Playground (backend) based on Docker images with Google gVisor isolation. Extensible and customizable via API.  PostgresQL supported for each language ... Web UI will be soon","archived":false,"fork":false,"pushed_at":"2025-07-04T16:07:34.000Z","size":14184,"stargazers_count":89,"open_issues_count":7,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-04T16:13:22.184Z","etag":null,"topics":["code-execution","code-playground","code-runner","codenire","exercises","online-compiler","programming-languages","sandbox-environment"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codiewio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.MD","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,"zenodo":null},"funding":{"github":["halabooda"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2024-11-23T17:26:59.000Z","updated_at":"2025-07-02T03:47:29.000Z","dependencies_parsed_at":"2025-02-17T09:27:20.284Z","dependency_job_id":"adfc8b9d-cba8-421f-9c13-ce67427685f0","html_url":"https://github.com/codiewio/codenire","commit_stats":null,"previous_names":["codiewio/codenire"],"tags_count":67,"template":false,"template_full_name":null,"purl":"pkg:github/codiewio/codenire","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codiewio%2Fcodenire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codiewio%2Fcodenire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codiewio%2Fcodenire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codiewio%2Fcodenire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codiewio","download_url":"https://codeload.github.com/codiewio/codenire/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codiewio%2Fcodenire/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["code-execution","code-playground","code-runner","codenire","exercises","online-compiler","programming-languages","sandbox-environment"],"created_at":"2026-01-12T02:00:01.109Z","updated_at":"2026-01-12T02:00:01.935Z","avatar_url":"https://github.com/codiewio.png","language":"Go","funding_links":["https://github.com/sponsors/halabooda"],"categories":["Go"],"sub_categories":[],"readme":"# Сodenire Playground\n\nOpen-source online code execution system featuring\na playground and sandbox.\nBuilt on Docker images with robust isolation provided by [Google gVisor](https://github.com/google/gvisor).\n\nThe system is easily extensible with additional technologies and languages.\n\nInspired by:\n- Judje0 Playground: https://github.com/judge0/judge0\n- Google Playground: https://github.com/golang/playground\n\nBut created for more extensible  \n\n\u003cimg width=\"1312\" alt=\"Screenshot 2025-02-24 at 06 12 19\" src=\"https://github.com/user-attachments/assets/c637b921-569f-4060-90c0-dd812b3f5aca\" /\u003e\n\n\n*Playground demonstration in the [codiew.io/ide](https://codiew.io)\n\n\n# 🌟Features\n\n- Multi-Language Support: Run Python, Go, PHP and Node.js or your built code with others configurations and versions what you can think, in isolated Docker containers.\n- Multi-Files Support: Run code that consists of multiple files.\n- Easy extensible: You can create your own build to run code via API or by loading a folder with configurations at startup.\n- (in working) Dependency Management: Automatic handling of project dependencies (pip, go mod, npm).\n- Flexible Execution: Custom entrypoints for both single-file code and full projects.\n- Scalable System: Expandable via a load balancer between a playground and a sandbox.\n- Security: You can accept JWTS signed external system (Supabase JWT Secret Token for example)\n- PostgresQL supported\n- CORS supported\n\n\u003cdetails\u003e\u003csummary\u003eLanguages (updating...)\u003c/summary\u003e\n\u003cdiv\u003e\n  \u003cp\u003e🔥🔥🔥 PostgresQL\u003c/p\u003e\n  \u003cp\u003eBash\u003c/p\u003e\n  \u003cp\u003ePHP 8.3\u003c/p\u003e\n  \u003cp\u003ePHP 8.4\u003c/p\u003e\n  \u003cp\u003ePython 3.12\u003c/p\u003e\n  \u003cp\u003ePython 2.7\u003c/p\u003e\n  \u003cp\u003eC++23\u003c/p\u003e\n  \u003cp\u003eC++20\u003c/p\u003e\n  \u003cp\u003eC++17\u003c/p\u003e\n  \u003cp\u003eC++14\u003c/p\u003e\n  \u003cp\u003eC++11\u003c/p\u003e\n  \u003cp\u003eC 23\u003c/p\u003e\n  \u003cp\u003eC 17\u003c/p\u003e\n  \u003cp\u003eC 11\u003c/p\u003e\n  \u003cp\u003eRuby 2.7\u003c/p\u003e\n  \u003cp\u003eRuby 3.3\u003c/p\u003e\n  \u003cp\u003eKotlin 2.1.10\u003c/p\u003e\n  \u003cp\u003eKotlinScript\u003c/p\u003e\n  \u003cp\u003eGolang 1.23.6\u003c/p\u003e\n  \u003cp\u003eGolang 1.24.0\u003c/p\u003e\n  \u003cp\u003eRust 1.84\u003c/p\u003e\n  \u003cp\u003eRust 1.84 (with Cargo)\u003c/p\u003e\n  \u003cp\u003eTypescript 5.7 (with built-in tsconfig.json if you not provide)\u003c/p\u003e\n  \u003cp\u003eJavascript\u003c/p\u003e\n\u003c/div\u003e\n\u003c/details\u003e\n\n# 🐙Infrastructure Schema\n\n   \u003cdetails\u003e\u003csummary\u003eWhy need isolation\u003c/summary\u003e\n    \u003cp\u003e\n    // TODO::\n   \u003c/p\u003e\n    \u003c/details\u003e\n\n![Image alt](docs/images/general_schema.png)\n\n\n# Sandbox Provision Templates Schema\n\n![Image alt](docs/images/sandbox_schema.png)\n\n**[!] The ability to register Docker images via API is not yet implemented and will be available in the near future!**\n\nOut of the box (in development),\nDockerfiles and configurations for various languages can be found in /sandbox/dockerfiles\n\n# Usage Playground\n\n```\n# Input request result:\n\nPOST https://codenire.io/run\nContent-Type: application/json\n\n{\n  \"templateId\": \"golang_1_23\",\n  \"files\": {\n    \"main.go\": \"package main\\n\\nimport (\\n\\t\\\"flag\\\"\\n\\t\\\"fmt\\\"\\n)\\n\\nfunc main() {\\n\\t// Process command-line arguments\\n\\tname := flag.String(\\\"name\\\", \\\"default\\\", \\\"User name\\\")\\n\\tflag.Parse()\\n\\n\\t// Read data from stdin\\n\\tvar input string\\n\\t_, err := fmt.Scan(\u0026input)\\n\\tif err != nil {\\n\\t\\tfmt.Println(\\\"Error reading from stdin:\\\", err)\\n\\t\\treturn\\n\\t}\\n\\n\\t// Print arguments and stdin data\\n\\tfmt.Printf(\\\"Hello, %s!\\\\n\\\", *name)\\n\\tfmt.Printf(\\\"Stdin data: %s\\\\n\\\", input)\\n}\\n\"\n  },\n  \"args\": \"--name \\\"Mark\\\"\",\n  \"stdin\": \"100.00\"\n}\n\n\n\n# Output result:\n\n{\n  \"Events\": [\n    {\n      \"Kind\": \"stdout\",\n      \"Message\": \"Hello, Mark!\\nStdin data: 100.00\\n\"\n    }\n  ]\n}\n```\n\n# API Docs\n\nFull API spec available here: https://codiewio.github.io/codenire/api/\n\n# Run/Set Up\nYou can Run Playground local (or on MacOS/Ubuntu) via Docker Compose.\n\n**[!] If you start on MacOS you can't start with gVisor Environment**\n\n```yaml\nservices:\n  playground:\n    container_name: play_dev\n    build:\n      context: .\n      dockerfile: Dockerfile\n    ports:\n      - \"8081:8081\"\n    restart: always\n    networks:\n      - \"sandnet\"\n    entrypoint: [\n      \"/playground\",\n      \"--backend-url\", \"http://sandbox_dev/run\",\n      \"--port\", \"8081\",\n    ]\n\n  sandbox:\n    container_name: sandbox_dev\n    build:\n      context: ./sandbox\n      dockerfile: Dockerfile\n    ports:\n      - \"8082:80\"\n    volumes:\n      - /var/run/docker.sock:/var/run/docker.sock\n      # You can set up your path with configs \n      - ./var/dockerfiles:/dockerfiles\n    networks:\n      - sandnet\n    restart: always\n    entrypoint: [\n      \"/usr/local/bin/sandbox\",\n      \"--dockerFilesPath\", \"/dockerfiles\",\n      \"--replicaContainerCnt\", \"1\",\n      \"--port\", \"80\",\n    ]\n\nnetworks:\n  sandnet:\n    name: codenire\n\n\n```\n\n# Deploy\n\n- Docker compose (see [/docs/docker-compose](https://github.com/codiewio/codenire/tree/main/docs/docker-compose) dir — without external gVisor Runtime)\n- [Digital Ocean Terraform](infra/digitalocean/README.md) with load balancing and multi-sandbox cluster\n\n# Roadmap\n- [x] Add MultiFiles/singe scripts\n- [x] Add gVisor Isolation\n~~- [x] Add Hooks to catch/override some request (for auth, for handle code in external system)~~\n- [x] Add Multi actions in once container (different runs in one docker img, for example multi version of c++ in cpp container)\n- [ ] Add WebUI Head with Monaco\n- [x] Add Metrics\n- [ ] Add Tests\n- Add GoLinter\n  - [x] Playground\n  - [x] Sandbox\n- [x] Add debug info in API req/resp\n- [x] Change container replica strategy\n- [ ] Add StateFull sandbox\n- [x] Compile with open network\n- [ ] Add WS messaging\n- [ ] Add action create route\n~~- [ ] Add out provider of templates (S3...)~~ \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodiewio%2Fcodenire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodiewio%2Fcodenire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodiewio%2Fcodenire/lists"}