Study notes, published beautifully. Notestack is a theme for study-notes sites, built on Fumadocs. One npm package, @yx-elite/notestack, gives every notes site the same layout, styles, components and search. The sites read the same way, and a fix made once reaches all of them.
Docs · How it works · Layout · Develop · New notes site · Roadmap · Contributing · License
Four parts, each with one job:
- Package →
packages/notestack/: the theme CSS, MDX components, layouts, search and config helpers. Published to npm. - Docs site →
playground/: the theme's own docs, with setup guides and a showcase of every element. Live at notestack.yxelite.dev, and used to test the package. - Starter →
starter/: the small shell thatnpm create notestackcopies into a new site. Every file in it is a few lines that call the package. - Create command →
packages/create-notestack/:npm create notestack@latest my-notescopies the starter into a new folder and installs it. Published to npm.
All the logic lives in the package, so a notes site picks up new styles and fixes with a normal dependency update. The starter is copied only once, when a site is created.
notestack/
├── README.md ← you are here
├── LICENSE
├── AGENTS.md ← working rules for this repo
├── CLAUDE.md
├── CONTRIBUTING.md
├── .github/workflows/ci.yml ← tests, type check and build on every push to main and every pull request
├── package.json ← npm workspaces root (private)
├── playground/ ← docs site and test site (English + Chinese)
├── packages/notestack/ ← the npm package: theme, layouts, components, routes
├── packages/create-notestack/ ← the `npm create notestack` command
└── starter/ ← template for new notes sites (one language)
Needs Node.js 22 or newer. Run everything from the repo root, never inside a sub-folder:
npm install # installs every workspace into one node_modules/
npm run dev -w @yx-elite/notestack # recompiles the package on every save (keep it running)
npm run dev # playground at http://localhost:3000
npm run dev:starter # starter at http://localhost:3001
npm run build # package, then static exports of the playground and the starter
npm run typecheck # package, then type-checks the playground and the starter
npm test # unit tests of the package and of create-notestackOne command creates a site and installs it:
npm create notestack@latest my-notes
cd my-notes
npm run devThen edit site.config.ts and write notes in content/docs/. Each site is a static export that any static host can serve (Cloudflare, GitHub Pages, Netlify, Vercel, S3); the docs site has a guide for each.
- Scaffold → workspace and playground. ✅
- Design → the look, layout and landing page, prototyped in the playground. ✅ (mostly)
- Package → move the prototype code into
@yx-elite/notestack. ✅ - Languages → one language per site, or several with a language switch. ✅
- Starter and
npm create notestack→ a new site in one command. Starter ✅, command ✅. - CI and first release → checks on every push ✅,
0.1.0on npm ✅, the docs site live at notestack.yxelite.dev ✅. - First real site → the first notes site built on the published package.
Later: more note components. Publishing an Obsidian vault as it is was tried and dropped; notes are Markdown files that Obsidian can still open.
Issues and pull requests are welcome: see CONTRIBUTING.md. If Notestack is useful to you, a star on GitHub helps other people find it.
MIT License. Built on Fumadocs (MIT) by Fuma Nama; this is an unofficial theme, not part of the Fumadocs project.