sync-db-os

by ketd
5
4
3
2
1
Score: 52/100

Description

Category: 3rd Party Integrations

The sync-db-os plugin streamlines file synchronization in Obsidian by automatically uploading local images to specified object storage and updating their links. It also facilitates the resolution of conflicts between notes edited on multiple devices and supports uploading large files like PDFs while storing only their hash values in the database. Designed to optimize database usage, the plugin integrates with MongoDB and CouchDB, and supports major object storage providers such as Tencent Cloud and Alibaba Cloud. Key features include automatic image uploads, manual conflict resolution, and efficient large file management.

Reviews

No reviews yet.

Stats

6
stars
250
downloads
0
forks
631
days
629
days
674
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
2
total issues
0
open issues
2
closed issues
41
commits

Latest Version

2 years ago

Changelog

README file from

Github

obsidian-sync-DB-OS

根据自己的一些需求,写了几个常用的同步功能:

  • 在 Obsidian 中粘贴图片时,插件会自动将图片上传到指定的对象存储,并更新图片链接
  • 支持将以插入的本地图片链接转换为图床地址 效果大致为: ![[xxx.png]] --> ![[xxx.png]](https://xxxx.xxx.os/xxx.png)
  • 手动对比冲突选择正确版本
  • 上传 PDF 等大文件到对象存储

原则上数据库中只保存文本文件,便于灵活修改;大文件在数据库中只存储 hash 值,通过对比 hash 来确定同名文件是否发生变动。

功能特性

  • 本地图片自动上传图床:在编辑笔记时,自动将本地图片上传到图床,并更新图片链接。
  • 冲突解决:当笔记在多个设备上编辑时,支持手动对比冲突,选择正确的版本。
  • 大文件上传:支持将 PDF 等大文件上传到对象存储,避免占用数据库空间。

数据库支持

MongoDB CouchDB
PC 端同步
支持移动端 ×

对象存储支持

腾讯云 阿里云
是否脱离数据库 × ×
保存多种数据格式 ×
支持本地图片自动部署到图床 ×

使用的库

  • cos-js-sdk-v5
  • crypto-js
  • diff
  • mongodb
  • pouchdb
  • sweetalert2

如何安装

  1. 克隆此仓库到本地。
    git clone https://github.com/ketd/obsidian-sync-DB-OS.git
    
  2. 进入项目目录。
    cd obsidian-sync-DB-OS
    
  3. 安装依赖。
    npm install
    
  4. 根据需要配置 settings
  5. 运行插件。

使用方法

  1. 本地图片上传

    • 在 Obsidian 中粘贴图片时,插件会自动将图片上传到指定的对象存储,并更新图片链接。
  2. 冲突解决

    • 当检测到笔记在多个设备上有冲突时,会弹出对比窗口,用户可以手动选择正确的版本。
  3. 大文件上传

    • 支持将大文件(如 PDF)上传到对象存储,并在数据库中保存文件的 hash 值,通过 hash 值来检测文件变动。

配置

数据库

image

对象存储

image

贡献

欢迎提交 issue 或 pull request 来帮助我们改进这个项目。

许可

MIT

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Android nomedia
3 years ago by JakeisAwesome
When syncing Obsidian with Android you will see a lot of media associated with your vaults. This will add the .nomedia file to ever folder in your Vault.
Another Simple Todoist Sync
2 years ago by eudennis
Obsidian.md plugin to integrate with Todoist app.
Auto Archive
3 years ago by Shane Burke
Auto Archive plugin for Obsidian
Auto Filename
3 years ago by rcsaquino
Auto Filename is an Obsidian.md plugin that automatically renames files in Obsidian based on the first x characters of the file, saving you time and effort.
Better File Link
5 years ago by Marc Julian Schwarz
A plugin for the note taking app Obsidian to add better external file links to your notes.
Binary File Manager
4 years ago by qawatake
An Obsidian plugin to manage binary files
Cloud Storage
2 years ago by Jiajun Ma
Obsidian Cloud Storage is a powerful and user-friendly plugin designed to seamlessly integrate cloud storage capabilities into your Obsidian workflow. This plugin allows you to effortlessly upload your attachments to the cloud, freeing up local storage space and enabling easy sharing and access across all your devices.
Cloudinary Uploader
4 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Copy Metadata
3 years ago by wenlzhang
An Obsidian plugin to copy metadata to clipboard and insert it into file name.
CSV Lite
a year ago by Jay Bridge
Simple enough for csv, no more fancy function you need to learn and think!
Edit History
3 years ago by Antonio Tejada
Obsidian Edit History Plugin, automatically save all the edit history of a note, browse and restore previous versions
External File Card
2 years ago by James-Yu
A plugin for Obsidian showing a card displaying basic information of a file in pre-defined folders.
External Rename Handler
a year ago by mnaoumov
Obsidian Plugin that handles external renames made outside of the app
File chucker
3 years ago by Ken Lim
File Hider
4 years ago by Oliver Akins
A plugin for https://obsidian.md that allows hiding specific files and folders from the file explorer.
File Order
3 years ago by lukasbach
Obsidian plugin to reorder files with drag-and-drop by customizing a number-prefix in the filenames
File Preview
2 years ago by Huajin
Add file preview contents under file in file explorer.
Folder Focus Mode
4 years ago by grochowski
Focus file explorer on chosen folder and its files and subdirectories, while hiding all the other elements.
Git File Explorer
2 years ago by Mateus Molina
Graphic Organizer
a month ago by Nick Le Guillou - Superhuman Curiosity
Interactive tree view for visualizing and managing your vault's file hierarchy.
Guid Renamer
2 years ago by Taskscape LTD, Kacper Pabianiak
Renames the currently selected file by providing a unique file name based on GUID pattern
HTML Reader
4 years ago by Nuthrash
This is a plugin for Obsidian (https://obsidian.md). Can open document with .html and .htm file extensions.
Inbox Organiser
a year ago by Jamie Hurst
Obsidian plugin to capture any new notes into an inbox and periodically prompt to organise these into other folders within the vault.
Insert Multiple Attachments
a year ago by mnaoumov
Obsidian Plugin that allows to insert multiple attachments at a time
Link indexer
5 years ago by Yuliya Bagriy
Local Any Files
a year ago by ShermanTsang
A obsidian plugin used to extract and download files in your obsidian note.
Luhman
5 years ago by Dylan Elliott
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
Media Companion
a year ago by Nick de Bruin
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
New Filename
a year ago by Amin Sennour
Simple plugin to change the default name for a new note from "Untitled" to a UUID.
New Note Fixer
a year ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
Note archiver
3 years ago by thenomadlad
NSFW filter
2 years ago by catvatar
Obsidian Plugin adding a button to toggle visiblity of NSFW notes
Open File by Magic Date
4 years ago by simplgy
Paste image rename
4 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
Recently Added Files
a year ago by Lemon695
List files by last added, includes pictures, pdfs, etc.
Remote Fetch
8 months ago by Shaharyar
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Rename File to Selection
a year ago by Aava
Rename your file to the current text selection.
Reveal Active File Button
4 years ago by Clare Macrae
Obsidian plugin to add a button to the top of the Obsidian File Explorer, to reveal the active file.
S3agle
2 years ago by Turner Monroe (turnercore)
Screwdriver
4 years ago by vorotamoroz
Seafile
2 years ago by conql
Simple Archiver
a year ago by Mike Farr
An Obsidian plugin that enables you to quickly archive a single note or an entire folder of notes.
Simple Image Inserter
2 years ago by Joey Holtzman
Add images from the file system into Obsidian notes through a built-in file explorer
Structured Copy: Files & Folders
a year ago by SchmidA
Sync Google Calendar
3 years ago by Dexin Qi
Sync tasks from Obsidian with system calendar
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
Telegram Sync
3 years ago by Burtasov Volodymyr
Transfer messages and files from Telegram to Obsidian
Tencent COS for Imgur
a year ago by bobostudio
🔥 Obsidian 腾讯云 COS 图床插件
Trash Explorer
4 years ago by Per Mortensen
Restore and delete files from the Obsidian .trash folder
Unique attachments
5 years ago by Dmitry Savosh
Obsidian plugin. Renames attachments, making their names unique.
Update frontmatter modified date
3 years ago by Alan Grainger
Automatically update a frontmatter/YAML modified date field
Update Relative Links
4 years ago by val
Update time on edit
5 years ago by beaussan
Vault Transfer
2 years ago by ImaginaryProgramming
Transfers a note from one vault to another.
VaultSync
a year ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
VSCode Editor
3 years ago by Sun Xvming
Edit Code Files like VSCode in Obsidian.
WebDAV Explorer
2 months ago by 蓝星晓夜
WebDAV Explorer: Connect to WebDAV server, preview files directly in web view, and generate links through simple drag-and-drop.
Webdav File Explorer
3 years ago by red0orange