[READ-ONLY] Mirror of https://github.com/crutchcorn/codewrapper. A modular, framework-agnostic library for building interactive code editors codewrapper.vercel.app
README.md

CodeWrapper #

A screenshot of a terminal, file list, and code editor

A modular, framework-agnostic library for building interactive code editors and terminals in the browser. Built on top of CodeMirror for code editing and xterm.js for terminal emulation, with optional WebContainers integration for in-browser code execution.

Features #

  • 🎨 Code Editor - Full-featured code editor powered by CodeMirror 6
  • 💻 Terminal - Terminal emulation with xterm.js
  • 🔧 Fake Terminal - Simulated terminal for custom command handling
  • 🚀 Code Execution - Run Node.js code in the browser with WebContainers
  • 📦 Framework Agnostic - Core package works with vanilla JavaScript and has adapters for popular web frameworks

Packages #

Package Description
@codewrapper/core Core functionality for code editor, terminal, and code execution
@codewrapper/react React components and hooks
@codewrapper/vue Vue 3 components and composables

See the individual package READMEs for installation and usage instructions.