Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

livecodes

> 开发工具
Open source

A Code Playground That Just Works!

1.5K stars0 likes2 views
WebsiteGitHub

About

A Code Playground That Just Works!

LiveCodes

A 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 90+ languages/frameworks. Try it now on livecodes.io

Documentations

What makes LiveCodes different?

A 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)
  • 90+ 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:

xml

<script type="module">
  import { createPlayground } from 'https://cdn.jsdelivr.net/npm/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

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

... and it just works!

Feature Summary

  • A wide range of language support (90+ languages/frameworks/processors)
  • Powerful Editor
  • Mobile-friendly
  • External resources/libraries
  • Import modules from npm, deno.land/x, jsr, GitHub and others
  • Code Pre-fill
  • Import/Export projects
  • Share
  • Embed the playground in any web page
  • Display modes
  • Deploy
  • Starter Templates
  • Assets
  • Themes
  • Dev Tools (console, compiled code viewer, test runner)
  • Code formatting
  • Intellisense
  • Lite mode
  • Read-only mode
  • Broadcast
  • Sync
  • Backup/Restore
  • Client-side!
  • Very configurable
  • Developer-friendly build-free environment
  • Powerful SDK (available for JavaScript, TypeScript, React, Vue, Svelte, Solid, Preact and web components)
  • Comprehensive Documentations
  • Focused on privacy and security
  • Free and Open-Source

For details check the full list of features.

LiveCodes SDK

The Software Development Kit (SDK) provides an easy, yet powerful, interface to embed and communicate with LiveCodes playgrounds.

The SDK is provided as a light-weight npm package (or jsr package), that is also available from CDNs. It can be used to create playgrounds with a wide variety of configurations and embed options. In addition, SDK methods allow programmatic communication and control of the playgrounds during runtime.

Installation

bash
npm i livecodes

Usage

Example: (open in LiveCodes)

javascript
import { createPlayground } from 'livecodes';

createPlayground('#container', {
  config: {
    markup: {
      language: 'markdown',
      content: '# Hello World!',
    },
  },
  view: 'result',
});

The JavaScript SDK is framework/library agnostic. However, wrapper components are also provided for React, Vue, Svelte, Solid, Preact and web components. TypeScript support provides type-safety and a great developer experience.

React SDK example: (open in LiveCodes)

javascript
import LiveCodes from 'livecodes/react';

const config = {
  markup: {
    language: 'markdown',
    content: '# Hello World!',
  },
};
const Playground = () => <LiveCodes config={config} />;
export default Playground;

Vue SDK example: (open in LiveCodes)

xml
<script setup>
  import LiveCodes from 'livecodes/vue';

  const config = {
    markup: {
      language: 'markdown',
      content: '# Hello World!',
    },
  };
</script>

<template>
  <LiveCodes :config="config" />
</template>

In addition, the SDK allows creating links to playgrounds:

javascript
import { getPlaygroundUrl } from 'livecodes';

const url = getPlaygroundUrl({
  config: {
    markup: {
      language: 'markdown',
      content: '# Hello World!',
    },
  },
});

// this URL can be shared
console.log(url);

See SDK docs for more details.

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.

See below for documentations for contributors and AI models.

Updates

Keep up with the latest changes:

  • Twitter/X: @livecodes_io
  • Blog: blog.livecodes.io
  • Development build: dev.livecodes.io

Feedback

We welcome feedback!

Please start a new issue or discussion.

For security reports please refer to SECURITY.md.

You may also reach out to us using the contact form.

Contribution

Contributions are welcome and highly appreciated.

A huge shout-out to our wonderful contributors! Your hard work makes all the difference!

Please refer to the contribution guide and system documentation.

For AI Agents

llms.txt

For developers working with AI agents and language models, we provide specialized documentation files following the [l

Issues· 24 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptcodeeditorhacktoberfestjavascript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具