https://github.com/alvii147/codeku
A lightweight, plug-and-play, embeddable code execution widget for the web.
https://github.com/alvii147/codeku
code-execution codemirror css html iframe javascript piston
Last synced: 4 months ago
JSON representation
A lightweight, plug-and-play, embeddable code execution widget for the web.
- Host: GitHub
- URL: https://github.com/alvii147/codeku
- Owner: alvii147
- License: mit
- Created: 2025-08-23T12:10:26.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-08-24T01:12:26.000Z (4 months ago)
- Last Synced: 2025-08-24T08:20:02.198Z (4 months ago)
- Topics: code-execution, codemirror, css, html, iframe, javascript, piston
- Language: HTML
- Homepage: https://alvii147.github.io/codeku/
- Size: 271 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.pcrf.net)
codeku is a lightweight, plug-and-play, embeddable code execution widget for the web.
[](https://github.com/alvii147/codeku/blob/main/LICENSE) [](https://www.pcrf.net)
# Quick Start
To get started, embed the URL `https://alvii147.github.io/codeku/embed` in an `iframe`:
```html
```
The embedded widget will look like this:

# Languages
codeku currently supports the following languages:
[](https://gcc.gnu.org/) [](https://gcc.gnu.org/) [](https://go.dev/) [](https://www.java.com/) [](https://nodejs.org/) [](https://www.python.org/) [](https://www.php.net/) [](https://www.rust-lang.org/) [](https://www.typescriptlang.org/)
# Parameters
You can customize codeku using the following query parameters:
Parameter | Description | Options | Example
--- | --- | --- | ---
`language` | Default programming language. | `c`, `cpp`, `go`, `java`, `javascript`, `python`, `php`, `rust`, `typescript` | `language=python`
`language_options` | Comma-separated list of programming languages to include in dropdown. | | `language=go,python,rust`
`code_{language}` | Initial code set for a language, url encoded. | | `code_python=print(42)`
`editor_theme` | Theme to use for editor. | `light`, `dark` | `editor_theme=light`
# Examples
Check out the example blog post on [Defying Array Indexing Convention](https://alvii147.github.io/codeku/examples/defying-array-indexing-convention).