playground

Web-based playground for testing Nim code.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install playground
choosenim install playground
git clone https://github.com/theduke/nim-playground

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
playground - - - - - - -

Source

Repository https://github.com/theduke/nim-playground
Homepage https://github.com/theduke/nim-playground
Registry Source nimble_official

README

nim-playground

Interactive server/website that gives you an editor allowing you to easily play with the Nim language.

You can execute Nim code right in your browser, and see the output, or compiler errors. The history of your executed code is saved in browser localStorage.

You should run the playground yourself on your local computer. It only takes two commands to install and launch it.

Get started

  • Install the playground with nimble:
nimble install playground
  • Run the playground:
playground

Bug Notice

As of September 2023, you may encounter the following error when launching the playground:

SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Segmentation fault

This issue originates from the httpbeast library, which is a dependency of jester. For further information, refer to this GitHub issue.

Quick Fix

  • Run the playground:
nimble run -d:useStdLib
  • Compile the playground:
nimble build -d:useStdLib

The flag -d:useStdLib directs jester to use std/asynchttpserver instead of httpbeast.

Security notice

The playground is NOT intended for public hosting / being available publicly, since any user could wreak havoc on the running machine (delete files, etc).

Only use it locally, behind a firewall.

Additional information

Versioning

This project follows SemVer.

License.

This project is under the MIT license.