r/SideProject • • 9d ago

I wanted the same folder of Markdown notes on Windows and Android, so I built Calcite

I wanted to keep my notes in a regular Windows folder, read them on my Android phone, and still be able to reorganize things without hunting down old links. That’s what I built Calcite around.

The clip shows one small thing I cared about. I open a link to a heading, rename the target note, then click the original link again. Calcite updates the Markdown file on disk, and the link still takes me to the same section.

If you already keep notes in Markdown, what’s the first thing you’d try before trusting a new app with your folder?

3 Upvotes

15 comments sorted by

2

u/Thats_All_ 9d ago

I just use Google Drive and mounted it on the desktop for all my computers

1

u/dfzr_666 9d ago

For desktop-to-desktop, mounting Google Drive is honestly hard to beat. Calcite mainly came out of trying to get that same plain-folder experience working offline on Android alongside Windows, plus automatic link updates when moving notes around.

1

u/dfzr_666 9d ago

I’m the developer. Calcite is MIT-licensed. The Windows app runs on Electron, the Android app uses Capacitor, and they share the code for indexing, link updates, and sync. You can pair the two devices on a trusted local network or sync through your own HTTPS Git repo.

The UI is mostly in Chinese right now. The clip has English captions, and GitHub Releases has a Windows installer and an Android debug APK.

If you try it and hit a rough edge, an issue with the steps you took would help. PRs are welcome too.

https://github.com/dfzr8899/Calcite

1

u/MobileXapps 9d ago

The first thing I'd try is editing the same note on both devices while one is offline, then reconnecting. Whatever Calcite does there (last write wins, a conflict copy, a merge) decides whether I trust it with my folder. A conflict copy next to the file is boring but nobody loses text.

Second, edit a file from another app while Calcite is open, VS Code or Obsidian on the same folder. A lot of note apps keep their own index and quietly overwrite the outside change on the next save.

Third, I'd check that a rename only touches the lines with the link and leaves everything else byte for byte the same: frontmatter, line endings (CRLF on Windows vs LF from Android), trailing spaces. If a rename shows up in git as a whole-file diff, people who version their notes will notice fast.

1

u/dfzr_666 9d ago

Really appreciate the detailed checklist—those are all fair stress tests.

  1. Offline conflicts: Right now Calcite uses LWW for the active file and automatically archives the overwritten version into Version History (diffable and restorable) so nothing is silently lost while keeping the folder clean. That said, I totally get the appeal of an explicit conflict copy right next to the file—making that behavior configurable is definitely worth considering.
  2. External edits (VS Code / Obsidian): Good catch. I haven't hardened a strict pre-save mtime/hash guard for open buffers modified outside the app yet, so I'm adding that exact scenario to my test suite so it reloads or warns instead of silently clobbering outside edits.
  3. Byte-for-byte link renames: The refactor skips fenced/inline code blocks and leaves frontmatter untouched, *but* to be completely transparent: right now Calcite normalizes text writes to LF to prevent Windows/Android Git noise. On an existing CRLF repo, that would indeed show up as a whole-file diff on rename—preserving the file's original line endings during link refactors is a sharp catch and something I should fix.

1

u/Guallpa-Naraine 9d ago

I'd test renaming a file or folder that has dozens of incoming links all at once, then check if any files got corrupted or partially written if the app closes mid-update

1

u/dfzr_666 9d ago

That's a great edge case. Right now multi-file link updates are written sequentially, so a hard crash mid-batch could leave part of the vault updated and part not (or risk a partial write).

Switching bulk link updates to atomic temp-file writes (write to temp + rename) and recording a lightweight rollback/journal step is a clear hardening win—appreciate you bringing it up.

0

u/[deleted] 9d ago

[removed] — view removed comment

1

u/dfzr_666 9d ago

Completely fair—testing a rename/move/delete combo on a copy of the folder is probably the best way to sanity-check any local-first app.

A few pieces are already being hardened right now: untouched files are skipped completely on disk (no silent rewrites or mtime churn), and link refactors only patch the exact link spans while keeping everything else byte-identical.

A persistent "what Calcite just changed" activity log plus a one-click undo for bulk link updates and deletes isn't built yet, though—and since I'm already adding a refactor journal for crash safety, turning that into a visible change log with undo is a natural next step. Added to the list, thanks for the clear feedback!