A MacOS client for Nextcloud Notes
- Swift 98.8%
- Shell 1.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The unit tests run the sync engine against FakeNotesAPI, which only
assumes how the server behaves. These tests sync two folders ("Mac A"
and "Mac B") through a real Nextcloud 35 with Notes 6.1.1 in Docker:
round trips, rename/move, conflicting offline edits, deletion to the
Trash and title de-duplication ("Idea (2)").
Verified against the server, no client changes needed:
- the note list sends Last-Modified, so pruneBefore works
- a quoted If-Match etag is accepted; a stale one gets 412 with the
current note as the body
Run with e2e/start.sh and NNOTES_E2E_URL=http://localhost:8080; the
suite is skipped when the variable is not set. start.sh gives up after
5 minutes and prints the container logs instead of waiting forever.
Closes #1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
||
| e2e | ||
| NNotes | ||
| NNotesKit | ||
| .gitignore | ||
| CHANGES.md | ||
| LICENSE | ||
| project.yml | ||
| README.md | ||
NNotes
A native macOS client for Nextcloud Notes, built with SwiftUI.
- Offline first – notes are plain Markdown files in a folder you choose. Edit them in NNotes or any other editor.
- Syncs when online – uses the Nextcloud Notes REST API. Conflicting edits are never lost; both versions are kept.
Requirements
- macOS 26 or later
- Xcode 27, XcodeGen
- A Nextcloud server with the Notes app installed
Building
xcodegen # generates NNotes.xcodeproj
open NNotes.xcodeproj
Set BUNDLE_ID_PREFIX in project.yml to your own reverse-DNS prefix before signing.
Project layout
| Path | Purpose |
|---|---|
NNotesKit/ |
Swift package with API, local store and sync logic (swift test) |
NNotes/ |
The macOS app (SwiftUI) |
e2e/ |
Throwaway Nextcloud server for end-to-end tests |
Testing
swift test --package-path NNotesKit # unit tests, no server needed
The end-to-end tests sync two folders through a real Nextcloud server running in Docker:
e2e/start.sh # starts Nextcloud on localhost:8080 with the Notes app
NNOTES_E2E_URL=http://localhost:8080 swift test --package-path NNotesKit --filter E2E
docker compose -f e2e/docker-compose.yml down # removes the server again
Without NNOTES_E2E_URL they are skipped. Set NNOTES_E2E_USER and NNOTES_E2E_PASSWORD to use another server or account.
License
Apache License 2.0 – see LICENSE.