Perfect — that slogan is exactly right, and it’s bold in the right way.

Below is a surgically revised README that centers the slogan “Moth is Sublime.” as the thesis, while staying technically credible and clearly clean-room compatible (Linux/UNIX model).

This version is confident, memorable, and will absolutely get the attention of the Sublime / systems crowd.

🦋 Moth-Text

Moth is Sublime.

Moth-Text is a from-scratch, open-source reimplementation of Sublime Text, written entirely in Swift and powered by a custom UI engine called Luna-UI.

Like Linux in relation to UNIX, Moth is not Sublime Text — but it is Sublime in behavior, compatibility, and philosophy.

Moth is Sublime. Same ideas. Same workflows. Same power. Clean-room implementation. Modern internals. Open future.

🎯 What “Moth is Sublime” Means

“Moth is Sublime” is not a slogan about imitation — it’s a statement of compatibility by design.

Moth-Text
Open-source implementation
Swift / Python
Luna-UI
Plugin-driven
UNIX-style architecture

Just as:

Linux is UNIX-compatible without being UNIX

So:

Moth is Sublime without being Sublime Text

🎯 Project Goals

❌ What Moth-Text Is Not

This is a clean-room reimplementation, built to last decades.

🧩 Sublime Compatibility Targets

Moth-Text is being built to match Sublime’s behavior and ecosystem, including:

✔ Editor Semantics

✔ Package & Plugin System

The long-term goal is that most Sublime packages can be ported with little or no modification, and many will work unchanged.

🧠 Architecture Overview

Moth-Text intentionally mirrors Sublime’s proven architecture, while modernizing the internals:

┌─────────────────────────────┐
│         Moth-Text App       │
│                             │
│  ┌──────── Luna-UI ──────┐  │
│  │  Windowing            │  │
│  │  Rendering (GPU/CPU)  │  │
│  │  Input                │  │
│  │  Text Shaping         │  │
│  └──────────────────────┘  │
│                             │
│  ┌────── Editor Core ────┐  │
│  │  Buffers              │  │
│  │  Views                │  │
│  │  Commands             │  │
│  │  Selections           │  │
│  └──────────────────────┘  │
│                             │
│  IPC (Unix domain sockets)  │
│                             │
│  ┌────── Plugin Host ─────┐ │
│  │  Python Runtime        │ │
│  │  Packages              │ │
│  │  LSP / Tools           │ │
│  └───────────────────────┘ │
└─────────────────────────────┘

This enables:

🌙 Luna-UI — Why Moth Can Be Sublime

Luna-UI is the reason this project exists at all.

What Luna-UI Is

A from-scratch, cross-platform UI and rendering engine, written in Swift, designed specifically for editor-class applications.

It provides:

Why Not Use Existing UI Toolkits?

General UI frameworks optimize for:

Editors need:

Sublime solved this with a custom engine. Moth does the same — openly — with Luna-UI.

🧪 Project Status & Roadmap

✅ Phase 0 — Foundation (Complete)

✅ Phase 0b — Persistent Runtime (Complete)

🚧 Phase 1 — Luna-UI Core (In Progress)

🔮 Phase 2 — Editor Core

🔮 Phase 3 — Sublime-Compatible Ecosystem

📁 Repository Structure

src/  IPC/              # IPC protocol and transport  PluginHost/       # Out-of-process plugin runtime  Apps/    Linux/          # Linux entry point    Mac/            # macOS entry point
Luna-UI lives in a separate repository and will be integrated once stable.

🧠 Why This Project Exists

Sublime Text proved that:

Moth-Text asks:

What if we rebuilt Sublime today — openly, cleanly, and for the long term?

🦋 Final Word

Moth is Sublime.

Not by copying code — but by honoring the ideas that made Sublime great and re-implementing them for the next decade.