{"id":19476197,"url":"https://github.com/siyuan-note/dejavu","last_synced_at":"2025-10-24T03:41:31.409Z","repository":{"id":39158939,"uuid":"501488505","full_name":"siyuan-note/dejavu","owner":"siyuan-note","description":"Data repo for SiYuan","archived":false,"fork":false,"pushed_at":"2024-10-16T11:25:06.000Z","size":1050,"stargazers_count":37,"open_issues_count":0,"forks_count":18,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-18T04:02:24.459Z","etag":null,"topics":["backup","e2ee","siyuan","sync"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siyuan-note.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-09T03:16:41.000Z","updated_at":"2024-10-16T11:25:10.000Z","dependencies_parsed_at":"2023-12-25T04:28:58.369Z","dependency_job_id":"ff4836f9-a5a2-46b4-b582-ab06c2f1d4af","html_url":"https://github.com/siyuan-note/dejavu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siyuan-note%2Fdejavu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siyuan-note%2Fdejavu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siyuan-note%2Fdejavu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siyuan-note%2Fdejavu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siyuan-note","download_url":"https://codeload.github.com/siyuan-note/dejavu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478323,"owners_count":20945266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","e2ee","siyuan","sync"],"created_at":"2024-11-10T19:37:21.692Z","updated_at":"2025-10-24T03:41:31.336Z","avatar_url":"https://github.com/siyuan-note.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DejaVu\n\n[中文](README_zh_CN.md)\n\n## 💡 Introduction\n\n[DejaVu](https://github.com/siyuan-note/dejavu) is the component of data snapshot and sync for SiYuan.\n\n## ✨ Features\n\n* Git-like version control\n* File deduplication in chunks\n* Data compression\n* AES Encrypted\n* Cloud sync and backup\n\n⚠️ Attention\n\n* Folders are not supported\n* Permission attributes are not supported\n* Symbolic links are not supported\n\n## 🎨 Design\n\nDesign reference from [ArtiVC](https://github.com/InfuseAI/ArtiVC).\n\n### Entity\n\n* `ID` Each entity is identified by SHA-1\n* `Index` file list, each index operation generates a new index\n    * `memo` index memo\n    * `created` index time\n    * `files` file list\n    * `count` count of total files\n    * `size` size of total files\n* `File` file, a new file is generated when the actual data file path or content changes\n    * `path` file path\n    * `size` file size\n    * `updated` last update time\n    * `chunks` file chunk list\n* `Chunk` file chunk\n    * `data` actual data\n* `Ref` refers to the index\n    * `latest` built-in reference, automatically points to the latest index\n    * `tag` tag reference, manually point to the specified index\n* `Repo` repository\n\n### Repo\n\n* `DataPath` data folder path, the folder where the actual data file is located\n* `Path` repo folder path, the repo is not stored in the data folder, we need to specify the repo folder path separately\n\nThe repo folder layout is as follows:\n\n```text\n├─indexes\n│      0531732dca85404e716abd6bb896319a41fa372b\n│      19fc2c2e5317b86f9e048f8d8da2e4ed8300d8af\n│      5f32d78d69e314beee36ad7de302b984da47ddd2\n│      cbd254ca246498978d4f47e535bac87ad7640fe6\n│\n├─objects\n│  ├─1e\n│  │      0ac5f319f5f24b3fe5bf63639e8dbc31a52e3b\n│  │\n│  ├─56\n│  │      322ccdb61feab7f2f76f5eb82006bd51da7348\n│  │\n│  ├─7e\n│  │      dccca8340ebe149b10660a079f34a20f35c4d4\n│  │\n│  ├─83\n│  │      a7d72fe9a071b696fc81a3dc041cf36cbde802\n│  │\n│  ├─85\n│  │      26b9a7efde615b67b4666ae509f9fbc91d370b\n│  │\n│  ├─87\n│  │      1355acd062116d1713e8f7f55969dbb507a040\n│  │\n│  ├─96\n│  │      46ba13a4e8eabeca4f5259bfd7da41d368a1a6\n│  │\n│  ├─a5\n│  │      5b8e6b9ccad3fc9b792d3d453a0793f8635b9f\n│  │      b28787922f4e2a477b4f027e132aa7e35253d4\n│  │\n│  ├─be\n│  │      c7a729d1b5f021f8eca0dd8b6ef689ad753567\n│  │\n│  ├─d1\n│  │      324c714bde18442b5629a84a361b5e7528b14a\n│  │\n│  ├─f1\n│  │      d7229171f4fa1c5eacb411995b16938a04f7f6\n│  │\n│  └─f7\n│          ff9e8b7bb2e09b70935a5d785e0cc5d9d0abf0\n│\n└─refs\n    │  latest\n    │\n    └─tags\n            v1.0.0\n            v1.0.1\n```\n\n## 📄 License\n\nDejaVu uses the [GNU AFFERO GENERAL PUBLIC LICENSE, Version 3](https://www.gnu.org/licenses/agpl-3.0.txt) open source license.\n\n## 🙏 Acknowledgement\n\n* [https://github.com/dustin/go-humanize](https://github.com/dustin/go-humanize) `MIT license`\n* [https://github.com/klauspost/compress](https://github.com/klauspost/compress) `BSD-3-Clause license`\n* [https://github.com/panjf2000/ants](https://github.com/panjf2000/ants) `MIT license`\n* [https://github.com/InfuseAI/ArtiVC](https://github.com/InfuseAI/ArtiVC) `Apache-2.0 license`\n* [https://github.com/restic/restic](https://github.com/restic/restic) `BSD-2-Clause license`\n* [https://github.com/sabhiram/go-gitignore](https://github.com/sabhiram/go-gitignore) `MIT license`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiyuan-note%2Fdejavu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiyuan-note%2Fdejavu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiyuan-note%2Fdejavu/lists"}