Peel is a native JSON editor for macOS, built with SwiftUI, AppKit, Scintilla Cocoa, SQLite and JavaScriptCore. It targets macOS 14+ on Apple Silicon.
make run
- Scintilla-based editing with syntax highlighting, validation, and familiar shortcuts
- Automatic paste formatting for valid JSON; non-JSON text is kept as-is
- Extraction via JavaScript or JSONPath, with automatic formatting of string results containing valid JSON objects or arrays
- JSON string navigation: paths such as
data.value.msg[0].clazzIdsupport completion and extraction through nested JSON objects or arrays encoded as strings - History sidebar: create, search, pin, rename, and delete records; edits persist automatically
- Import / export: open JSON files and export
- Theme: system, light, or dark, with a matching
{ ... }app icon
| Path | Description |
|---|---|
Package.swift |
Swift package and executable products |
Sources/ |
App, JSON core, native editor and extraction process |
Tests/ |
Native core tests, grouped by feature |
Resources/ |
App icons, source artwork and licenses |
scripts/ |
Build, test and dependency preparation |
tools/ |
Benchmarks, editor diagnostics and extraction runtime bundling |
docs/ |
Development, architecture and implementation history |
See architecture for module responsibilities and development for build requirements, data migration and verification.
Run from the repo root. Building and testing require Xcode with the macOS SDK; Node.js is only needed to regenerate the bundled extraction runtime.
| Command | Purpose |
|---|---|
make build |
Build build/Peel.app |
make run |
Build and open Peel |
make test |
Run native tests |
make benchmark |
Build and benchmark Peel |
make runtime |
Regenerate the bundled extraction runtime (requires Node.js) |
Run make to list available commands. Optional Node.js tooling is isolated in tools/runtime/; normal builds and tests use the checked-in extraction bundle.
Resources/Icons/Source/ holds the SVG sources (AppIcon.svg for dark, AppIconLight.svg for light). The app switches AppIcon.icns / AppIconLight.icns with the current appearance.