General
What is LiveCodes?
What is LiveCodes?
LiveCodes is a feature-rich, open-source, client-side code playground that supports 80+ languages and frameworks. It runs entirely in the browser without requiring a backend server.
Is LiveCodes free to use?
Is LiveCodes free to use?
Yes, LiveCodes is completely free and open-source under the MIT license. You can use it, modify it, and even self-host it for your own needs.
Can I use LiveCodes offline?
Can I use LiveCodes offline?
Yes, LiveCodes can work offline once the initial assets are loaded. Since it’s client-side, you can even self-host it for complete offline usage.
How is LiveCodes different from other code playgrounds?
How is LiveCodes different from other code playgrounds?
LiveCodes is:
- Client-side: Runs entirely in your browser
- Feature-rich: Supports 80+ languages including Python, Go, Ruby, and more via WebAssembly
- Embeddable: Easy SDK integration for your documentation or website
- Open-source: MIT licensed and community-driven
- Self-hostable: Full Docker support for enterprise deployments
Using LiveCodes
How do I save my code?
How do I save my code?
You can:
- Share URLs: Generate a shareable link that encodes your code
- Export: Download your project as a zip file or GitHub Gist
- User Templates: Save your projects as templates for later use
- Local Storage: Your work is automatically saved in your browser
Can I import code from external sources?
Can I import code from external sources?
Yes, LiveCodes supports importing from:
- GitHub repositories and Gists
- CodePen, JSFiddle, and other playgrounds
- Local files (drag and drop)
- URLs and code snippets
- Images using OCR (v47+)
How do I use npm packages?
How do I use npm packages?
LiveCodes supports multiple ways to use npm packages:
- ES imports: Just import packages directly:
import pkg from 'package-name' - Import maps: Define custom import maps for module resolution
- Bare modules: Import from npm, jsDelivr, or unpkg automatically
- pkg.pr.new: Import unpublished packages under development (v47+)
Which languages and frameworks are supported?
Which languages and frameworks are supported?
LiveCodes supports 80+ languages including:
- Web: HTML, CSS, JavaScript, TypeScript
- Frameworks: React, Vue, Svelte, Angular, Solid, Astro
- Languages: Python, Ruby, Go, Java, C#, PHP, Lua, and many more
- Markup: Markdown, MDX, AsciiDoc, Pug, Haml
- Styles: Sass, Less, Stylus, Tailwind CSS, PostCSS
How do I embed LiveCodes in my website?
How do I embed LiveCodes in my website?
Use the LiveCodes SDK:SDKs are available for JavaScript/TypeScript, React, Vue, and Svelte.
Features & Capabilities
Can I use Tailwind CSS?
Can I use Tailwind CSS?
Yes! LiveCodes has built-in support for both Tailwind CSS v3 and v4:
- v4: Use
@import "tailwindcss";(default for new projects) - v3: Use the old directives for backward compatibility
- Plugins: Import plugins from npm or URLs
- IntelliSense: Monaco editor provides autocomplete and hover info
Does LiveCodes support TypeScript?
Does LiveCodes support TypeScript?
Yes, TypeScript is fully supported with:
- Type checking in the editor
- Auto-imports and IntelliSense
- Custom
tsconfig.jsonconfiguration - Support for
.tsxfiles with React
Can I run tests in LiveCodes?
Can I run tests in LiveCodes?
Yes, LiveCodes includes an integrated testing tool pane that supports popular testing frameworks. You can write and run tests directly in the playground.
How do I share code as an image?
How do I share code as an image?
What editors are available?
What editors are available?
LiveCodes supports multiple editors:
- Monaco: Full-featured editor (VS Code’s editor)
- CodeMirror: Lightweight alternative
- CodeJar: Minimal editor for simple use cases
- Auto mode: Monaco on desktop, CodeMirror on mobile
Self-Hosting & Enterprise
Can I self-host LiveCodes?
Can I self-host LiveCodes?
Yes! LiveCodes provides full Docker support (v47+) with:
- Automatic HTTPS setup
- Custom domain configuration
- Broadcast server for collaboration
- Share service with short URLs
- Open Graph meta tags and oEmbed support
Is LiveCodes suitable for enterprise use?
Is LiveCodes suitable for enterprise use?
Yes, LiveCodes is production-ready and used by many organizations:
- Self-hosted deployment options
- No external dependencies required
- MIT license for commercial use
- Active development and community support
How do I contribute to LiveCodes?
How do I contribute to LiveCodes?
We welcome contributions! See our Contributing Guide for:
- Development setup instructions
- Pull request guidelines
- Code style and conventions
- How to add new language support
Troubleshooting
My code isn't running. What should I check?
My code isn't running. What should I check?
Common issues:
- Check the browser console for errors (F12)
- Verify your imports and module paths are correct
- Ensure you’ve selected the right language
- Check if external resources loaded correctly
- Try clearing cache and reloading
How do I report a bug?
How do I report a bug?
Please report bugs on GitHub Issues:
- Check if the issue already exists
- Provide a minimal reproduction
- Include browser and LiveCodes version
- Share any error messages or console logs
Where can I get help?
Where can I get help?
- Documentation: livecodes.io/docs
- GitHub Discussions: Ask questions
- GitHub Issues: Report bugs
- Community: Join our growing community of developers