Lapce is a lightning-fast code editor written in Rust with native GUI performance. Built on the Floem UI library and powered by Xi-Editor's rope science, it's designed to be the fastest editor you've ever used.
Why Lapce Is Different
- Native performance — written in Rust with GPU rendering via wgpu
- Remote development — built-in remote editing over SSH
- WASI plugin system — plugins run in WebAssembly sandboxes
- Modal editing — Vim mode built-in, not bolted on
The Hidden API: WASI Plugin System
Lapce's plugin system uses WebAssembly (WASI), giving you a sandboxed API to extend the editor:
use lapce_plugin::*;
#[plugin]
fn initialize(params: InitializeParams) -> Result<()> {
// Register custom commands
register_command("my-tool.analyze", |_| {
let doc = get_active_document()?;
let content = doc.get_text()?;
// Your analysis logic here
show_message(format!("Lines: {}", content.lines().count()));
Ok(())
});
Ok(())
}
This means you can:
- Build custom code analysis tools that run AT NATIVE SPEED
- Create language-specific tooling without external processes
- Share plugins as portable WASM binaries
Remote Development API
Lapce's proxy architecture gives you a free remote development API:
# Start Lapce proxy on remote server
lapce-proxy --port 8080
# Connect from local Lapce
# Settings → Remote → Add SSH connection
The proxy handles:
- File system operations over SSH
- LSP forwarding
- Terminal multiplexing
- Git operations
Built-in LSP Integration
# settings.toml
[lapce-rust-analyzer]
enable = true
cargo.allFeatures = true
checkOnSave.command = "clippy"
[lapce-python]
server = "pylsp"
format.provider = "black"
Quick Start
# Install
brew install --cask lapce
# or download from https://lapce.dev
# Install a plugin
lapce plugin install lapce-rust
Real-World Impact
A DevOps engineer shared: "I replaced VS Code with Lapce for remote editing. SSH into production servers, edit configs, and the latency is imperceptible. It feels local even on 200ms connections."
Building developer tools or need custom scraping solutions? Reach out at spinov001@gmail.com or explore my automation toolkit.
Have you tried Lapce? What's your take on Rust-based editors?
Top comments (0)