73 karma · joined Feb 12, 2017 (9y ago) · 20 submissions
2.
Building a Sync Engine from Scratch(hakanshehu.com ↗)
1 points · by hakanshehu · 9mo ago · 1 comment
comment 1y ago · link · parent
Website: https://colanode.com Repo: https://github.com/colanode/colanode
comment 1y ago · link · parent
p.s Just wanted to say thank you for all the contribution you do here on HN. Colanode (the app I'm building) is an alternative to Notion and I learned a lot about how you (Notion) build things through reading your comments.
comment 1y ago · link · parent
Initially I built only a desktop client, because I didn't like IndexedDB. After the app got into HN, someone recommended to check for OPFS (Origin Private File System).
Now we have a full offline-first app in web using SQLite on top of OPFS. We didn't test it with large scale yet, but so far looks very promising. The good thing is that we use Kysely as an abstraction for performing queries in SQLite which helps us share most of the code across both platforms (electron + web) with some minor abstractions.
You can check the implementation in Github: https://github.com/colanode/colanode
comment 1y ago · link · parent
comment 1y ago · link · parent
- We’ll replace the current error handling for server sync with something safer and more graceful.
- We’ll make SMTP optional, expose TLS verification as a configurable setting and update the docker-compose.
We’ll make these improvements soon, thanks again for the heads-up.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
Regarding Valkey, I included it as an example of a Redis compatible alternative, but you're right, it's probably better to use it in our Docker Compose file as well. Thanks also for pointing out the licensing considerations around Minio, will definitely look into that.
19.
Show HN: Colanode, open-source and local-first Slack and Notion alternative(github.com ↗)
147 points · by hakanshehu · 1y ago · 49 comments
comment 1y ago · link · parent