Skip to main content
Home

Code Playground That Just Works!

This package works with Node.js, Deno, Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
88%
Published
10 months ago (0.5.3)

Ceasefire_Now-techforpalestine.org

LiveCodes

Code Playground That Just Works!

A feature-rich, open-source, client-side code playground for React, Vue, Svelte, Solid, Typescript, Python, Go, Ruby, PHP and 80+ languages/frameworks.

LiveCodes: uptime status LiveCodes: app version LiveCodes: npm version LiveCodes: npm downloads LiveCodes: languages Codacy Badge license - MIT LiveCodes: GitHub repo

Try it now on livecodes.io

Documentations

What makes LiveCodes different?

LiveCodes list of languages screenshot

Code Playground That Just Works!

  • No servers to configure (or pay for!)
  • No databases to maintain (or pay for!)
  • No installs
  • No configuration files
  • No build steps
  • No subscription fees (free and open-source)
  • No account required *
  • No limits for usage (unlimited private projects)
  • 80+ languages/frameworks/processors
  • Large set of features and integrations
  • Import code from a wide variety of sources
  • Use modules from npm, deno.land/x, jsr, GitHub, and others
  • Easily embed it in your web pages
  • It runs in the browser (client-side)

* GitHub account is required only for features that use GitHub Integration.

Quick Start

Standalone App

  1. Go to livecodes.io

... and enjoy all the features!

Embedded Playground

Add this code to your page:

<div id="container"></div>
<script type="module">
  import { createPlayground } from 'https://unpkg.com/livecodes';

  createPlayground('#container', {
    params: {
      markdown: '# Hello LiveCodes!',
      css: 'h1 {color: dodgerblue;}',
      js: 'console.log("Hello, from JS!");',
      console: 'open',
    },
  });
</script>

Check documentations for Embedded Playgrounds.

Self-hosted

  1. Download a release

  2. Put it on a static file server (for free!) 1, 2, 3, 4, 5

    Check the guide for self-hosting (including the built-in setup to deploy to GitHub Pages).

... and it just works!

Feature Summary

For details check the full list of features.

Documentations

Comprehensive documentations for features, getting started, configuration and SDK are available on:

https://livecodes.io/docs/

The documentations include demos, code samples, screenshots, Storybook and TypeScript types.

Contribution

Contributions are welcome and highly appreciated.

Please refer to the contribution guide

Credits

LiveCodes uses services that are generously provided by:

Cloudflare Pages

jsDelivr

esm.sh

unpkg

Codeium

bundlejs

dpaste

GitHub

SonarCloud

Codacy

BundleWatch

BrowserStack

Third Party Packages

Packages used by LiveCodes and their licenses are listed here.

License

MIT License © Hatem Hosny

LiveCodes is free and open-source. The app does not contain ads or require subscription. It allows unlimited usage without any restrictions.

By sponsoring LiveCodes, you will be supporting the ongoing development and maintenance of the project, as well as helping to ensure that it remains a valuable resource for the developer community.

Please consider becoming a sponsor.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@hatemhosny/livecodes-demo

Import symbol

import * as livecodes_demo from "@hatemhosny/livecodes-demo";
or

Import directly with a jsr specifier

import * as livecodes_demo from "jsr:@hatemhosny/livecodes-demo";

Add Package

pnpm i jsr:@hatemhosny/livecodes-demo
or (using pnpm 10.8 or older)
pnpm dlx jsr add @hatemhosny/livecodes-demo

Import symbol

import * as livecodes_demo from "@hatemhosny/livecodes-demo";

Add Package

yarn add jsr:@hatemhosny/livecodes-demo
or (using Yarn 4.8 or older)
yarn dlx jsr add @hatemhosny/livecodes-demo

Import symbol

import * as livecodes_demo from "@hatemhosny/livecodes-demo";

Add Package

npx jsr add @hatemhosny/livecodes-demo

Import symbol

import * as livecodes_demo from "@hatemhosny/livecodes-demo";

Add Package

bunx jsr add @hatemhosny/livecodes-demo

Import symbol

import * as livecodes_demo from "@hatemhosny/livecodes-demo";