https://github.com/phronmophobic/autosync
https://github.com/phronmophobic/autosync
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/phronmophobic/autosync
- Owner: phronmophobic
- License: apache-2.0
- Created: 2026-05-31T17:48:58.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-06-12T21:34:44.000Z (about 1 month ago)
- Last Synced: 2026-06-12T23:16:13.925Z (about 1 month ago)
- Language: Clojure
- Size: 15.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# autosync
An opinioned server and client for syncing automerge documents.
## Usage
### Generate a key
$ clojure -M -m com.phronemophobic.autosync.key 'my.key'
key saved to "my.key"
### Start an autosync server
$ clojure -M -m com.phronemophobic.autosync.server 5001 my.key
server started...
### Sync your automerge documents
```clojure
(require '[com.phronemophobic.autosync.client :as autosync.client]
'[com.phronemophobic.autosync.key :as autosync.key]
'[com.phronemophobic.automerge :as automerge])
(def mykey (autosync.key/load-key "my.key"))
(def mydoc (automerge/doc))
(automerge/put! mydoc "hello" "world")
(def host ...)
(autosync.client/sync-doc! {:host host :port 5001 :key mykey}
"mydoc"
mydoc)
```
## License
Copyright © 2026 Adrian
Licensed under Apache License v2.0.