zkjon / live-js

Simple Live Javascript coding

Home Page:https://live-javascript.vercel.app/

Repository from Github https://github.comzkjon/live-jsRepository from Github https://github.comzkjon/live-js

Live JS

🌟 Live JS

A modern web application for writing, executing, and sharing JavaScript code in real-time with a minimalist and elegant interface.

Code Editor

  • Monaco Editor with complete JavaScript syntax highlighting
  • Line numbers and cursor positioning
  • Real-time syntax validation
  • Keyboard shortcuts (Ctrl+Enter to execute)
  • Professional code editing experience

Interactive Execution

  • Node.js for real-time JavaScript execution
  • Real-time output streaming with live results
  • Error handling with detailed stack traces
  • Execution timeout to prevent infinite loops
  • Process isolation for secure code execution

User Interface

  • Responsive design that adapts to any screen size
  • Split panel layout (60% editor, 40% output)
  • Dark/Light themes with automatic system detection
  • Smooth transitions and elegant animations
  • Minimalist interface focused on productivity

Advanced Features

  • Save and share code with unique URLs
  • Auto-save in localStorage
  • Customizable settings (font, theme, timeout)
  • Interactive console with input prompts
  • Real-time collaboration ready architecture

πŸ› οΈ Technologies

Frontend

  • Nuxt 3 - Vue.js framework with SSR
  • Vue 3 - Reactive framework with Composition API
  • TypeScript - Static typing for enhanced robustness
  • Tailwind CSS - Utility-first CSS framework
  • Monaco Editor - VS Code's editor for the web
  • Socket.io Client - Real-time WebSocket communication

Backend

  • Nitro - Universal server engine
  • Node.js - JavaScript runtime and execution engine
  • RESTful APIs - Endpoints for saving and sharing code

Development Tools

  • Bun - Ultra-fast runtime and package manager
  • Git - Version control
  • TypeScript - Type-safe development

πŸ“¦ Installation

Prerequisites

  • Bun 1.0+ (recommended) or Node.js 20+

Installation Steps

  1. Clone the repository
git clone https://github.com/zkjon/live-js.git
cd live-js
  1. Install dependencies
bun install
  1. Run in development mode
bun run dev
  1. Open in browser
http://localhost:3000

πŸš€ Usage

Writing Code

  1. Write your JavaScript code in the left editor panel
  2. Use Ctrl+Enter to execute or click the "Run" button
  3. See real-time results in the right output panel

Theme Switching

  1. Click the "Light Theme" or "Dark Theme" button
  2. The interface automatically adapts to your preference
  3. Theme preference is saved locally

Code Management

  1. Click "Clear" to reset the editor
  2. Code is automatically saved in your browser's local storage
  3. Your work persists between sessions

πŸ§ͺ Development

# Start development server
bun run dev

# Build for production
bun run build

# Preview production build
bun run preview

πŸ“ˆ Performance

Performance Metrics

  • Initial load time: < 2s
  • Code execution: < 100ms (simple code)
  • Bundle size: < 500KB (gzipped)
  • Real-time communication: WebSocket-based

Optimizations

  • Automatic code splitting
  • Lazy loading of components
  • Tree shaking to eliminate unused code
  • Gzip/Brotli compression
  • Intelligent asset caching

πŸ”’ Security

Security is a top priority for Live JS. For detailed information about our security measures, reporting vulnerabilities, and best practices, please see our Security Policy.

🀝 Contributing

We welcome contributions from the community! Whether you're fixing bugs, adding features, or improving documentation, your help is appreciated.

For detailed information about contributing, including development setup, coding standards, and the pull request process, please see our Contributing Guide.

πŸ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.

πŸ™ Acknowledgments

  • Monaco Editor for the excellent code editor
  • Nuxt Team for the incredible framework
  • Tailwind CSS for the utility-first styling
  • Socket.io for real-time communication
  • Open Source Community for the tools and libraries

πŸ“ž Support

Have questions or issues?


Live JavaScript coding! ⚑✨

About

Simple Live Javascript coding

https://live-javascript.vercel.app/

License:MIT License


Languages

Language:Vue 55.0%Language:TypeScript 36.5%Language:CSS 8.4%