# nalgeon/codapi

Interactive code examples

Repository: https://github.com/nalgeon/codapi
Canonical: https://ross.abutalabs.com/products/codapi
Homepage: https://codapi.org
Language: Go
License: Apache-2.0
License Family: permissive
Topics: playground, sandbox, snippets, code-playground, interactive-code, interactive-snippets
Last push: 2026-08-22T06:25:33+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 87, longevity 72
- inputs: {"age_days": 1013, "days_push": 11, "days_rel": 11, "gap_med": 77, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2122, forks 102 (observed 2026-08-28T04:06:16.587448+00:00)

## What it is
Codapi is a lightweight Go-based sandbox server that executes code snippets in isolated Docker containers via an HTTP API, paired with a JavaScript widget for embedding interactive code examples. It lets documentation authors, course creators, and bloggers turn static code snippets into runnable playgrounds supporting 40+ languages, databases, and tools.

## Use cases
- embed runnable code examples in product documentation
- add interactive exercises to an online course
- let readers run code snippets in blog posts
- try out programming languages and databases in a safe sandbox
- self-host a code execution API for internal tools
- build custom playgrounds for any Docker-runnable software

## When to choose
- you write technical documentation or tutorials and want interactive examples
- you need sandboxed code execution across many languages via a simple API
- you want a self-hosted, open-source alternative to hosted playground services
- you need custom sandboxes built from your own Docker images

## When to avoid
- you need a full online IDE or persistent development environment
- you require high-throughput code execution with strict latency guarantees
- you cannot run Docker/Podman and need only in-browser execution for niche languages
- you need sandboxing with access to sensitive data (not recommended by the project)

## Facets
- artifact type: service
- maturity: active
- function: http-server, sdk, developer-tools, security
- domain: developer-tools, documentation, education, web-development
- platform: windows, self-hosted, browser
- tags: code-playground, sandbox, interactive-documentation, code-snippets, online-courses, docker-sandboxes, linux, macos, docker, web-server

## Member repositories
- nalgeon/codapi (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:16.587448+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:52:52.014226+00:00, confidence not recorded.
  - readme: https://github.com/nalgeon/codapi (fetched 2026-08-28T04:06:16.587448+00:00, sha 61603a179277)
  - homepage: https://codapi.org (fetched 2026-08-29T10:32:52.037196+00:00, sha 27eea4735128)
  - site_page: https://codapi.org/docs (fetched 2026-08-29T10:32:52.049909+00:00, sha 4a8bdc3d60d0)
  - site_page: https://codapi.org/pricing (fetched 2026-08-29T10:32:52.046213+00:00, sha 449e620b3e3c)
  - site_page: https://codapi.org/faq (fetched 2026-08-29T10:32:52.047921+00:00, sha 5fe7430d84bc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
