In developmentProductivityv0.1.0 · updated Jul 8, 2026
FW

Open Source Notion-Style Workspace Template

Open source Notion-style pages, databases, publishing, and embeds.

An open source Notion-style workspace template for nested pages, block-style documents, lightweight databases, publishing, embeds, self-hosting, and AI customization.

Runnable Agent-ready Install-ready Deploy-ready
foundationbase.app/demo/foundation-workspaceOpen full demo →

This is the real app, not a mockup. Whatever you enter in the demo stays in your browser and belongs to nobody.

What you get

One zip. Everything to own it.

Foundation Workspace is the first pass at an open source Notion-style workspace for Foundation Base: a clean, local-first app shell with nested pages, a modern block-style editor surface, simple database tables and lists, publishing controls, read-only embeds, Markdown/CSV/JSON portability, and self-hosting docs. It is built for searches around open source Notion alternatives, self-hosted workspaces, Notion-style app templates, and AI-customizable productivity software while staying honest about scope: the current package is a stable local-first template, and the docs show how to grow it into a PostgreSQL, Prisma, Auth.js, Tiptap, and Yjs-backed workspace after the non-realtime version is stable.

  • Open source Notion-style workspace shell with nested pages and clear app ownership
  • Nested pages with rename, parent changes, ordering, archive, and restore
  • Autosaved block-style editor with slash-add blocks and move/delete handles
  • Lightweight database table/list views with properties, rows, sort, and filter
  • Public-page publishing and read-only iframe embed preview
  • Markdown, CSV, and workspace JSON portability
  • Self-hosting docs for Docker Compose, Vercel/Netlify-style frontend hosting, and future PostgreSQL
  • AI-coding-agent docs for expanding into Prisma, Auth.js, Tiptap, and Yjs
foundation-workspace.zipApache-2.0
foundation-workspace/├── app/the running Next.js app├── agent/START_HERE, PROJECT_MAP, RULES, RECIPES, TESTS, DEPLOY├── CLAUDE.mdread automatically by Claude Code├── AGENTS.mdread automatically by Codex├── .cursor/rules/loaded automatically by Cursor└── README.mdrun it, then make it yours

Inside the app

What the running app actually looks like
Foundation Workspace: Workspace shell
Workspace shellSidebar page tree, editor canvas, and publish/embed inspector.

Customize with AI

Your agent already knows this codebase.

Ships with AGENTS.md, CLAUDE.md, Cursor rules, README, customization docs, deploy notes, security notes, and route stubs for the requested workspace/public/embed paths.

Claude CodeCursorCodex

Prompts written against this app

Wire this workspace to PostgreSQL and Prisma while preserving export/import.
Replace the local block editor with Tiptap and keep the existing block types.
Add Auth.js magic-link login and create a personal workspace on signup.
Add Yjs and Hocuspocus realtime collaboration after the current editor is stable.

Run it

10 min to your own copy.

  1. 01Create your editable Foundation Workspace source copy and unzip it.
  2. 02Run npm install.
  3. 03Run npm run dev and open http://localhost:3000.
  4. 04Read README.md, CUSTOMIZE.md, DEPLOY.md, SECURITY.md, and AGENTS.md before customizing.
  5. 05Add PostgreSQL, Auth.js, Tiptap, and Yjs after the local-first workspace flow is stable.
Full walkthrough, including deploy and install →
Where your data lives

Current demo data stays in this browser by default.

The model names are aligned with the future Prisma schema.

Public and embed previews render only published page content.

Honest limitation

This is a standard-ready advanced app template, not a full Notion clone.

PostgreSQL, Auth.js, Tiptap, and Yjs are documented as expansion steps rather than required for the static catalog demo.

Verification receiptchecked Aug 2, 2026 at c11c184 · v0.1.0
Demo renderscaptured 2026-07-26, 66 KBpassed
Package installs and buildsinstalled, typechecked and built in 67s on node v24.13.0passed
Source package complete44 files, 102 KBpassed
Agent instructions included5 handoff files presentpassed
No network calls in app sourcestatic scan clean: no network calls, eval, or secrets in app sourcepassed
License matches the packageApache-2.0, matching the file in the packagepassed

Questions people ask

Is Foundation Workspace a full Notion clone?

No. Foundation Workspace is a first working open source workspace template with nested pages, a block-style editor surface, lightweight databases, publishing, embeds, and portability. It is designed to become a larger Notion alternative over time without claiming every Notion feature on day one.

Can I self-host Foundation Workspace?

Yes. The package includes local setup docs, Docker Compose scaffolding, deploy notes, and a self-hosting path. The current demo is local-first and static-catalog friendly, with PostgreSQL, Prisma, Auth.js, and realtime collaboration documented as expansion steps.

Can an AI coding agent customize it?

Yes. The template ships with AGENTS.md, CLAUDE.md, Cursor rules, README, customization docs, deployment notes, security notes, and clear model boundaries so Codex, Claude Code, Cursor, or another coding agent can safely modify it.

Does it support pages, databases, publishing, and embeds?

Yes. The first version includes nested pages, an autosaved block-style editor, table and list database views, public read-only pages, iframe embed previews, Markdown export, CSV export, JSON backups, Markdown import, and CSV import.

If this isn’t quite right

All Productivity foundations →

Take Foundation Workspace and make it yours.

Free, Apache-2.0, 10 min to running. The demo above is exactly what lands in your folder.