churichard / notabase

A second brain for your knowledge, thoughts, and ideas.
https://notabase.io
GNU Affero General Public License v3.0
796 stars 70 forks source link
knowledge-base knowledge-graph note-taking second-brain zettelkasten

Notabase

Twitter Discord

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

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.