Codync
免費、開源的 1:1 替代方案,取代 Grok Bot 與 Muse。從 iPhone、Mac 或 Linux 桌面將 Claude Code、Codex、Cursor 與 40+ 程式碼代理人作為持續機器人傳訊。群組聊天、主題串…
AI 翻譯
Native macOS viewer and editor for large JSON, XML, YAML and CSV files. Indexes a 100 MB file in under 500 ms. Free, open source, MIT.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗A native macOS structured-document viewer and editor built for speed.
MachStruct opens, navigates, edits, and converts large JSON, XML, YAML, and CSV files in under a second. A 100 MB JSON file is structurally indexed in under 500 ms and displayed as a live, expandable, editable tree — no loading spinners, no frozen UI.
| Search | Table view | Column Stats |
|---|---|---|
| jq query | XML | YAML |
|---|---|---|
| Welcome |
|---|
Built for large files from the ground up:
mmap; a 100 MB file uses < 5 MB of resident memory| File | Size | Nodes | Index time |
|---|---|---|---|
| large.json | 10 MB | 210 K | ~112 ms |
| huge.json | 100 MB | 710 K | ~264 ms |
Benchmarked on an M1 Mac, release build.
| Dependency | Version | Notes |
|---|---|---|
| macOS | 14.0+ | |
| Xcode | 15+ | For building the app |
| simdjson | 3.12.3 | Vendored — no install required |
| Yams | 5.4+ | Resolved via SPM |
| Sparkle | 2.x | Resolved via SPM |
git clone https://github.com/lustech/MachStruct.git
cd MachStruct
open MachStruct.xcodeproj
Press Cmd+R to build and run. Drop any .json, .xml, .yaml, .yml, or .csv file onto the welcome window, paste raw text, or click "Open File...".
swift build -c release
swift test
swift buildbuilds the core library. For the full macOS app, openMachStruct.xcodeprojin Xcode.
MachStruct uses a two-phase parsing architecture:
Phase 1 (Structural Index) — the parser scans the entire file and builds a flat array of byte offsets, types, depths, and parent IDs. No values are decoded yet. This is fast (~100 bytes per node).
Phase 2 (Lazy materialisation) — when a node is expanded in the UI, its children are built from the structural index and their values parsed from the memory-mapped file. Most nodes in large files are never touched.
MachStruct/
├── Sources/CSimdjsonBridge/ C++ bridge wrapping simdjson
├── MachStruct/
│ ├── Core/ Platform-independent library
│ │ ├── Model/ DocumentNode, NodeIndex, ScalarValue, EditTransaction
│ │ ├── FileIO/ MappedFile (mmap + madvise)
│ │ ├── Parsers/ JSON, XML, YAML, CSV parsers
│ │ └── Serializers/ JSON, YAML, CSV serializers + format converter
│ └── App/ SwiftUI app, document lifecycle, UI views
├── MachStructQuickLook/ Quick Look extension
├── MachStructSpotlight/ Spotlight importer
└── MachStructTests/ Test suite
swift test and confirm all tests pass before opening a PRnonisolated for stateless helpersNodeIndex, DocumentNode)Sendable on everything that crosses concurrency boundariesMIT - see LICENSE for details.