code-run is a browser-based playground designed to eliminate bloat. You write code, you see the result—it’s that simple. Despite its minimal interface, it handles significant complexity behind the scenes, including preprocessing, flexible layout switching, and serverless support for Vue single-file components.
undefined values.import { thing } from 'pkg' and it will resolve. If unpkg fails to find the right version, you can define the import map manually.To get started locally, clone the repository and install dependencies:
git clone https://github.com/wanglin2/code-run.gitcd code-runnpm inpm run serve/code-run/. To change it:publicPath in vue.config.js.base field in src/config/index.js.routerMode in src/config/index.js. Note: If using history mode with nested paths, you may need to adjust the script asset links in /public/index.html.npm run build after modifying any configurations.code-run supports ES Modules (ESM) across JavaScript, TypeScript, CoffeeScript, and Vue. By default, a statement like import moment from 'moment' is transformed into import moment from 'https://unpkg.com/moment?module'.
However, some packages (like Vue) require specific builds. Because the default unpkg redirect often points to a bundler version rather than a browser-ready ESM build, you can use the editor's import map feature to point to the exact URL required.
npm run buildConsole: Compiles /public/console/index.js into an ES5 file (compile.js) for the preview iframe. This file should not be edited manually.npm run buildMonacoWorker: Repackages Monaco Editor web workers. Run this after updating the Monaco version.npm run convertTheme: Converts raw VSCode theme files into the format required by Monaco.npm run createThemeList: Scans the theme directory and automatically regenerates the configuration index.npm run buildVueSFCCompiler: Bundles the @vue/compiler-sfc used for Vue 3 support.
Paper2Video: Transforming LaTeX Papers into AI-Generated Presentation Videos
How to Install Open Notebook: A Guide for Docker and Source Setup
Windows-Use: Enabling LLMs to Control the Windows GUI Without Vision Models
12306-mcp: Query China Train Tickets via MCP Server and LLMs
Agentic-Trading: Multi-Agent Simulator with A2A Protocol and ADK
Transformers Library: Installation, Pipeline API, and Model Examples
NotepadNext Installation Guide for Windows, Linux, and macOS
NPS Proxy: A Powerful Self-Hosted Tunnel to Expose Local Servers
Teable: The Self-Hosted, PostgreSQL-Based Airtable Alternative
AgentCPM-GUI: A Local LLM Agent for Navigating Chinese Mobile Apps
Deepwiki MCP Server: Fetch and Convert Wiki Pages to Markdown
Natural Language CAD Control via CAD-MCP Server