Overview
LiveCodes can import code from various sources, making it easy to:- Load existing projects from GitHub
- Fork and remix code playgrounds
- Import code snippets from gists
- Migrate from other code playground platforms
Import Sources
GitHub Repositories
Import code directly from GitHub repositories:GitHub Gists
Import from public GitHub gists:- Detect HTML, CSS, and JavaScript files
- Map files to appropriate editors
- Load any external resources referenced
GitHub Directories
Import entire directories from GitHub:When importing directories, LiveCodes looks for
index.html, index.css, index.js or similar entry files.GitLab Support
Import from GitLab repositories and snippets:- GitLab files:
https://gitlab.com/user/project/-/blob/main/file.js - GitLab snippets:
https://gitlab.com/-/snippets/snippet-id - GitLab directories:
https://gitlab.com/user/project/-/tree/main/src
Code Playgrounds
CodePen
Import pens from CodePen:
JSBin
Import bins from JSBin:
TypeScript Playground
Import from TS Playground:
Vue Playground
Import from Vue SFC Playground:
Import from URL
Import any web page or code file by URL:DOM Import
Extract code from any webpage:- Load the page
- Extract HTML, CSS, and JavaScript
- Separate inline styles and scripts
Project Import
Import previously saved LiveCodes projects:- By Project ID
- From JSON
- From Compressed Code
Authentication for Private Repos
LiveCodes never stores your code on servers. Everything runs client-side in your browser.
Import via SDK
Programmatically import code using the LiveCodes SDK:Import Strategies
LiveCodes uses intelligent heuristics to determine:- File type detection - Based on extension and content
- Language mapping - Map files to appropriate editors
- Dependency resolution - Detect and load external resources
- Framework detection - Identify React, Vue, etc.
Related Features
- Export - Export your projects
- Share - Share project URLs
- GitHub Integration - Deploy to GitHub Pages