app
git clone https://branchwell.ai/textley/app.git1 commit pushed here · 1 open to votes · 0 removed by votes · updated 23 min ago
Latest: App source: current code by Branchwell, 24 min ago
| 📁 distribution | |
| 📁 docs | |
| 📁 Packaging | |
| 📁 Resources | |
| 📁 Scripts | |
| 📁 Sources | |
| 📁 Tests | |
| 📄 .gitignore | 68 B |
| 📄 CONTRIBUTING.md | 1.3 KB |
| 📄 LICENSE | 1.2 KB |
| 📄 Package.resolved | 2.0 KB |
| 📄 Package.swift | 1.1 KB |
| 📄 PRD.md | 8.9 KB |
| 📄 README.md | 6.5 KB |
<p align="center"><img src="docs/readme/app-icon.png" alt="Textley app icon" width="128"></p>
<h1 align="center">Textley</h1>
<p align="center"><strong>A native Mac editor for code, text and Markdown.</strong><br>Free, with no account, and open source and public domain (Unlicense).</p>
<p align="center"><a href="https://textley.ai/download/"><strong>Download for Mac</strong></a> · <a href="https://textley.ai/">textley.ai</a> · <a href="#build-and-run">Build it yourself</a> · <a href="LICENSE">public domain (Unlicense)</a></p>
<p align="center"><sub>Free · Apple silicon · macOS 14 or later · Developer ID signed and notarized by Apple</sub></p>
Textley is a native Mac editor for code, text, and Markdown. Open your folders, keep files in sidebar tabs, get syntax coloring for seven languages, and preview Markdown before you save. When you want help, Claude Code, Codex, or Claude chat can work in the same files through Textley's local MCP server.
Textley is free for Apple silicon Macs running macOS 14 or later. There's no account and nothing to sign in to.

Want to help build, test, or document the app? Read the contribution guide.
What it does
- Folders and tabs. Open several folders as roots in the left sidebar. Files open as vertical tabs, each with its own edits, undo history, selection, and scroll position. Move a tab into its own window to see two files side by side. Textley watches the folders and keeps the tree current.
- Syntax coloring. Swift, JavaScript, TypeScript, JSON, HTML, CSS, and Markdown, detected from the filename with a manual override. Coloring lives in the editor display, so it never changes your file.
- Markdown preview. Switch between the source and a rendered preview with ⌥⌘P. Preview works offline, reflects unsaved changes, and doesn't load remote images.
- Find and replace. Case, whole-word, and regex matching with capture groups. Replace All undoes in one step.
- Clean up text. Trim trailing whitespace, change case, and sort lines, on the selection or the whole document.
- File fidelity. UTF-8 with or without BOM, BOM-marked UTF-16, LF and CRLF are preserved unless you change them. Textley asks before overwriting a file another app changed.
- Agents on your terms. In Settings → Integrations, turn on Enable MCP access to let Claude Code, Codex, or Claude chat list your folders and tabs, read, and search files. Turn on Allow MCP to write to let connected agents edit and save with revision checks. The server listens on this Mac only and requires an access token kept in Keychain. See MCP setup.
- Automatic updates. The release build checks for signed updates with Sparkle and installs them automatically. Turn that off in Settings → Editor → Updates, or choose Textley → Check for Updates….



Build and run
Use Xcode 16.3 or newer on an Apple silicon Mac. Open Package.swift in Xcode, or build from the repo root:
swift build
swift test
./Scripts/build-app.sh build debug
open build/Textley.app
build-app.sh writes an ad-hoc signed Textley.app to the output directory you pass (default build/). Source builds leave out Sparkle; only the Developer ID release includes the updater.
Release
Our direct-download release is a Developer ID–signed app with Sparkle in a branded, notarized drag-to-Applications disk image.
python3 -m venv .venv-dmg && .venv-dmg/bin/pip install -r Packaging/macOS/requirements.txt
TEXTLEY_DMG_PYTHON=.venv-dmg/bin/python \
./Scripts/release-app.sh "$RELEASE_DIR" --keychain-profile "$NOTARYTOOL_PROFILE"
Raise CFBundleShortVersionString and CFBundleVersion in Scripts/Info.plist for every update and use a fresh release directory. The script builds the app with Sparkle, makes and verifies the installer, signs, notarizes and staples it, and writes the signed appcast.xml and SHA256SUMS. It signs the feed with the textley-direct Sparkle key and checks that it matches the public key in Scripts/Sparkle.plist. The private key stays in the macOS Keychain.
To publish, serve the stapled DMG under https://textley.ai/downloads/ and the feed at https://textley.ai/appcast.xml, publishing the DMG before the feed. Changing either file's bytes requires regenerating its signature.
Project layout
| Path | What's there |
|---|---|
Sources/TextleyCore | Text files, encodings, syntax coloring, Markdown rendering, and cleanup commands |
Sources/Textley | The AppKit and SwiftUI app, folder vaults, settings, updates, and the MCP server and STDIO bridge |
Resources/TextleyClaudeMCP | The Claude chat desktop extension that the app exports from Settings |
distribution/claude | The Claude Code plugin package |
Scripts, Packaging | App bundle, release, and installer tooling |
Tests | Core, app, and MCP tests |
Product requirements · Support · Privacy
Open source, public domain (Unlicense)
Textley is free, and its source is open under the public domain (Unlicense). Use it, change it, ship it, sell it. Third-party components, including Sparkle and the Swift MCP SDK, keep their own licenses.
<p align="center"> <a href="https://projectatom.ai/"><img src="docs/readme/atom-credit.png" width="92" height="40" alt="Project ATOM"></a> </p>
<p align="center"><strong>A <a href="https://projectatom.ai/">Project ATOM</a> project.</strong> Free apps, open source and public domain (Unlicense).</p>
<p align="center"> <a href="https://opentalon.ai">OpenTalon</a> · <a href="https://inkspring.ai">Inkspring</a> · <a href="https://jotley.ai">Jotley</a> · <a href="https://glimmertoday.com">Glimmer</a> · <a href="https://pulsecanvas.ai">PulseCanvas</a> · <a href="https://voxley.si">Voxley</a> · <a href="https://textley.ai">Textley</a> · <a href="https://graphley.ai">Graphley</a> · <a href="https://bucksley.ai">Bucksley</a> </p>
<p align="center"><a href="https://projectatom.ai/apps">All our apps</a> · <a href="https://projectatom.ai/">Project ATOM</a></p>