---
title: "Discussion on \"How Gravity Sync keeps both versions of your note\" | Hashnode"
description: "Discussion on \"How Gravity Sync keeps both versions of your note\". One SQLite database per library, operations instead of states, and a test suite that tries to break it."
url: "https://hashnode.com/posts/how-gravity-sync-keeps-both-versions-of-your-note/6af851c87342a46cfb1ce40c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How Gravity Sync keeps both versions of your note](https://gravitynotes.hashnode.dev/how-gravity-sync-keeps-both-versions-of-your-note?utm_source=hashnode&utm_medium=feed)

One SQLite database per library, operations instead of states, and a test suite that tries to break it.

5h ago · 9 min read · gravitynotes.hashnode.dev  
Read the article

-   [#sqlite](https://hashnode.com/tag/sqlite)
-   [#cloudflare](https://hashnode.com/tag/cloudflare)
-   [#local-first](https://hashnode.com/tag/local-first)
-   [#architecture](https://hashnode.com/tag/architecture)

## Written by

[Tristan Manchester](https://hashnode.com/@tristanmanchester)

@tristanmanchester

  
[View profile](https://hashnode.com/@tristanmanchester)

I make Gravity, a notes app for iPhone, Android and Mac.

I'm building Gravity on my own in Germany: a notes app built on Andrej Karpathy's append-and-review note, for iPhone, iPad, Android and Mac. I write about how it works at gravitynotes.app/blog.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
