yannaner17 downloadsTurn your vault into a browsable website hosted on Vercel with one-command publish.
Transform your Obsidian vault into a beautiful, published website with one command
Features • Installation • Quick Start • Documentation • Contributing
Vercel Publish is an Obsidian plugin that seamlessly transforms your personal knowledge base into a professional website. With a single command, your notes are synced, optimized, and deployed to Vercel—perfect for digital gardens, documentation sites, or public knowledge bases.
| Feature | Description |
|---|---|
| One-Command Publish | Sync notes and push to GitHub with a single command |
| Setup Wizard | Guided step-by-step setup for non-technical users |
| Wikilink Conversion | Automatically converts [[Note]] links to proper markdown |
| Folder Navigation | Browse notes with a collapsible folder tree sidebar |
| Dark Mode | Beautiful dark/light theme toggle with persistence |
| Search | Real-time search across all published notes |
| Template Updates | Update your site template while preserving content |
.obsidian), private, journal folders excluded by defaultpublish.config.json<vault>/.obsidian/plugins/vercel-publish/ (or your custom configuration folder)Open the command palette (Cmd/Ctrl+P) and run:
Vercel Publish: Setup Wizard
The wizard will:
/site directory with a Next.js templatepublish.config.json for customizationEdit publish.config.json in your vault root:
{
"include": [], // Empty = publish all notes (recommended)
"exclude": [".obsidian", "site", "private", "journal"],
"siteDir": "site",
"contentDir": "site/content",
"assetsDir": "site/public/assets",
"baseRoute": "/notes",
"slugStyle": "kebab"
}
Tip: Leave
includeempty to publish all notes. Notes outside thesitefolder will automatically be synced.
Run the publish command:
Vercel Publish: Publish (Sync + Push)
This command:
/site/contentsiteYour site will be live in minutes!
| Command | Description | Shortcut |
|---|---|---|
Setup Wizard |
Guided setup for first-time users | - |
Initialize Website |
Create /site directory with Next.js template |
- |
Sync Notes |
Copy notes to /site/content with link conversion |
- |
Publish (Sync + Push) |
Sync notes and push to GitHub | - |
Update Template |
Update site template while preserving content | - |
Show Current Config |
Display current publish configuration | - |
publish.config.json{
include: string[]; // Folders to include (empty = all)
exclude: string[]; // Folders to exclude (default: config folder, site, private)
siteDir: string; // Site directory (default: "site")
contentDir: string; // Content directory (default: "site/content")
assetsDir: string; // Assets directory (default: "site/public/assets")
baseRoute: string; // Base URL path (default: "/notes")
slugStyle: 'kebab' | 'original'; // URL slug style
}
graph LR
A[Your Vault] -->|Sync| B[site/content]
B -->|Git Push| C[GitHub]
C -->|Webhook| D[Vercel]
D -->|Deploy| E[Live Website]
site/content/ and converts wikilinksRun the update command to get the latest features:
Vercel Publish: Update Template
This preserves your content and customizations while updating:
Test your site locally before publishing:
cd <vault>/site
npm install
npm run dev
Open http://localhost:3000 to preview.
Vercel Publish: Show Current Configinclude is empty [] or contains your note foldersexclude listInitialize git in your vault:
cd <vault>
git init
git add -A
git commit -m "Initial commit"
Add GitHub remote:
git remote add origin https://github.com/username/repo.git
site in Vercel project settingssite/package.json exists and has correct dependenciesIf you see errors like "missing param" in dev mode:
output: 'export'npm run dev, not deployed siteWe love contributions! Here's how you can help:
Open an issue with:
We're always looking for ways to improve! Open an issue with:
git checkout -b feature/amazing-featurenpm run buildgit commit -m 'Add amazing feature'git push origin feature/amazing-feature# Clone the repo
git clone https://github.com/Yannaner/Vercel-Publish.git
cd Vercel-Publish
# Install dependencies
npm install
# Build the plugin
npm run build
# Development mode (auto-rebuild)
npm run dev
This project is licensed under the MIT License - see the LICENSE file for details.
Made by Ian