MCPcopy Index your code
hub / github.com/churichard/notabase

github.com/churichard/notabase @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
392 symbols 1,504 edges 238 files 13 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Notabase

Twitter

Notabase is a personal knowledge base for networked thinking.

It lets you connect knowledge and form ideas by linking notes together. These links allow you to traverse your notes like webpages and find connections that you never would have thought of otherwise. Think of it as a personal Wikipedia for your brain that you can edit and browse as you like. As you add more notes, it gets more powerful!

It is inspired by note-taking apps such as Notion, Obsidian, Typora, and Roam Research.

demo

Features

  • 📖 Browse your notes with page stacking (similar to Andy's working notes)
  • 📝 WYSIWYG editor with markdown support makes it easy to read and edit notes
  • 🔗 Linked/unlinked references let you see other notes that reference a specific note
  • ️⃣ Organize your notes with links, tags, and nested notes

  • 📱 Can be installed as a Progressive Web App (PWA) for faster loading and offline viewing
  • ☁ Your notes are synced to the cloud and can be accessed on any device
  • 🔀 Use the graph view to analyze your knowledge graph
  • 🔍 Full-text search lets you easily find relevant notes
  • 🧱 Use block references to embed a block of text from another note, which auto-updates when the original block changes
  • 🤝 Import or export your notes at any time
  • 🙌 Open source with community involvement and transparent development
  • 🚀 And much more!

Status

Notabase is in beta and is under active development.

Documentation & Support

If you need help getting started with Notabase, check out our Help Center.

Sponsors

Special thanks to the following people for their support:

Sponsors make it possible for me to continue developing Notabase. Your support is greatly appreciated!

Become a sponsor

Self-hosting / running locally

Notabase is currently focused on the hosted experience, but it is possible for you to self-host it as well. Here are some steps that you need to take to get it running locally:

  1. Notabase uses Supabase as the backend (for authentication, database, and storage), so you'll have to make a Supabase account. If you prefer to self-host Supabase, you can follow the instructions in their docs.
  2. Copy .env.local.example into .env.local and fill in the NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_KEY, and SUPABASE_SERVICE_KEY variables from your Supabase dashboard. The other environment variables are optional.
  3. Create your database tables. Apply full schema and storage setup.
  4. In your local environment, install the packages using npm install, and then build and run the project using npm run build and npm start -- --port 3000. You will be able to see Notabase running on http://localhost:3000. Alternatively, for a development environment, run npm run dev.

[!IMPORTANT] The hosted and self-hosted versions of Notabase share the same codebase, so by default, there is a cap on the number of notes you can create. You can circumvent this by inserting a new row in the subscriptions table for your user id, with pro in the plan_id column and active in the subscription_status column.

Testing

Unit tests

You can run unit tests by running npm run test.

Cypress tests

First-time setup:

  1. Install Docker and Docker Compose.
  2. Run npx supabase init to initialize your Supabase project.
  3. Copy .env.test.example into .env.test and fill in the environment variables.

To run tests:

  1. Start Docker.
  2. Run npx supabase start.
  3. Run NODE_ENV=test npm run dev.
  4. Run npm run cy:open to run Cypress tests in a GUI, or npm run cy:run to run them in the CLI.

License

Notabase is licensed under the AGPL license, and is free for personal use.

If you'd like to use Notabase for commercial use, please contact me for a commercial license.

Extension points exported contracts — how you extend this code

Window (Interface)
(no doc)
types/window.d.ts
Database (Interface)
(no doc)
types/supabase.ts
CustomTypes (Interface)
(no doc)
types/slate.ts
Props (Interface)
(no doc)
components/sidebar/SidebarNoteLink.tsx
FormatButtonProps (Interface)
(no doc)
components/editor/toolbar/FormatButton.tsx
MdastNode (Interface)
(no doc)
editor/serialization/types.d.ts
Chainable (Interface)
(no doc)
cypress/support/commands.d.ts
SidebarItemProps (Interface)
(no doc)
components/sidebar/SidebarItem.tsx

Core symbols most depended-on inside this repo

getEditor
called by 80
cypress/support/commands.d.ts
createNodeId
called by 37
editor/plugins/withNodeId.ts
targetPage
called by 19
cypress/support/commands.d.ts
useAuth
called by 14
utils/useAuth.tsx
isListType
called by 14
editor/formatting.ts
isElementActive
called by 13
editor/formatting.ts
getSidebarNoteLink
called by 13
cypress/support/commands.d.ts
visitNote
called by 13
cypress/support/commands.d.ts

Shape

Function 338
Method 21
Enum 18
Interface 9
Class 6

Languages

TypeScript100%

Modules by API surface

editor/formatting.ts19 symbols
cypress/support/commands.d.ts14 symbols
components/ForceGraph.tsx10 symbols
utils/useAuth.tsx6 symbols
lib/activeEditorsStore.ts6 symbols
editor/backlinks/useBacklinks.ts6 symbols
constants/pricing.ts6 symbols
components/ErrorBoundary.tsx6 symbols
editor/serialization/normalize.ts5 symbols
editor/plugins/withNormalization.ts5 symbols
editor/plugins/withNodeId.ts5 symbols
editor/plugins/withAutoMarkdown/handleInlineShortcuts.ts5 symbols

Datastores touched

postgresDatabase · 1 repos

For agents

$ claude mcp add notabase \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact