LiveCodeCraft is a fast, real-time HTML, CSS, and JavaScript editor and preview tool, built with plain HTML, CSS, and JavaScript. It allows developers to quickly write and preview code, making it ideal for prototyping and testing web development ideas.
- Real-time live preview of HTML, CSS, and JavaScript code
- Separate text areas for HTML, CSS, and JavaScript
- Live rendering of code using an iframe
- Autosave functionality via
localStorage
to save code snippets - Dark and light mode support
- Fully responsive and mobile-friendly design
- 100% client-side application (no server required)
- HTML5, CSS3, JavaScript
- Optional: TailwindCSS for styling (or your custom CSS)
To get started with LiveCodeCraft on your local machine, follow these steps:
- Clone the repository:
git clone https://github.com/codewithajoydas/LiveCodeCraft.git
- Navigate to the project folder:
cd LiveCodeCraft
- Open
index.html
in your browser:
open index.html
LiveCodeCraft/
βββ index.html # Main HTML file
βββ style.css # CSS styles for the editor and layout
βββ script.js # JavaScript for handling code preview and live updates
βββ assets/ # Images or assets for styling
- HTML, CSS, and JavaScript are written in separate text areas.
- As you type, the code is injected into an
<iframe>
for live preview. - All code is saved in the browser's
localStorage
, so your code persists even after page reloads. - Themes can be toggled between dark and light mode.
- HTML, CSS, and JavaScript editors with live preview
- Real-time rendering in an iframe
- Theme switcher (Dark/Light mode)
- Export project as HTML/ZIP file
- Multi-tab support for working on multiple projects
- Syntax highlighting for better code readability (using a library like PrismJS)
This project is licensed under the MIT License.