Want to deploy your Second Brain on the internet so it lives there forever? Follow the instructions below. This guide assumes you already have an Obsidian vault on your computer.

Prerequisites

  1. Node.js v22 or higher and npm v10.9.2 or higher
  2. Quartz project
  3. GitHub account
  4. Cloudflare account
  5. And of course, a Second Brain - in a form of Obsidian vault

Initialize a Quartz project

Open your terminal and run the following commands line by line to set up a new Quartz project:

git clone https://github.com/jackyzha0/quartz.git my-second-brain
cd my-second-brain/quartz
npm i
npx quartz create

This will create a folder called my-second-brain with Quartz set up inside.

Copy your ‘Second Brain’ into your Quartz project

Copy your Obsidian vault into your Quartz project’s content directory:

cp -R path-to-your-obsidian-vault/ my-second-brain/content/

Alternatively, you can copy the files manually using your file manager.

Once you have copied your Second Brain into your Quartz project, you can see what it looks like locally:

npx quartz build --serve

This will start a local web server to run your Quartz project on your computer. Using a web browser of your choice, visit localhost:8080 to view it.

Publish my-second-brain to a GitHub repository

  1. Create a GitHub repository named my-second-brain
  2. Push your local project to GitHub:
git remote add origin https://github.com/<github-acc>/my-second-brain.git
git branch -M main
git push -u origin main

Deploy your ‘Second Brain’ Online

To make your Second Brain accessible online, we’ll use Cloudflare:

  1. Log in to the Cloudflare dashboard
  2. On the homepage, navigate to Compute (Workers) > Workers & Pages > Create application > Pages > Connect to Git.
  3. Select the GitHub repository that you created and, in the Set up builds and deployments section, provide the following information:
Configuration optionValue
Production Branchv4
Framework PresetNone
Build commandnpx quartz build
Build output directorypublic
Click Save and Deploy.
That’s it—your Second Brain is now live on the internet!