8.9 KiB
Obsidian to NotionNext
Thanks to the original author for developing such a useful plugin that can synchronize Obsidian to Notion. However, the original repository can only sync Name and Tags information. For those like me who use NotionNext to set up their website, this presents some limitations. Every time I import, I need to make a lot of modifications.
Thus, based on the original author's work, I've added a feature to match the NotionNext template. This way, you can edit directly in Obsidian and publish with a single click after organizing.
How to Use
Precautions
For now, this plugin is exclusively for NotionNext. If you're not using this template, you'll keep receiving error 400.
For those without a NotionNext requirement, please use the original Obsidian-to-notion.
Pre-Installation Steps
Before installing the plugin, you must have set up the following:
- Your NotionNext database.
- According to the original author's readme.md, set up the Notion API, and it should already be associated with your NotionNext repository.
- NotionNext Database ID
- Your NotionNext database should have the following contents:
- type
- title
- slug
- category
- tags
- date
- status
- summary
- password
- icon
If you've directly copied the NotionNext template, these contents should already exist. I've made changes to this plugin based on the original author's work. All you need to ensure is that your database has the above content, and every letter is in lowercase!!!
⚠️⚠️⚠️: All headers are in lowercase!!! The order doesn't matter!
Plugin Installation
- Close Obsidian.
- Download the plugin file from Release and unzip it into your Obsidian plugin directory.
- Re-open Obsidian, go to settings, and enable the plugin.
- In the settings, find Obsidian to NotionNext, and enter your NotionNext Database ID and API token.
How to Use
Using the Plugin
In the repository, I have uploaded a template which you can directly copy into your template folder. After that, use Obsidian's template feature to create a new note with one click.
If you don't want to use the template, you can also directly create a new file in Obsidian and then copy the content below. Then save it.
---
type: Post # Post or Page, the default is Post
slug: test # slug for url, the default is
stats: Draft # Draft, Invisible, Published
category: test
summary: this is a summary for test post
icon: fa-solid fa-camera # you can ignore this
password: "1234" # if you donot want to set password, you can delete this line
tags:
- test # tags for post
- web # add more tags if you want
---
Contents Below
Usage of the template is as follows:

Original README.md
Many Thanks for the original author's work. I've only made some changes to the original author's work. If you find this plugin useful, please give the original author a star.
Obsidian to Notion
Share of obsidian to Notion 中文文档
Sharing files from Obsidian to Notion with a single click, and Obsidian will automatically add the Notion share link
You are welcome to offer it a star if it can benefit you.
TODO
TODO Board
- support for custom page banner
- update the exsit page
- support for mult language
- support for auto copy the share link to clipboard
- support for mobile
- support tags thank for @jannikbuscha
- transfer the bi-link format like into the format that Notion supports.
How to use
Install the plugin
Marketplace download
Open obsidian setting -> Add plugin -> Search -> notion
BRAT
Enter BRAT into the plugin market center to find it.
Add EasyChris/obsidian-to-notion to the list of BRAT plugins that have been installed.
Return to the plugin center and turn it on.
Manual installation
cd YOUR_OBSIDIAN_FOLDER/.obsidian/plugins/
git clone https://github.com/EasyChris/obsidian-to-notion.git
Apply Notion API
Official reference documentation: https://developers.notion.com/docs
Step 1: Create integration.
Go to https://www.notion.com/my-integrations
Once created, copy secrets toekn

Note:
database first custom name must be "Name", otherwise sync to notion will be failed
Step 2: Share a database with your integration
Create a new page (with public permissions)
Create a new database in the page -> you need full page database

Add integration to your new database
Step 3: Copy the database ID
https://www.notion.so/myworkspace/a8aec43384f447ed84390e8e42c2e089?v=...
| --------- Database ID --------|
Open the plugin configuration
Fill the configuration with the NOTION_API_KEY and DATABASE_ID you got

Upload file content to notion
Click the upload notion button
A share link will be automatically generated after successful upload

Banner URL [option]
Banner url must be a image url like: https://i.imgur.com/xxx.jpg If you don't want to use banner, leave it blank
Convert Tags [option]
Transfer the Obsidian tags to the Notion table.
It requires the column with the name 'Tags'.

Add tags to your notion page
- open plugin convert tags
- add tags in the head
---
tags: [tag1,tag2]
---
this is test tags
---
tags:
- tag4
---
this is test tags
Thanks for @jannikbuscha contribution
Notion ID [option]
Notion ID is the your notion site ID that you want to share the file to. if you don't write it, notion will share to the default link like: https://www.notion.so/myworkspace/a8aec43384f447ed84390 that visit this page need to redirect to your site url if you write the Notion ID, it will share to the page link like: https://your_user_name.notion.site/myworkspace/a8aec43384f447ed84390. The visiter don't need to redirect url.
Sync image to Notion
To sync images to your oss or cos bucket, use the Obsidian Image Auto Upload Plugin.
Development
git clone https://github.com/EasyChris/obsidian-to-notion.git
yarn install
yarn dev
Release
node update-version.js
./release.sh
# Thanks
[Development Process | Obsidian Plugin Development Documentation](https://luhaifeng666.github.io/obsidian-plugin-docs-zh/zh/getting-started/development-workflow.html)
[GitHub - devbean/obsidian-wordpress: An obsidian plugin for publishing docs to WordPress.](https://github.com/devbean/obsidian-wordpress)
[GitHub - obsidianmd/obsidian-api](https://github.com/obsidianmd/obsidian-api)
[GitHub - Easychris/obsidian-to-notion: Obsidian Weread Plugin is an plugin to sync Weread(微信读书) hightlights and annotations into your Obsidian Vault.](https://github.dev/zhaohongxuan/obsidian-weread-plugin)
[GitHub - Quorafind/Obsidian-Memos: A quick capture plugin for Obsidian, all data from your notes.](https://github.com/Quorafind/Obsidian-Memos)
[https://github.com/jannikbuscha/obsidian-to-notion](https://github.com/jannikbuscha)
# License
GNU GPLv3







