sync-db-os

by ketd
5
4
3
2
1
Score: 50/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
326
downloads
0
forks
764
days
761
days
806
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
2
total issues
0
open issues
2
closed issues
0
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.
Add Attachment
7 days ago by olegg90
Obsidian plugin for adding multi attachments
Alternative Explorer
a month ago by sk-obsidian
Alternative Explorer is an Apple Notes–style sidebar for browsing folders and notes in Obsidian. Switch between an expandable folder tree and a notes list — a compact alternative to the built-in File Explorer.
Another Simple Todoist Sync
2 years ago by eudennis
Obsidian.md plugin to integrate with Todoist app.
Attachment Organizer
2 months ago by kiteruunner
Automatically organize attachments into zone-based folders with conflict detection and batch operations
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.
Auto Move File
13 days ago by sx kan
Automatically move files based on frontmatter properties in Obsidian
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
5 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
5 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Copy Contents
2 months ago by Richard Jones
Copy or export file and folder contents - perfect for LLMs
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!
Custom Attachment Location
5 years ago by RainCat1998
Customize attachment location with variables($filename, $data, etc) like typora.
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
Enhance Copy Note
2 months ago by kzhovn
Plugin which enhances the copy command for Obsidian.
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
2 years ago by mnaoumov
Obsidian Plugin that handles external renames made outside of the app
File chucker
4 years ago by Ken Lim
File Explorer Reload
4 months ago by mnaoumov
Obsidian Plugin that reloads the file explorer files list
File Explorer++
4 months ago by kelszo
A plugin for https://obsidian.md, which enables the ability to hide and pin specific files and folders in the file explorer by applying custom filters.
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
3 years ago by Mateus Molina
Graphic Organizer
6 months ago by Nick Le Guillou - Superhuman Curiosity
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
2 years 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
2 years ago by mnaoumov
Obsidian Plugin that allows to insert multiple attachments at a time
Link indexer
6 years ago by Yuliya Bagriy
Local Any Files
2 years ago by ShermanTsang
A obsidian plugin used to extract and download files in your obsidian note.
Local Backup
2 months ago by velviagris
Automatically creates a local backup of the vault.
Luhman
5 years ago by Dylan Elliott
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
MD Butler
a month ago by Peter Petschownik
Automatically manages YAML frontmatter fields for all notes. A reliable alternative to Templater formulas for consistent metadata.
Media Companion
2 years ago by Nick de Bruin
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
New Filename
2 years ago by Amin Sennour
Simple plugin to change the default name for a new note from "Untitled" to a UUID.
New Note Fixer
2 years 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
Note Types
a month ago by jsmorabito
Notebook Navigator
2 months ago by Johan Sanneblad
A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.
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
Recent Files
6 years ago by Tony Grosinger
Display a list of most recently opened files
Recently Added Files
2 years ago by Lemon695
List files by last added, includes pictures, pdfs, etc.
Remote Fetch
a year 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
5 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
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
3 years ago by Joey Holtzman
Add images from the file system into Obsidian notes through a built-in file explorer
Store
2 months ago by shimeoki
Manage your notes within a single folder.
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
2 years 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
3 years ago by ImaginaryProgramming
Transfers a note from one vault to another.
VaultSync
2 years 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
6 months ago by 蓝星晓夜
WebDAV Server Explorer.
Webdav File Explorer
3 years ago by red0orange