2024-06-13 03:03:31 +05:00
2024-06-08 23:43:48 +05:00
2023-12-05 00:53:50 +05:00
2024-06-13 03:03:31 +05:00
2024-03-28 09:10:03 +05:00
2023-12-04 23:57:03 +05:00
2023-12-01 00:31:11 +05:00
2023-11-25 04:02:45 +05:00
2023-11-26 01:44:32 +05:00
2024-06-13 03:03:31 +05:00

Interactive code examples

for documentation, education and fun 🎉

Codapi is a platform for embedding interactive code snippets directly into your product documentation, online course or blog post.

┌───────────────────────────────┐
│ def greet(name):              │
│   print(f"Hello, {name}!")    │
│                               │
│ greet("World")                │
└───────────────────────────────┘
  Run ►  Edit  ✓ Done
┌───────────────────────────────┐
│ Hello, World!                 │
└───────────────────────────────┘

Codapi manages sandboxes (isolated execution environments) and provides an API to execute code in these sandboxes. It also provides a JavaScript widget codapi-js for easier integration.

Highlights:

  • Automatically converts static code examples into mini-playgrounds.
  • Lightweight and easy to integrate.
  • Sandboxes for any programming language, database, or software.
  • Open source. Uses the permissive Apache-2.0 license.

For an introduction to Codapi, see this post: Interactive code examples for fun and profit.

Installation

See Installing Codapi for details.

Usage

See API to run sandboxed code using the HTTP API.

See codapi-js to embed the JavaScript widget into a web page.

Contributing

Contributions are welcome. For anything other than bugfixes, please first open an issue to discuss what you want to change.

Be sure to add or update tests as appropriate.

Funding

Codapi is mostly a one-man project, not backed by a VC fund or anything.

If you find Codapi useful, please consider sponsoring it on GitHub. It really helps to move the project forward.

Become a sponsor to support Codapi.

Subscribe to stay on top of new features.

Description
Codapi est une plateforme permettant d'intégrer des extraits de code interactifs directement dans la documentation de votre produit, votre cours en ligne ou votre article de blog. Codapi gère les sandbox (environnements d'exécution isolés) et fournit une API pour exécuter du code dans ces sandbox. Il fournit également un widget JavaScript codapi-js pour une intégration plus facile. Points forts: Convertit automatiquement les exemples de code statiques en mini-terrains de jeu. Léger et facile à intégrer. Bacs à sable pour tout langage de programmation, base de données ou logiciel. Open source. Utilise la licence permissive Apache-2.0.
Readme 150 KiB
Languages
Go 98.8%
Makefile 1.1%
Dockerfile 0.1%