NotionNext README

The project's README from github.com/notionnext-org/NotionNext. As one markdown file: README.md.

NotionNext Logo

NotionNext

用 Notion 搭建自己的独立站

继续在 Notion 写作,一键发布为博客、作品集、知识库、导航站或产品官网。

在线预览 · 开始搭建 · 主题全览 · 用户作品 · 文档站 · 讨论区

中文 | English


NotionNext 是什么?

NotionNext 是一个基于 Next.js + Notion API 的开源站点系统。你继续用 Notion 管理文章、分类、标签、菜单和页面,NotionNext 负责把这些内容发布成可访问、可搜索、可运营的独立网站。

它适合想长期沉淀内容的人:内容创作者、独立开发者、设计师、摄影师、课程作者、开源项目维护者,以及需要快速搭建产品官网或知识库的小团队。

你可以用它做什么?

目标 推荐入口 适合人群
搭个人博客 从这里开始 内容创作者、独立开发者、学生
做作品集或个人品牌站 按场景选主题 设计师、摄影师、自由职业者
做产品官网或 SaaS 落地页 Starter / Landing / Proxio 创业者、独立产品、小团队
做知识库或文档站 GitBook / Claude 开源项目、课程作者、团队文档
做导航站或资源聚合 Nav 主题 资源整理者、社群运营者

为什么选择 NotionNext?

20 分钟部署路线

  1. 打开 主题预览站 看最终效果。
  2. 复制 NotionNext 官方 Notion 模板。
  3. Fork 本仓库到自己的 GitHub 账号。
  4. 使用 Vercel 部署 NotionNext。
  5. 在环境变量中填写 Notion 页面 ID 等配置。
  6. 部署成功后,按场景选择主题并补齐域名、评论、统计、搜索等功能。

新手建议直接从文档站的 从这里开始 阅读。

主题与预览

场景 优先看
个人博客 simple、hexo、nobelium、typography
文档 / 知识库 gitbook、claude、thoughtlite
作品集 / 个人品牌 opc、proxio、starter、landing
产品官网 starter、landing、commerce
图片 / 摄影 photo、plog、magzine
导航站 nav

本地开发

推荐使用 Node 22 和 Yarn 1。Node 20 已无法安装当前依赖(@ai-sdk/google 要求 Node >=22),部署平台也需要同步设置为 Node 22。

# 1. 使用 Node 22
nvm use || nvm install

# 2. 安装 Yarn
npm i -g yarn

# 3. 安装依赖
yarn

# 4. 启动开发
yarn dev

常用命令:

命令 用途
yarn dev 启动本地开发
yarn build 构建生产版本
yarn export 静态导出
yarn docs:site:dev 本地预览文档站
yarn docs:site:build 构建文档站

文档入口

自 2026 年起,NotionNext 使用仓库内 Markdown 文档作为主要教程来源,并发布为独立文档站。

内容 链接
在线文档站 notionnext.tangly1024.com
新手入口 从这里开始
场景模板 按目标选择模板
配置索引 全站功能与配置索引
主题说明 26 个主题说明
用户作品 Showcase:已上线站点欢迎提交作品
文档源码 docs/
旧版手册 docs.tangly1024.com

参与社区

NotionNext 主仓库由 GitHub 组织 notionnext-org 维护。欢迎提交问题、补充文档、贡献主题、修复代码或参与讨论。

内容 链接
参与社区 community-participate.md
5.0 愿景与路线图 VISION_ROADMAP.md
贡献指南 CONTRIBUTING.zh-CN.md
项目治理 GOVERNANCE.zh-CN.md
维护者 MAINTAINERS.md
行为准则 CODE_OF_CONDUCT.md
讨论区 GitHub Discussions

如果你在仓库转让前已克隆旧地址,建议更新远程仓库:

git remote set-url origin https://github.com/notionnext-org/NotionNext.git
git remote -v

技术栈

相关项目

致谢

感谢 Craig Hart 发起的 Nobelium 项目。

Craig Hart
Craig Hart

感谢每一位参与代码、主题、文档、Issue、Review 与发布维护的贡献者。

Contributors

使用声明

本项目为免费、公开资源,仅限个人学习和合法站点建设使用。禁止利用本项目发布非法内容或进行违法活动。

License

The MIT License.

Project Stars

GitHub stars GitHub forks

Live star-history charts are temporarily unavailable because GitHub now restricts historical stargazer data to repository owners and collaborators.

NotionNext (notionnext-org/NotionNext)

website
Searching Database…

What is this?NotionNext is an open-source site system built on Next.js and the Notion API: you keep managing posts, categories, tags and menus in Notion, and it publishes that workspace as a fast, searchable, standalone website.
I can publish Notion pages publicly anyway — what does NotionNext add?A public Notion page is just a document. NotionNext turns the workspace into a real standalone site with your own domain, SEO, sitemap, RSS, comments, analytics, search and email subscription — built for long-term operation.
How do I get my first site online?Copy the official NotionNext Notion template, fork this repo to your GitHub account, deploy it on Vercel, and put your Notion page ID into the environment variables — the README bills this as a 20-minute route.
What do I need installed to run or customize it locally?Node 22 and Yarn 1. Node 20 can no longer install the dependencies because one package requires Node >=22, and your deploy platform needs to be set to Node 22 as well. Then yarn dev to develop, yarn build for production, or yarn export for a static build.
If I build my site this way, am I locked into Notion?No. Notion handles content while the site handles display and distribution, and the README notes you can later migrate to Markdown or another system.
I'm not a blogger — what else can I build with it?The 26 built-in themes cover blogs, documentation and knowledge bases, portfolios, product sites, photo galleries and navigation or link-directory sites — each scenario has recommended themes in the README.
Which themes should I look at first?For blogs start with simple, hexo, nobelium or typography; for docs and knowledge bases use gitbook, claude or thoughtlite. opc, proxio, starter and landing fit portfolios and product sites, photo and plog target photography, and nav builds link-directory sites. You can preview and switch themes online at preview.tangly1024.com.
Why keep writing in Notion instead of Markdown files?So you never switch writing tools: posts, categories, tags, covers and menus stay in Notion while NotionNext handles publishing. It grew out of Craig Hart's Nobelium project, which the README credits as its origin.
Can it run anywhere besides Vercel?Yes. Zeabur is listed alongside Vercel as a deployment target, the repo builds a Docker image in CI, and yarn export produces a fully static build you can host on any static server.
What third-party services does it integrate with?The README names five comment systems: Twikoo, Giscus, Gitalk, Cusdis and Utterances. The dependencies also include Algolia for site search, Clerk for user accounts, Supabase and Vercel Analytics.
Size
266.9 MB
Stars
11.9K
Age
5y
Commits · 90 Days