RepositoryAstroJPJapan
otoyo

otoyo/astro-notion-blog

🚀 Begin building your very own Notion Blog with Astro.

968stars
548forks
0issues
0views

English | 日本語

astro-notion-blog

GitHub stars GitHub license GitHub sponsors

astro-notion-blog enables you to create a blog using Notion and generates it statically, resulting in lightning-fast page views.

  • :rocket: Blazing fast page views
  • :pencil: With the ability to write blog content in Notion
  • :hammer_and_wrench: Customize your site's appearance to your liking
  • :white_check_mark: Take advantage of the official Notion APIs

:camera_flash: Screenshots

PC

Smartphone

:globe_with_meridians: Demo

https://astro-notion-blog.pages.dev

:motor_scooter: Quick Start

Requirements

Steps

  1. If you enjoy using this repo, don't forget to give it a star! :wink:
    • This is very motivating!
  2. Simply duplicate the blog template into your Notion workspace.
  3. Once you've duplicated the page (database), customize it to your liking by changing the icon, title, and description.
  1. For future reference, identify the DATABASE_ID by noting the portion of the duplicated page (database) URL that appears as https://notion.so/your-account/?v=xxxx.
  1. Create an integration and note "Internal Integration Token" as NOTION_API_SECRET
  2. To integrate your application with Notion, share a database with your integration.
  3. To make a copy of this repository in your own account, fork it by clicking on the 'Fork' button in the top-right corner of the repository page.
  4. Go to Cloudflare Pages and sign in
  5. Create new project with "Connect to Git" with your forked repository <your-account>/astro-notion-blog, then click "Begin setup"
  6. In "Build settings" section,
    1. Select "Astro" as "Framework preset"
    2. Open "Environment Variables (advanced)" and set NODE_VERSION, NOTION_API_SECRET and DATABASE_ID
  1. After clicking the 'Save and Deploy' button, your Notion Blog will be published once the deployment process is complete.

Please note that the astro-notion-blog requires manual deployment every time you publish a new post or make updates. You can deploy manually from the Cloudflare Pages dashboard or set up a scheduled deploy using CI tools such as GitHub Actions.

:hammer_and_pick: How to customize

Additional requirements

  • Node.js v22.23.5 or higher

Steps

  1. To set your secrets as environment variables, run the following commands in your terminal:
export NOTION_API_SECRET=<YOUR_NOTION_API_SECRET>
export DATABASE_ID=<YOUR_DATABASE_ID>
  1. Install dependencies and start local server
npm install
npm run dev
  1. Open http://localhost:4321 in your browser
  2. Press Ctrl+C in the terminal to stop

For more information

See wiki.

:lady_beetle: Bug reports & feature requests

To report an issue, please create a new Issue. You can use either English or Japanese to describe the issue. :wink:

:two_hearts: Sponsorship

If you like astro-notion-blog, sponsor me so that I can keep on developing software. Thank you.

GitHub sponsors


astro-notion-blog is based otoyo/notion-blog

Similar Projects

Discover other similar projects and AI models.

RepositoryAstro
arthelokyo/astrowind

⭕️ AstroWind: A free template using Astro v7 and Tailwind CSS v4. Astro starter theme.

6.1k
Sep 12, 2026
RepositoryAstro
satnaing/astro-paper

A minimal, accessible and SEO-friendly Astro blog theme.

5.2k
Nov 21, 2026
RepositoryAstro
chrismwilliams/astro-theme-cactus

A simple Astro theme. Use it to create your blog or website.

1.8k
Nov 1, 2026
RepositoryAstro
cworld1/astro-theme-pure

⭐ A simple, fast and powerful blog & document theme built by Astro

1.1k
Nov 4, 2026
RepositoryAstro
Ladvace/astro-bento-portfolio

Astro-bento-portfolio is a minimal bento-like (almost) single page portfolio website made in Astro

399
Nov 13, 2026
RepositoryAstro
nicdun/astro-tech-blog

Crisp, minimalistic personal blog theme built with Astro.js and TailwindCSS.

209
Nov 15, 2026
RepositoryTypeScript
withastro/astro

The web framework for content-driven websites.

64.1k
Nov 19, 2026
RepositoryJava
halo-dev/halo

Halo 是一款强大易用的开源建站工具,从个人博客、知识库,到企业官网、在线商城,Halo 都能助您轻松实现,一站式满足您的多样化建站需求。

40.3k
Nov 19, 2026
RepositoryTypeScript
emdash-cms/emdash

EmDash is a full-stack TypeScript CMS based on Astro; the spiritual successor to WordPress

14.5k
Nov 20, 2026