Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Interactive code examples for documentation, education and fun

License

NotificationsYou must be signed in to change notification settings

nalgeon/codapi

Repository files navigation

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 widgetcodapi-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

SeeInstalling Codapi for details.

Usage

SeeAPI to run sandboxed code using the HTTP API.

Seecodapi-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.

Support

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

If you find Codapi useful, please star it on GitHub and spread the word among your peers. It really helps to move the project forward.

Subscribe to stay on top of new features.


[8]ページ先頭

©2009-2025 Movatter.jp