What Type of Code Does Notion Use? Unlocking the Power of Note-taking Apps

James Ortiz

Notion uses a custom-built, proprietary codebase written in TypeScript and JavaScript. The code is designed to be highly performant and scalable, allowing Notion to handle complex data models and interactions smoothly. Notion’s code is also heavily influenced by React and other popular frontend frameworks.

As a long-time advocate for efficient note-taking and organization, I’ve had the privilege of exploring various tools that promise to revolutionize the way we work and learn.

Among these, Notion has emerged as a true powerhouse, offering an unprecedented level of flexibility and customization.

But what makes Notion tick?

As someone who’s passionate about digging deep into the technical aspects of these incredible apps, I’m excited to take you on a journey through the technology stack that powers Notion.

In this article, we’ll delve into the primary programming languages and frameworks used in Notion’s development, from React.js and TypeScript for its frontend, to Go (Golang) and PostgreSQL for its backend.

We’ll also explore how Notion handles real-time collaboration among users, leveraging Operational Transformation (OT) and WebSockets to ensure seamless interactions.

And, of course, we can’t ignore the role of Amazon Web Services (AWS) and serverless architecture in making Notion’s infrastructure scalable and robust.

As we dive deeper into the specifics of Notion’s tech stack, I’ll share practical examples and case studies that demonstrate how developers can build custom blocks, integrations, and security measures to enhance their own experiences.

Whether you’re a seasoned developer or just starting your journey with Notion, this article aims to provide valuable insights and actionable tips to help you unlock the full potential of these powerful note-taking apps.

Notion’s Technology Stack: Unlocking the Power of Note-taking Apps

Today, we’re diving into Notion’s technology stack – the combination of technologies that powers this game-changing note-taking app.

Frontend Technologies

Notion’s user interface (UI) is built using React.js components, which provide a robust and scalable foundation for our apps.

If you’re familiar with JavaScript, you might know that React is all about building reusable UI components.

By leveraging React, Notion’s frontend developers can create complex interfaces that are both fast and efficient.

But that’s not all – Notion also uses TypeScript to ensure type safety and scalability.

In case you’re new to the party, TypeScript is a superset of JavaScript that adds optional static typing and other features.

By using TypeScript, Notion’s devs can catch errors early on, making their code more reliable and maintainable in the long run.

Backend Technologies

When it comes to building Notion’s backend services, Go (Golang) is the language of choice.

Go is a statically typed language that excels at concurrency, making it perfect for handling multiple requests simultaneously.

With Go, Notion’s devs can write efficient and scalable code that handles a high volume of requests without breaking a sweat.

And what about storing all those notes and data?

That’s where PostgreSQL comes in – the powerful open-source relational database management system used by Notion to store its data.

Real-time Collaboration

Now, let’s talk real-time collaboration.

Operational Transformation (OT) is the magic that makes it possible for multiple users to collaborate on a single note or page without any lag or conflicts.

OT ensures that all changes are propagated in real-time, so you can work with your team seamlessly.

To facilitate this real-time communication, Notion uses WebSockets – a protocol that establishes a bidirectional communication channel between the client and server.

This allows for efficient and low-latency data transfer, making collaboration feel like magic.

Infrastructure and Hosting

Notion’s cloud infrastructure is built on top of Amazon Web Services (AWS), which provides scalability, reliability, and security out of the box.

By leveraging AWS, Notion can quickly scale its infrastructure to meet growing demands without worrying about hardware limitations.

And how does Notion handle this scalability?

By embracing a serverless architecture, that’s how!

Serverless computing allows Notion to focus on writing code rather than managing servers.

This approach enables the app to scale horizontally and vertically with ease, handling spikes in traffic or demand with minimal fuss.

There you have it – a glimpse into Notion’s technology stack.

From React and TypeScript to Go and PostgreSQL, each component plays a vital role in making this note-taking app so powerful and efficient.

Whether you’re a developer looking for inspiration or just a curious user wanting to know what makes Notion tick, I hope this post has given you a deeper appreciation for the tech behind the scenes.

Case Studies and Examples: Unpacking Notion’s Magic

As we’ve explored how Notion uses code to create its note-taking app, it’s time to dive deeper into the specific strategies they use to optimize performance, integrate with other tools, and keep user data secure.

Let’s get started!

Performance Optimization: The Secret Sauce Behind Notion’s Speed

When you’re dealing with a massive library of templates, databases, and pages, it’s crucial that your app can handle all that complexity without slowing down.

That’s where Notion’s performance optimization comes in.

Here are some strategies they use to ensure their app remains lightning-fast:

  • Lazy Loading: Only load the content you need when you need it. This approach reduces the initial page weight and minimizes unnecessary computations.
  • Code Splitting: Divide your code into smaller chunks, allowing you to load only what’s necessary for each specific page or feature. This technique also enables parallel loading of different components, further speeding up your app.
  • Caching Strategies: Notion uses a combination of local storage (e.g., browser cache) and server-side caching to reduce the number of requests made to their servers. By storing frequently accessed data locally, they can quickly retrieve it without relying on slower network connections.

Custom Blocks and Integrations: The Power of API-driven Development

Notion’s API offers a wide range of possibilities for developers to create custom blocks that integrate seamlessly with their app.

For instance, imagine building a task tracker block that integrates with your favorite project management tool.

Here’s how it works:

  • Custom Block Development: Using Notion’s API, you can create custom blocks that can be used within the app. These blocks can perform specific tasks, like displaying a to-do list or calculating complex formulas.
  • Example: Task Tracker Block Imagine building a task tracker block that integrates with Trello. This block could display your current tasks, allow you to add new ones, and even provide real-time updates from your board.

Third-Party Integrations: How Notion Connects the Dots

Notion’s integrations with popular services like Slack, Google Drive, and more make it an incredibly versatile tool for many users.

Here’s how these integrations work:

  • OAuth and APIs: When you connect a third-party service to Notion, they use OAuth (Open Authorization) protocols to securely authenticate your account. This allows them to access the necessary data without compromising your security.
  • Popular Integrations: Some examples of popular integrations include:
    • Slack: Connect your Notion workspace to your Slack channel and receive notifications when someone mentions you or updates a specific topic.
    • Google Drive: Store your files in Google Drive and link them directly to your Notion pages, making it easy to access and share your documents.

Security Measures: Protecting Your Data with Encryption and Access Controls

At the heart of any note-taking app is the need for robust security measures.

Here’s how Notion keeps your data safe:

  • Encryption: When you store sensitive information in Notion, they encrypt it using industry-standard algorithms to prevent unauthorized access.
  • Access Controls: Notion offers a range of access controls, including password protection, two-factor authentication, and permission-based sharing. This ensures that only authorized users can view or edit your content.

By combining these strategies, Notion has created an incredibly powerful note-taking app that’s both fast and secure.

Whether you’re looking to optimize performance, integrate with other tools, or keep your data safe, Notion’s got you covered!

Tutorials and Best Practices

Getting Started with Notion Development

Want to unlock the power of Note-taking apps like Notion?

You’re in the right place!

As a developer, you might be wondering what kind of code Notion uses or how to get started with building custom integrations.

In this section, we’ll dive into the world of Notion development and provide step-by-step instructions for setting up your environment.

Setting Up Your Notion Development Environment

Before you start coding, you’ll need a solid foundation.

Here’s what you should do:

  1. Install Node.js: Head over to the (https://nodejs.org/en/download/) and download the latest version.
  2. Get Familiar with TypeScript: Notion uses TypeScript as its primary language. If you’re new to TypeScript, check out the official (https://www.typescriptlang.org/docs/tutorial.html) for a comprehensive guide.
  3. Install Required Dependencies: Run npm install in your project directory to get all the necessary dependencies. You’ll need:
    • @notion/api: The official Notion API client library.
    • ts-node: For seamless TypeScript integration with Node.js.

Building Custom Integrations

Now that you have your environment set up, let’s build a simple Notion integration!

We’ll create a custom integration that pulls data from an external source.

This will give you a taste of what it takes to develop custom integrations for Note-taking apps like Notion.

Step 1: Set Up Your Integration

Create a new Node.js project and install the required dependencies:
npm init -y
npm install @notion/api ts-node

Step 2: Authenticate with Notion

Use the @notion/api library to authenticate with your Notion account.

You’ll need to provide your API token, which you can obtain by logging in to your Notion account and going to the (https://www.notion.com/integrations).

import { NotionClient } from ‘@notion/api’;

const client = new NotionClient({

// Use the authenticated client to fetch data or perform actions in your Notion workspace.


Step 3: Integrate with Your External Source

Now it’s time to integrate with an external source, such as a database or API.

For this example, let’s assume you’re fetching data from a fictional API.

import axios from ‘axios’;

const apiData = await axios.get(‘https://example.com/api/data’);

// Process the fetched data and use it to create or update notes in your Notion workspace.


Troubleshooting Common Issues

As you start building custom integrations, you might encounter some common challenges.

Here are a few tips to help you troubleshoot:

  • API Rate Limits: Make sure to handle rate limits correctly by caching or queuing requests.
  • CORS Issues: Use CORS-enabled servers or implement proxying techniques to overcome Cross-Origin Resource Sharing limitations.

By following these best practices, you’ll be well on your way to becoming a Notion development master!

Final Thoughts

As I wrap up this deep dive into Notion’s tech stack, I’m struck by the sheer scale of innovation that’s gone into building this note-taking powerhouse.

From React.js to Go, from TypeScript to PostgreSQL, every component has been carefully curated to create a seamless user experience.

For me, the real magic happens when I think about how Notion brings it all together – Operational Transformation and WebSockets handling real-time collaboration, AWS and serverless architecture ensuring scalability, and custom blocks and integrations opening up endless possibilities for developers.

As I explore what’s possible with Notion, I’m reminded of my own struggles to stay organized and focused.

It’s not just a tool, but a partner in productivity – and that’s what makes it so remarkable.

So if you’re ready to unlock the power of note-taking apps and take your workflow to the next level, I hope this journey has inspired you to get started with Notion development.

Whether you’re building custom integrations or optimizing performance, there’s no limit to what you can achieve.


What type of code does Notion use?

Is it based on a specific framework or library?

Notion uses a combination of JavaScript, HTML, and CSS to build its web-based application.

The core logic is built using Node.js and Express, with React for the frontend.

Does Notion use any proprietary code or custom libraries?

Are there any open-source components involved?

Notion’s backend is written in Node.js and uses a custom-built database system, which is not open-sourced.

However, the frontend is built using popular open-source libraries like React, Redux, and ImmutableJS.

What kind of data storage does Notion employ?

Is it relational or NoSQL?

Notion uses a graph database to store its data, which allows for efficient querying and linking between related notes and pages.

This architecture enables the powerful linking and organization features that are hallmark of Notion’s note-taking system.

James Ortiz

With a passion for efficiency and organization, James founded the website to help individuals and businesses streamline their operations and enhance their daily productivity.