{"id":28369790,"url":"https://github.com/lite-xl/playground","last_synced_at":"2026-03-10T19:32:23.276Z","repository":{"id":236478446,"uuid":"792642380","full_name":"lite-xl/playground","owner":"lite-xl","description":"Use Lite XL in your browser!","archived":false,"fork":false,"pushed_at":"2025-01-13T13:52:16.000Z","size":16327,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main-v2","last_synced_at":"2025-07-25T22:51:45.501Z","etag":null,"topics":["browser","emscripten","lite-xl","wasm","website"],"latest_commit_sha":null,"homepage":"http://lite-xl.com/playground/","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lite-xl.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-27T06:33:56.000Z","updated_at":"2025-04-23T15:52:55.000Z","dependencies_parsed_at":"2024-06-04T15:43:50.237Z","dependency_job_id":"a41e5e73-62db-4eee-b9fd-ed61f9ab6e05","html_url":"https://github.com/lite-xl/playground","commit_stats":null,"previous_names":["lite-xl/playground"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lite-xl/playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lite-xl%2Fplayground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lite-xl%2Fplayground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lite-xl%2Fplayground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lite-xl%2Fplayground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lite-xl","download_url":"https://codeload.github.com/lite-xl/playground/tar.gz/refs/heads/main-v2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lite-xl%2Fplayground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30350071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","emscripten","lite-xl","wasm","website"],"created_at":"2025-05-29T05:44:55.595Z","updated_at":"2026-03-10T19:32:23.262Z","avatar_url":"https://github.com/lite-xl.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lite XL Playground\n\nThis repository contains files needed to run Lite XL in the browser.\nLite XL includes a shell file that does the job pretty well,\nbut the aim here is to improve the experience more by making it actually\nuseful.\n\n## Instructions\n\nThis repository is still a work-in-progress, so detailed instructions on how\nto set up everything is not available.\n\nIn general, you will need the following tools:\n\n- Emscripten (optionally emsdk) 3.1.57 to 3.1.70. Older versions will not work.\n- file_packager (Installed with Emscripten if emsdk is used)\n- A HTTP Server (I use `darkhttpd`, but Python's `http.server` and npm `http-server` will work)\n- Git\n- Bash (MSYS2 might work but not tested)\n- Python\n\nThe specific dependencies may be mentioned in the Dockerfile.\n\nYou can find specific documentation in each subfolder.\n\n## Fun Cosmopolitan Stuff\n\nThere is a build of [redbean](https://redbean.dev) that has the playground bundled,\nmaking the playground runnable on almost all platforms with a single binary.\nYou can find the binary at the [Releases](https://github.com/lite-xl/playground/releases/tag/latest).\n\nFollow the instructions at [redbean](https://redbean.dev) to set up and run the executable correctly.\n\n## Debug Info\n\nBy default, running `bash scripts/gh-pages-deploy.sh` will generate DWARF debug info\nif the `CI` environment variable is not set.\nTo use the debug info, you must install the [C/C++ DevTools Support (DWARF)](https://chromewebstore.google.com/detail/cc++-devtools-support-dwa/pdcpmagijalfljmkmjngeonclgbbannb)\nextension from the Chrome Web Store.\n\nAfter installation, you must configure path substitution to allow your browser to find your source directory correctly.\nTo do this, right click on the extension icon → Options.\nClick on \"Add module settings\", and enter `lite-xl.wasm` as the module name.\nClick on \"Add path substitution\" and enter `/build-wasm32-emscripten` on the left\nand your source folder (e.g. `/home/user/lite-xl-playground`) on the right.\n\nAfter doing this, the debug information should be usable, including stack traces, source maps and single-stepping.\nYou may need to restart your browser (sometimes several times) for it to work properly.\n\nYou may also need to remove your previous build directory (`build-wasm32-emscripten`)\nto allow meson to reconfigure properly.\n\n\u003cdetails\u003e\n\u003csummary\u003eOriginal README\u003c/summary\u003e\n\n# Lite XL\n\n[![CI]](https://github.com/lite-xl/lite-xl/actions/workflows/build.yml)\n[![Discord Badge Image]](https://discord.gg/UQKnzBhY5H)\n\n![screenshot-dark]\n\nA lightweight text editor written in Lua, adapted from [lite].\n\n* **[Get Lite XL]** — Download for Windows, Linux and Mac OS.\n* **[Get plugins]** — Add additional functionality, adapted for Lite XL.\n* **[Get color themes]** — Add additional colors themes.\n\nPlease refer to our [website] for the user and developer documentation,\nincluding [build] instructions details. A quick build guide is described below.\n\nLite XL has support for high DPI display on Windows and Linux and,\nsince 1.16.7 release, it supports **retina displays** on macOS.\n\nPlease note that Lite XL is compatible with lite for most plugins and all color themes.\nWe provide a separate lite-xl-plugins repository for Lite XL, because in some cases\nsome adaptations may be needed to make them work better with Lite XL.\nThe repository with modified plugins is https://github.com/lite-xl/lite-xl-plugins.\n\nThe changes and differences between Lite XL and rxi/lite are listed in the\n[changelog].\n\n## Overview\n\nLite XL is derived from [lite].\nIt is a lightweight text editor written mostly in Lua — it aims to provide\nsomething practical, pretty, *small* and fast easy to modify and extend,\nor to use without doing either.\n\nThe aim of Lite XL compared to lite is to be more user friendly,\nimprove the quality of font rendering, and reduce CPU usage.\n\n## Customization\n\nAdditional functionality can be added through plugins which are available in\nthe [plugins repository] or in the [Lite XL plugins repository].\n\nAdditional color themes can be found in the [colors repository].\nThese color themes are bundled with all releases of Lite XL by default.\n\n## Quick Build Guide\n\nIf you compile Lite XL yourself, it is recommended to use the script\n`build-packages.sh`:\n\n```sh\nbash build-packages.sh -h\n```\n\nThe script will run Meson and create a tar compressed archive with the application or,\nfor Windows, a zip file. Lite XL can be easily installed\nby unpacking the archive in any directory of your choice.\n\nOtherwise the following is an example of basic commands if you want to customize\nthe build:\n\n```sh\nmeson setup --buildtype=release --prefix \u003cprefix\u003e build\nmeson compile -C build\nDESTDIR=\"$(pwd)/lite-xl\" meson install --skip-subprojects -C build\n```\n\nwhere `\u003cprefix\u003e` might be one of `/`, `/usr` or `/opt`, the default is `/`.\nTo build a bundle application on macOS:\n\n```sh\nmeson setup --buildtype=release --Dbundle=true --prefix / build\nmeson compile -C build\nDESTDIR=\"$(pwd)/Lite XL.app\" meson install --skip-subprojects -C build\n```\n\nPlease note that the package is relocatable to any prefix and the option prefix\naffects only the place where the application is actually installed.\n\n## Installing Prebuilt\n\nHead over to [releases](https://github.com/lite-xl/lite-xl/releases) and download the version for your operating system.\n\nThe prebuilt releases supports the following OSes:\n\n- Windows 7 and above\n- Ubuntu 18.04 and above (glibc 2.27 and above)\n- OS X El Capitan and above (version 10.11 and above)\n\nSome distributions may provide custom binaries for their platforms.\n\n### Windows\n\nLite XL comes with installers on Windows for typical installations.\nAlternatively, we provide ZIP archives that you can download and extract anywhere and run directly.\n\nTo make Lite XL portable (e.g. running Lite XL from a thumb drive),\nsimply create a `user` folder where `lite-xl.exe` is located.\nLite XL will load and store all your configurations and plugins in the folder.\n\n### macOS\n\nWe provide DMG files for macOS. Simply drag the program into your Applications folder.\n\n\u003e **Important**\n\u003e Newer versions of Lite XL are signed with a self-signed certificate,\n\u003e so you'll have to follow these steps when running Lite XL for the first time.\n\u003e\n\u003e 1. Find Lite XL in Finder (do not open it in Launchpad).\n\u003e 2. Control-click Lite XL, then choose `Open` from the shortcut menu.\n\u003e 3. Click `Open` in the popup menu.\n\u003e\n\u003e The correct steps may vary between macOS versions, so you should refer to\n\u003e the [macOS User Guide](https://support.apple.com/en-my/guide/mac-help/mh40616/mac).\n\u003e\n\u003e On an older version of Lite XL, you will need to run these commands instead:\n\u003e\n\u003e ```sh\n\u003e # clears attributes from the directory\n\u003e xattr -cr /Applications/Lite\\ XL.app\n\u003e ```\n\u003e\n\u003e Otherwise, macOS will display a **very misleading error** saying that the application is damaged.\n\n### Linux\n\nUnzip the file and `cd` into the `lite-xl` directory:\n\n```sh\ntar -xzf \u003cfile\u003e\ncd lite-xl\n```\n\nTo run lite-xl without installing:\n\n```sh\n./lite-xl\n```\n\nTo install lite-xl copy files over into appropriate directories:\n\n```sh\nrm -rf  $HOME/.local/share/lite-xl $HOME/.local/bin/lite-xl\nmkdir -p $HOME/.local/bin \u0026\u0026 cp lite-xl $HOME/.local/bin/\nmkdir -p $HOME/.local/share/lite-xl \u0026\u0026 cp -r data/* $HOME/.local/share/lite-xl/\n```\n\n#### Add Lite XL to PATH\n\nTo run Lite XL from the command line, you must add it to PATH.\n\nIf `$HOME/.local/bin` is not in PATH:\n\n```sh\necho -e 'export PATH=$PATH:$HOME/.local/bin' \u003e\u003e $HOME/.bashrc\n```\n\nAlternatively on recent versions of GNOME and KDE Plasma,\nyou can add `$HOME/.local/bin` to PATH via `~/.config/environment.d/envvars.conf`:\n\n```ini\nPATH=$HOME/.local/bin:$PATH\n```\n\n\u003e **Note**\n\u003e Some systems might not load `.bashrc` when logging in.\n\u003e This can cause problems with launching applications from the desktop / menu.\n\n#### Add Lite XL to application launchers\n\nTo get the icon to show up in app launcher, you need to create a desktop\nentry and put it into `/usr/share/applications` or `~/.local/share/applications`.\n\nHere is an example for a desktop entry in `~/.local/share/applications/com.lite_xl.LiteXL.desktop`,\nassuming Lite XL is in PATH:\n\n```ini\n[Desktop Entry]\nType=Application\nName=Lite XL\nComment=A lightweight text editor written in Lua\nExec=lite-xl %F\nIcon=lite-xl\nTerminal=false\nStartupWMClass=lite-xl\nCategories=Development;IDE;\nMimeType=text/plain;inode/directory;\n```\n\nTo get the icon to show up in app launcher immediately, run:\n\n```sh\nxdg-desktop-menu forceupdate\n```\n\nAlternatively, you may log out and log in again.\n\n#### Uninstall\n\nTo uninstall Lite XL, run:\n\n```sh\nrm -f $HOME/.local/bin/lite-xl\nrm -rf $HOME/.local/share/icons/hicolor/scalable/apps/lite-xl.svg \\\n          $HOME/.local/share/applications/com.lite_xl.LiteXL.desktop \\\n          $HOME/.local/share/metainfo/com.lite_xl.LiteXL.appdata.xml \\\n          $HOME/.local/share/lite-xl\n```\n\n## Contributing\n\nAny additional functionality that can be added through a plugin should be done\nas a plugin, after which a pull request to the [Lite XL plugins repository] can be made.\n\nPull requests to improve or modify the editor itself are welcome.\n\n## Licenses\n\nThis project is free software; you can redistribute it and/or modify it under\nthe terms of the MIT license. See [LICENSE] for details.\n\nSee the [licenses] file for details on licenses used by the required dependencies.\n\n\n[CI]:                         https://github.com/lite-xl/lite-xl/actions/workflows/build.yml/badge.svg\n[Discord Badge Image]:        https://img.shields.io/discord/847122429742809208?label=discord\u0026logo=discord\n[screenshot-dark]:            https://user-images.githubusercontent.com/433545/111063905-66943980-84b1-11eb-9040-3876f1133b20.png\n[lite]:                       https://github.com/rxi/lite\n[website]:                    https://lite-xl.com\n[build]:                      https://lite-xl.com/en/documentation/build\n[Get Lite XL]:                https://github.com/lite-xl/lite-xl/releases/latest\n[Get plugins]:                https://github.com/lite-xl/lite-xl-plugins\n[Get color themes]:           https://github.com/lite-xl/lite-xl-colors\n[changelog]:                  https://github.com/lite-xl/lite-xl/blob/master/changelog.md\n[Lite XL plugins repository]: https://github.com/lite-xl/lite-xl-plugins\n[plugins repository]:         https://github.com/rxi/lite-plugins\n[colors repository]:          https://github.com/lite-xl/lite-xl-colors\n[LICENSE]:                    LICENSE\n[licenses]:                   licenses/licenses.md\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flite-xl%2Fplayground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flite-xl%2Fplayground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flite-xl%2Fplayground/lists"}