Notion Second Brain using DhiWise

Kajalmorker
DhiWise
Published in
5 min readAug 31, 2022

Introduction:

What is Second Brain and why is it so popular is the question that comes to mind, Then pose the question to yourself, How often have you struggled to recall something important and felt it slip through your grasp? Before the digital age, people took notes or stored them in their minds to be recalled when needed. Keep notes while reading a book, article, or document, How much time have you squandered looking for a document or file that you were certain you had saved? Every day, our brains are bombarded with an enormous amount of information. Now is the time to admit that we can’t “use our brain” to remember everything, and to delegate the task of remembering to technology. That is why the second brain has emerged.

The main parts of the second brain are:

  1. Remember

During the whole day whenever you work a lot or do some recurring activities. It is hard to remember daily tasks or activities or some other options are also there.

Take notes, remember in your head, and use digital notes or third-party apps as desired. It’s tough.

2. Connect

Connect all records or data it doesn’t matter structured or unstructured and then connect to the second brain app

3. Create

Once all data has been collected, it will be divided and used in the second brain to track daily activities.

Here is the second Brain mobile app’s step-by-step guide to dealing with problems and finding solutions.

The Solution: DhiWise with Notion:

Notion

Notion is a single space where you can think, write, and plan. Capture thoughts, manage projects, or even run an entire company — and do it exactly how you want.

DhiWise

The first question is, why DhiWise for the Second Brain? Is it conceivable?

DhiWise is a platform that helps you build mobile and web apps rapidly in Flutter and React respectively. DhiWise provides full customization support, including navigation, adding or changing actions and widgets, design support for Figma, Adobe XD, and Sketch, API integrations, and more.

Notion APIs:

Notion basically gives APIs for :

All API requests should be sent to https://api.notion.com. All API requests must be made over HTTPS. It supports RESTful APIs, with the majority of operations carried out via GET, POST, PATCH, and DELETE requests on page and database resources. The request and response bodies are JSON-encoded. The Notion also gives Javascript SDK. For the Second Brain Flutter app, I’m using Notion’s REST APIs.

Authentication for Notion’s APIs :

Requests use the HTTP Authorization header to both authenticate and authorize operations. Notion’s APIs required a bearer token. After successfully obtaining a token, all APIs should be set to run.

Below is a list of APIs provided by Notion:

  1. Databases
  2. Pages
  3. Blocks
  4. Comments
  5. Users
  6. Search

Let’s look at an example(API for fetching the page by PageID).

Let’s look at the Request and Response of APIs.

Notion’s API takes request and send a response in JSON form.

Check more about Notion’s API integration.

Let’s focus on how to integrate Notion’s API with DhiWise to create Second Brain.

Step: 1 Upload Figma File onto DhiWise platform

Below is a quick video of how to upload a Figma file onto DhiWise. The platform converts 12 screens in a matter of seconds.

Step: 2 Setup Authentication

I’m using email and password for authentication using Supabase. DhiWise provides support for Supabase integration and Firestore integration. Here I’m using Supabase for storing the user’s data. Learn more about Supabase.

First, integrate Supabase into DhiWise for registration, and then use DhiWise to retrieve data from Supabase. Let’s see how it goes.

Generated code for Authentication

Step: 3 API integration

I have already discussed how Notion’s API works and now let’s integrate its API with DhiWise for the Second Brain application.

Here are some points for the Notion APIs used in the Flutter app.

1. Add and retrieve tasks from Notion

2. Add and retrieve notes from Notion

3. Dashboard Support

All of these features necessitated the use of nested APIs. DhiWise provides two levels of support. I need multi(four) level support here. Hence, business logic enters the picture.

Step 4: Adding Business Logic

As previously stated, Business logic is required to integrate multi-level APIs. I’m revealing here how I did that with DhiWise's help.

First DhiWise integrates two-level APIs. Now I want to add 3rd API for further details because Notion doesn’t provide direct data instead of it gives Id and here I need to fetch data from the Id given by Notion.

Step: 5 Set navigations and open the drawer

Well, navigation is the major part of any app. Here I want navigation as well as an open drawer. DhiWise panel allows setting navigation and an open drawer.

Summary

DhiWise can help you do more work in less time. It means you don’t have to devote your time to a tedious task. I can save time and do more work by using DhiWise.

Here’s the link to the Git Repository for the complete application review:

Source code https://github.com/DhiWise/Second-Brain

--

--