github.com/nalgeon/codapi
v0.14.0
#806 most downloaded on Go modules
nalgeon/codapi
What this package is like to depend on
Last release 4 months ago
20 Apr 2026
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 7 of 7 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
20 releases · first in 2023
5 releases in the last 12 months
see the full history below
Release timeline
20 releases · Dec 2023 to Apr 2026Releases
latest 20-
v0.14.1-0.20260420091820-08670139eab320 Apr 2026 pre-releaseNothing published for this version
-
v0.14.018 Apr 2026Release notes
Open source →Dropped the
DOCKERenvironment variable introduced in 0.13.1 in favor of thedocker.binconfig option incodapi.json. Having a single configuration source is strictly better.Example:
{ "pool_size": 8, "verbose": true, "docker": { "bin": "nerdctl" } }Also: updated Go version to 1.24.
-
v0.13.117 Apr 2026Release notes
Open source →You can now override the default
dockerexecutable name with theDOCKERenvironment variable (#36, courtesy of @afbjorklund). -
v0.13.013 Dec 2025 -
v0.12.126 Sep 2025Release notes
Open source →You can now create nested directories when running a command in a sandbox.
Before, this request gave an error because the
datadirectory didn't exist:POST /v1/exec { "sandbox": "ash", "command": "run", "files": { "": "cat data/hello.txt", "data/hello.txt": "hello world!" } }Now this request creates the
datadirectory before writinghello.txt, and the command works just fine:{ "id": "ash_run_86408aef", "ok": true, "duration": 542, "stdout": "hello world!", "stderr": "" } -
v0.12.1-0.20250628064428-b7f79e21541c28 Jun 2025 pre-releaseNothing published for this version
-
v0.12.028 Jun 2025Release notes
Open source →Codapi is a lightweight sandbox server for interactive documentation and learning. This release lets you run a source file in a sandbox directly from your terminal:
Usage: ./codapi-cli exec <sandbox> <command> <filename>For example:
./codapi-cli exec ash run hello.sh Hello, world!This is especially helpful when debugging new sandboxes.
-
v0.11.1-0.20250420110920-21c9a6a03e5a20 Apr 2025 pre-releaseNothing published for this version
-
v0.11.020 Apr 2025Release notes
Open source →Codapi is a lightweight sandbox server for interactive documentation and learning. This release introduces a command line interface —
codapi-cli. It makes managing sandboxes much easier:Usage: ./codapi-cli <command> [args...] commands: sandbox add Add a new sandbox sandbox rm Remove an existing sandbox sandbox ls List all sandboxesSee the sandboxes repository for a complete list of supported sandboxes.
-
v0.10.1-0.20250419192256-0ffb64d7313f19 Apr 2025 pre-releaseNothing published for this version
-
v0.10.013 Apr 2025Release notes
Open source →New sandbox layout
Previously, Codapi had its stuff organized into three folders: "images", "boxes", and "commands":
├── configs │ ├── config.json │ ├── boxes │ │ ├── bash.json │ │ └── python.json │ └── commands │ ├── bash.json │ └── python.json └── images ├── bash │ └── Dockerfile └── python └── DockerfileNow each sandbox gets its own subfolder inside the "sandboxes" folder:
├── codapi.json └── sandboxes ├── bash │ ├── Dockerfile │ ├── box.json │ └── commands.json └── python ├── Dockerfile ├── box.json └── commands.jsonAll sandbox-related files live in a single folder, making it easier to create, edit, and distribute sandboxes.
Also, the main configuration file (previously
configs/config.json) is now calledcodapi.jsonand resides next to thecodapibinary.The old layout is still supported for backward compatibility, but will be removed in future releases.
-
v0.0.0-20241110121427-ccea62a7622d10 Nov 2024 pre-releaseNothing published for this version
-
v0.0.0-20241008044106-c77d483e990608 Oct 2024 pre-releaseNothing published for this version
-
v0.0.0-20240612220431-4411aef6fc6812 Jun 2024 pre-releaseNothing published for this version
-
v0.0.0-20240328041201-f250034cd4fb28 Mar 2024 pre-releaseNothing published for this version
-
v0.0.0-20240310191207-e6c7b053f91610 Mar 2024 pre-releaseNothing published for this version
-
v0.0.0-20240303151326-4468c6193c5503 Mar 2024 pre-releaseNothing published for this version
-
v0.0.0-20240220071021-d6945f00480e20 Feb 2024 pre-releaseNothing published for this version
-
v0.0.0-20240119160151-b312100bbcbc19 Jan 2024 pre-releaseNothing published for this version
-
v0.0.0-20231221114631-3fd59120f57c21 Dec 2023 pre-releaseNothing published for this version