{"id":13491650,"url":"https://github.com/nalgeon/codapi","last_synced_at":"2025-05-14T14:09:14.810Z","repository":{"id":209086102,"uuid":"723189658","full_name":"nalgeon/codapi","owner":"nalgeon","description":"Interactive code examples","archived":false,"fork":false,"pushed_at":"2025-04-20T11:09:23.000Z","size":119,"stargazers_count":1775,"open_issues_count":1,"forks_count":83,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-05-07T05:43:13.338Z","etag":null,"topics":["code-playground","interactive-code","interactive-snippets","playground","sandbox","snippets"],"latest_commit_sha":null,"homepage":"https://codapi.org","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nalgeon.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},"funding":{"github":["nalgeon"]}},"created_at":"2023-11-24T22:24:22.000Z","updated_at":"2025-05-04T12:29:49.000Z","dependencies_parsed_at":"2024-03-10T20:25:56.409Z","dependency_job_id":"877f643e-788e-4033-970b-84784900d43b","html_url":"https://github.com/nalgeon/codapi","commit_stats":{"total_commits":49,"total_committers":3,"mean_commits":"16.333333333333332","dds":"0.061224489795918324","last_synced_commit":"ccea62a7622dd7d1ecdb5dc8836947b8517c89e7"},"previous_names":["nalgeon/codapi"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalgeon%2Fcodapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalgeon%2Fcodapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalgeon%2Fcodapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalgeon%2Fcodapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nalgeon","download_url":"https://codeload.github.com/nalgeon/codapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254160226,"owners_count":22024567,"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":["code-playground","interactive-code","interactive-snippets","playground","sandbox","snippets"],"created_at":"2024-07-31T19:00:59.005Z","updated_at":"2025-05-14T14:09:09.797Z","avatar_url":"https://github.com/nalgeon.png","language":"Go","funding_links":["https://github.com/sponsors/nalgeon"],"categories":["Members","Go","others"],"sub_categories":[],"readme":"# Interactive code examples\n\n_for documentation, education and fun_ 🎉\n\nCodapi is a platform for embedding interactive code snippets directly into your product documentation, online course or blog post.\n\n```\n┌───────────────────────────────┐\n│ def greet(name):              │\n│   print(f\"Hello, {name}!\")    │\n│                               │\n│ greet(\"World\")                │\n└───────────────────────────────┘\n  Run ►  Edit  ✓ Done\n┌───────────────────────────────┐\n│ Hello, World!                 │\n└───────────────────────────────┘\n```\n\nCodapi manages sandboxes (isolated execution environments) and provides an API to execute code in these sandboxes. It also provides a JavaScript widget [codapi-js](https://github.com/nalgeon/codapi-js) for easier integration.\n\nHighlights:\n\n-   Automatically converts static code examples into mini-playgrounds.\n-   Lightweight and easy to integrate.\n-   Sandboxes for any programming language, database, or software.\n-   Open source. Uses the permissive Apache-2.0 license.\n\nFor an introduction to Codapi, see this post: [Interactive code examples for fun and profit](https://antonz.org/code-examples/).\n\n## Installation\n\nSee [Installing Codapi](docs/install.md) for details.\n\n## Usage\n\nSee [API](docs/api.md) to run sandboxed code using the HTTP API.\n\nSee [codapi-js](https://github.com/nalgeon/codapi-js) to embed the JavaScript widget into a web page.\n\n## Contributing\n\nContributions are welcome. For anything other than bugfixes, please first open an issue to discuss what you want to change.\n\nBe sure to add or update tests as appropriate.\n\n## Support\n\nCodapi is mostly a [one-man](https://antonz.org/) project, not backed by a VC fund or anything.\n\nIf you find Codapi useful, please star it on GitHub and spread the word among your peers. It really helps to move the project forward.\n\n★ [Subscribe](https://antonz.org/subscribe/) to stay on top of new features.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnalgeon%2Fcodapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnalgeon%2Fcodapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnalgeon%2Fcodapi/lists"}