Skip to content

makenotion/notion-sdk-typescript-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notion-sdk-typescript-starter

This is a template repository for getting started with the Notion SDK and TypeScript.

To use this template, click the big green "Use this template" button in the upper-right corner. After some questions, GitHub will create a new clone under your account, and then you can get started customizing.

Features

  • TypeScript for type checking.
  • Prettier for code formatting.
  • A minimal GitHub Actions workflow that typechecks your code.
  • Dotenv for configuring your Notion API token.
  • Dependabot for ensuring your (and this template's!) dependencies are up to date.
  • Our lovely Notion SDK!

What to do after duplicating

  1. Make sure you've created a Notion integration and have a secret Notion token.
  2. Add your Notion token to a .env file at the root of this repository: echo "NOTION_TOKEN=[your token here]" > .env.
  3. Run npm install.
  4. Edit the page_id in index.ts from FIXME to be any page currently shared with your integration.
  5. Run npm start to run the script.

Now you can head over to our developer documentation for more information on using the Notion API!

About

Template repository to get started with the Notion SDK in TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published