{"id":13437293,"url":"https://github.com/xi-editor/xi-editor","last_synced_at":"2025-05-13T00:34:21.977Z","repository":{"id":38084788,"uuid":"57167764","full_name":"xi-editor/xi-editor","owner":"xi-editor","description":"A modern editor with a backend written in Rust.","archived":false,"fork":false,"pushed_at":"2024-03-19T00:11:37.000Z","size":9704,"stargazers_count":19815,"open_issues_count":154,"forks_count":701,"subscribers_count":399,"default_branch":"master","last_synced_at":"2025-05-03T06:52:24.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://xi-editor.io","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xi-editor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-26T23:03:23.000Z","updated_at":"2025-05-02T10:35:53.000Z","dependencies_parsed_at":"2024-06-18T11:14:46.656Z","dependency_job_id":"2a4dc306-0344-4299-8675-daf570ff66aa","html_url":"https://github.com/xi-editor/xi-editor","commit_stats":{"total_commits":1787,"total_committers":173,"mean_commits":"10.329479768786127","dds":0.7202014549524343,"last_synced_commit":"ec9bf9161cf8579e3c80f1c336f6482a6c0c66d9"},"previous_names":["google/xi-editor"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi-editor%2Fxi-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi-editor%2Fxi-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi-editor%2Fxi-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi-editor%2Fxi-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xi-editor","download_url":"https://codeload.github.com/xi-editor/xi-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850342,"owners_count":21973661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-07-31T03:00:55.776Z","updated_at":"2025-05-13T00:34:21.921Z","avatar_url":"https://github.com/xi-editor.png","language":"Rust","readme":"# Xi editor\n\n***Maintenance status:*** *The xi-editor project is currently discontinued. Although we will happily accept bug fixes, no new features are currently planned. You may be interested in [the Lapce editor](https://github.com/lapce/lapce), which can be considered a spiritual successor to the xi-editor.\n— The Editors\n\n***Note:*** *This repo contains only the editor core, which is not usable on its own. For editors based on it, check out the list in [Frontends](#frontends).*\n\nThe xi-editor project is an attempt to build a high quality text editor,\nusing modern software engineering techniques. It is initially built for\nmacOS, using Cocoa for the user interface. There are also frontends for\nother operating systems available from third-party developers.\n\nGoals include:\n\n* ***Incredibly high performance***. All editing operations should commit and paint\n  in under 16ms. The editor should never make you wait for anything.\n\n* ***Beauty***. The editor should fit well on a modern desktop, and not look like a\n  throwback from the ’80s or ’90s. Text drawing should be done with the best\n  technology available (Core Text on Mac, DirectWrite on Windows, etc.), and\n  support Unicode fully.\n\n* ***Reliability***. Crashing, hanging, or losing work should never happen.\n\n* ***Developer friendliness***. It should be easy to customize xi editor, whether\n  by adding plug-ins or hacking on the core.\n\n**Learn more** with the creator of Xi, Raph Levien, in this [Recurse Center Localhost talk](https://www.recurse.com/events/localhost-raph-levien\n).\n\nScreenshot:\n\n![xi-mac screenshot](/docs/docs/img/xi-mac-screenshot.png?raw=true)\n\n\n## Getting started\n\nThis repository is the core only. You'll also need a front-end, from the list\nbelow.\n\n\n### Building the core\n\nXi-editor targets 'recent stable Rust'. We recommend installing via [rustup](https://www.rustup.rs).\nThe current minimum supported version is 1.40.\n\nTo build the xi-editor core from the root directory of this repo:\n\n```\n\u003e cd rust\n\u003e cargo build\n```\n\n\n## Frontends\n\nHere are some front-ends in various stages of development:\n\n* [xi-mac](https://github.com/xi-editor/xi-mac), the official macOS front-end.\n\n* [xi-gtk](https://github.com/eyelash/xi-gtk), a GTK+ front-end.\n\n* [xi-term](https://github.com/xi-frontend/xi-term), a text UI.\n\n* [xi-electron](https://github.com/acheronfail/xi-electron), a cross-platform front-end based on web-technologies.\n\n* [Tau](https://gitlab.gnome.org/World/Tau), a GTK+ front-end written in Rust. Forked from https://github.com/bvinc/gxi, which was abandoned.\n\n* [xi-win](https://github.com/xi-editor/xi-win), an experimental Windows front-end written in Rust.\n\n* [kod](https://github.com/linde12/kod), a terminal frontend written in Golang.\n\n* [xi-qt](https://github.com/sw5cc/xi-qt), a Qt front-end.\n\n* [vixi](https://github.com/Peltoche/vixi), a Vim like front-end in Rust.\n\nThe following are currently inactive, based on earlier versions of the front-end\nprotocol, but perhaps could be revitalized:\n\n* [xi_glium](https://github.com/potocpav/xi_glium), an\nexperimental GL-based front-end in Rust.\n\n* [XiEditorVS2015](https://github.com/Sineaggi/XiEditorVS2015), C#.\n\n* [xi-android](https://github.com/adrientetar/xi-android), an Android frontend.\n\nThere are notes (I wouldn’t call it\ndocumentation at this point) on the protocol at\n[frontend.md](https://xi-editor.github.io/xi-editor/docs/frontend-protocol.html). If you're working on a front-end, feel free to\nsend a PR to add it to the above list.\n\n\n## Design decisions\n\nHere are some of the design decisions, and motivation why they should\ncontribute to the above goals:\n\n* ***Separation into front-end and back-end modules***. The front-end is responsible for presenting the user interface and\n  drawing a screen full of text. The back-end (also known as “core”) holds the file buffers and is\n  responsible for all potentially expensive editing operations.\n\n* ***Native UI***. Cross-platform UI toolkits never look and feel quite right. The\n  best technology for building a UI is the native framework of the platform.\n  On Mac, that’s Cocoa.\n\n* ***Rust***. The back-end needs to be extremely performant. In particular, it\n  should use little more memory than the buffers being edited. That level of\n  performance is possible in C++, but Rust offers a much more reliable, and\n  in many ways, higher level programming platform.\n\n* ***A persistent rope data structure***. Persistent ropes are efficient even for\n  very large files. In addition, they present a simple interface to their\n  clients - conceptually, they're a sequence of characters just like a string,\n  and the client need not be aware of any internal structure.\n\n* ***Asynchronous operations***. The editor should never, ever block and prevent the\n  user from getting their work done. For example, autosave will spawn a\n  thread with a snapshot of the current editor buffer (the persistent rope\n  data structure is copy-on-write so this operation is nearly free), which can\n  then proceed to write out to disk at its leisure, while the buffer is still\n  fully editable.\n\n* ***Plug-ins over scripting***. Most text editors have an associated scripting\n  language for extending functionality. However, these languages are usually\n  both more arcane and less powerful than “real” languages. The xi editor will\n  communicate with plugins through pipes, letting them be written in any\n  language, and making it easier to integrate with other systems such as\n  version control, deeper static analyzers of code, etc.\n\n* ***JSON***. The protocol for front-end / back-end communication, as well as\n  between the back-end and plug-ins, is based on simple JSON messages. I\n  considered binary formats, but the actual improvement in performance would\n  be completely in the noise. Using JSON considerably lowers friction for\n  developing plug-ins, as it’s available out of the box for most modern\n  languages, and there are plenty of the libraries available for the other\n  ones.\n\n\n## Current status\n\nThis is still a project in its early stages. The Mac build has basic editing\nfunctionality (it was used to write this README), but looks very spare and\nis still missing essentials such as auto-indent. At the moment, it’s expected\nthat its main community will be developers interested in hacking on a text\neditor.\n\n\n## Authors\n\nThe xi-editor project was started by Raph Levien but has since received\ncontributions from a number of other people. See the [AUTHORS](AUTHORS)\nfile for details.\n\n\n## License\n\nThis project is licensed under the Apache 2 [license](LICENSE).\n\n\n## Contributions\n\nWe gladly accept contributions via GitHub pull requests. Please see\n[CONTRIBUTING.md](.github/CONTRIBUTING.md) for more details.\n\nIf you are interested in contributing but not sure where to start, there is an\nactive Zulip channel at #xi-editor on https://xi.zulipchat.com. There is also\na #xi channel on irc.mozilla.org. Finally, there is a subreddit at\n[/r/xi_editor](https://www.reddit.com/r/xi_editor/).\n","funding_links":[],"categories":["Applications","Rust","应用程序 Applications","Rust (6)","Editor","应用 Applications","others","编辑器","应用"],"sub_categories":["Text editors","文本编辑器 Text editors","网络服务_其他","文本编辑"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxi-editor%2Fxi-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxi-editor%2Fxi-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxi-editor%2Fxi-editor/lists"}