Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

usagizmo/obsidian-nhost-sync

Repository files navigation

obsidian-nhost-sync

Sync obsidian notes with publish: true front-matter and their associated data to Nhost's DB / Storage.

[DEMO (ja)]: https://usagizmo.com/notes/obsidian-nhost-sync

nhost-sync-settings nhost-01 nhost-02

Install

ref. https://github.com/obsidianmd/obsidian-sample-plugin

Nhost DB settings

public/notes (create new)

Columns

  • path: (text, primary key, unique) File path from Vault root
  • created_at: (→ createdAt - timestamp with time zone, default: now())
  • updated_at: (→ updatedAt - timestamp with time zone, default: now())
  • basename: (text) File name without extension
  • extension: (text) extension
  • name: (text) filename
  • size: (integer) file size
  • content?: (text, nullable) For .md note, the content of the file
  • fileId?: (text, nullable) For attachment note, this is associated with files.id

Permissions

  • admin: insert, select, update, delete
  • public: select

storage/files (existing)

Permissions

  • admin: insert, select, update, delete
  • public: select