"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([["6910"],{2340:function(e,s,i){i.r(s),i.d(s,{default:()=>h,frontMatter:()=>d,metadata:()=>o,assets:()=>n,toc:()=>c,contentTitle:()=>r});var o=JSON.parse('{"id":"api/index","title":"LiveCodes","description":"A Code Playground That Just Works!","source":"@site/docs/api/index.md","sourceDirName":"api","slug":"/api/","permalink":"/docs/api/","draft":false,"unlisted":false,"editUrl":"https://github.com/live-codes/livecodes/tree/develop/docs/docs/api/index.md","tags":[],"version":"current","frontMatter":{}}'),t=i("5893"),l=i("65");let d={},r="LiveCodes",n={},c=[{value:"A Code Playground That Just Works!",id:"a-code-playground-that-just-works",level:2},{value:"Quick Start",id:"quick-start",level:3},{value:"Standalone App",id:"standalone-app",level:4},{value:"Embedded Playground",id:"embedded-playground",level:4},{value:"Self-hosted",id:"self-hosted",level:4},{value:"Feature Summary",id:"feature-summary",level:2},{value:"LiveCodes SDK",id:"livecodes-sdk",level:2},{value:"Installation",id:"installation",level:3},{value:"Usage",id:"usage",level:3},{value:"Documentations",id:"documentations",level:2},{value:"Updates",id:"updates",level:2},{value:"Feedback",id:"feedback",level:2},{value:"Contribution",id:"contribution",level:2},{value:"Credits",id:"credits",level:2},{value:"Third Party Packages",id:"third-party-packages",level:2},{value:"License",id:"license",level:2},{value:"Sponsor",id:"sponsor",level:2}];function a(e){let s={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",img:"img",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,l.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.header,{children:(0,t.jsx)(s.h1,{id:"livecodes",children:"LiveCodes"})}),"\n",(0,t.jsx)(s.p,{children:"A Code Playground That Just Works!"}),"\n",(0,t.jsx)("p",{align:"center",children:(0,t.jsx)("img",{width:"300",src:"https://dev.livecodes.io/docs/img/livecodes-logo.svg"})}),"\n",(0,t.jsxs)(s.p,{children:["A ",(0,t.jsx)(s.a,{href:"https://livecodes.io/docs/features/",children:"feature-rich"}),", open-source, ",(0,t.jsx)(s.strong,{children:"client-side"})," code playground for React, Vue, Svelte, Solid, Typescript, Python, Go, Ruby, PHP and ",(0,t.jsx)(s.a,{href:"https://livecodes.io/docs/languages/",children:"90+ languages/frameworks"}),"."]}),"\n",(0,t.jsxs)(s.p,{children:[(0,t.jsx)(s.a,{href:"https://status.livecodes.io",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/live-codes/upptime/master/api/live-codes/uptime.json",alt:"LiveCodes: uptime status"})}),"\n",(0,t.jsx)(s.a,{href:"https://livecodes.io",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/github/v/release/live-codes/livecodes?label=app",alt:"LiveCodes: app version"})}),"\n",(0,t.jsx)(s.a,{href:"https://www.npmjs.com/package/livecodes",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/npm/v/livecodes",alt:"LiveCodes: npm version"})}),"\n",(0,t.jsx)(s.a,{href:"https://www.npmjs.com/package/livecodes",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/npm/dm/livecodes",alt:"LiveCodes: npm downloads"})}),"\n",(0,t.jsx)(s.a,{href:"https://www.jsdelivr.com/package/npm/livecodes",children:(0,t.jsx)(s.img,{src:"https://data.jsdelivr.com/v1/package/npm/livecodes/badge?style=rounded",alt:"LiveCodes: jsdelivr downloads"})}),"\n",(0,t.jsx)(s.a,{href:"https://livecodes.io/docs/languages/",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/badge/languages-96-blue",alt:"LiveCodes: languages"})}),"\n",(0,t.jsx)(s.a,{href:"https://livecodes.io/docs/",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/badge/Documentation-575757?logo=gitbook&logoColor=white",alt:"LiveCodes: docs"})}),"\n",(0,t.jsx)(s.a,{href:"https://livecodes.io/docs/llms.txt",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/badge/llms.txt-575757?logo=googledocs&logoColor=white",alt:"LiveCodes: llms.txt"})}),"\n",(0,t.jsx)(s.a,{href:"https://livecodes.io/docs/llms-full.txt",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/badge/llms--full.txt-575757?logo=googledocs&logoColor=white",alt:"LiveCodes: llms-full.txt"})}),"\n",(0,t.jsx)(s.a,{href:"https://www.codacy.com/gh/live-codes/livecodes/dashboard?utm_source=github.com&utm_medium=referral&utm_content=live-codes/livecodes&utm_campaign=Badge_Grade",children:(0,t.jsx)(s.img,{src:"https://app.codacy.com/project/badge/Grade/3d39f15618e048db9d13c2a0e8002b33",alt:"Codacy Badge"})}),"\n",(0,t.jsx)(s.a,{href:"https://app.lokalise.com/public/34958094667a72e9454592.95108106/",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/live-codes/lokalise-badge/main/badges/translated.json",alt:"Lokalise: translated"})}),"\n",(0,t.jsx)(s.a,{href:"https://app.lokalise.com/public/34958094667a72e9454592.95108106/",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/live-codes/lokalise-badge/main/badges/languages.json",alt:"Lokalise: UI languages"})}),"\n",(0,t.jsx)(s.a,{href:"https://github.com/live-codes/livecodes/blob/develop/LICENSE",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/github/license/live-codes/livecodes",alt:"license - MIT"})}),"\n",(0,t.jsx)(s.a,{href:"https://github.com/live-codes/livecodes",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/github/stars/live-codes/livecodes?style=flat&logo=github",alt:"LiveCodes: GitHub repo"})}),"\n",(0,t.jsx)(s.a,{href:"https://github.com/live-codes/livecodes",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/github/forks/live-codes/livecodes?style=flat&logo=github",alt:"LiveCodes: GitHub repo"})}),"\n",(0,t.jsx)(s.a,{href:"https://x.com/livecodes_io",children:(0,t.jsx)(s.img,{src:"https://img.shields.io/badge/Follow%20@livecodes__io-575757?logo=x",alt:"Follow us on X (formerly Twitter)"})})]}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://livecodes.io",children:"Try it now on livecodes.io"})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://livecodes.io/docs",children:"Documentations"})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://livecodes.io/docs/why",children:"What makes LiveCodes different?"})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.img,{src:"https://dev.livecodes.io/docs/img/screenshots/livecodes-overview.jpg",alt:"LiveCodes list of languages screenshot"})}),"\n",(0,t.jsx)(s.h2,{id:"a-code-playground-that-just-works",children:"A Code Playground That Just Works!"}),"\n",(0,t.jsxs)(s.ul,{children:["\n",(0,t.jsx)(s.li,{children:"No servers to configure (or pay for!)"}),"\n",(0,t.jsx)(s.li,{children:"No databases to maintain (or pay for!)"}),"\n",(0,t.jsx)(s.li,{children:"No installs"}),"\n",(0,t.jsx)(s.li,{children:"No configuration files"}),"\n",(0,t.jsx)(s.li,{children:"No build steps"}),"\n",(0,t.jsx)(s.li,{children:"No subscription fees (free and open-source)"}),"\n",(0,t.jsx)(s.li,{children:"No account required *"}),"\n",(0,t.jsx)(s.li,{children:"No limits for usage (unlimited private projects)"}),"\n",(0,t.jsx)(s.li,{children:"90+ languages/frameworks/processors"}),"\n",(0,t.jsx)(s.li,{children:"Large set of features and integrations"}),"\n",(0,t.jsx)(s.li,{children:"Import code from a wide variety of sources"}),"\n",(0,t.jsx)(s.li,{children:"Use modules from npm, deno.land/x, jsr, GitHub, and others"}),"\n",(0,t.jsx)(s.li,{children:"Easily embed it in your web pages"}),"\n",(0,t.jsx)(s.li,{children:"It runs in the browser (client-side)"}),"\n"]}),"\n",(0,t.jsxs)("sub",{children:["* GitHub account is required only for features that use ",(0,t.jsx)("a",{href:"https://livecodes.io/docs/features/github-integration",target:"_blank",rel:"noopener",children:"GitHub Integration"}),"."]}),"\n",(0,t.jsx)(s.h3,{id:"quick-start",children:"Quick Start"}),"\n",(0,t.jsx)(s.h4,{id:"standalone-app",children:"Standalone App"}),"\n",(0,t.jsxs)(s.ol,{children:["\n",(0,t.jsxs)(s.li,{children:["Go to ",(0,t.jsx)(s.a,{href:"https://livecodes.io",children:"livecodes.io"})]}),"\n"]}),"\n",(0,t.jsxs)(s.p,{children:["... and enjoy all the ",(0,t.jsx)(s.a,{href:"https://livecodes.io/docs/features/",children:"features"}),"!"]}),"\n",(0,t.jsx)(s.h4,{id:"embedded-playground",children:"Embedded Playground"}),"\n",(0,t.jsx)(s.p,{children:"Add this code to your page:"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-html",children:"
\n