Skip to content

gdcho/notion-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Table of Contents
  1. Technology used
  2. Getting started
  3. File Contents of folder
  4. Learn More
  5. References

Logo

notion lib

notion lib is a chrome extension that allows you to save book details to your Notion database.
Explore the docs Β»

See Project Β· Report Bug Β· Request Feature

Technology used

JavaScript Badge React Badge Notion API Badge Chrome Badge Google Badge Post CSS Badge Postman Badge

How it works

  1. After installing the extension, go to Google Books and search for a book
  2. Click on the extension icon and click on the Detect Books button Logo
  3. The book details will be displayed Logo
  4. Click on the Save to Notion button Logo
  5. The book details will be saved to your Notion database Logo

Getting Started

  1. Clone the repository
   git clone https://github.com/gdcho/notion-lib
  1. Go to https://rjsgml.notion.site/d16508ea0f364b63b227094b0126eec7?v=707a50eea3dc48188eafda5594d2c881 and duplicate page into your workspace.
  2. Go to https://www.notion.com/my-integrations and create a new integration to get the NOTION_API_KEY
  3. Go to your notion database, then share --> publish and copy the link and update the NOTION_DATABASE_URL. The link should look like https://www.notion.so/your-workspace/your-database-id?view=your-view-id
  4. Go to Google Cloud Console and create a new project to get the GOOGLE_BOOKS_API_KEY to get more rate limits and add your api key in src/utils/fetchBookDetails.js
  5. Go to notion connections and add the integration to your database
  6. Go to src/App.js and update the NOTION_API_KEY and NOTION_DATABASE_ID with your Notion API key and database ID
  7. Run npm install
  8. Run npm run build
  9. Load the extension in Chrome by going to chrome://extensions/ and clicking on Load unpacked and selecting the build folder
  10. Go to Google Books https://books.google.com/ and search for a book
  11. Click on the extension icon and click on the Save to Notion button
  12. The book details will be saved to Notion

File Contents of folder

πŸ“¦
β”œβ”€β”€ README.md
β”œβ”€β”€ build
β”‚Β Β  β”œβ”€β”€ asset-manifest.json
β”‚Β Β  β”œβ”€β”€ background.js
β”‚Β Β  β”œβ”€β”€ book.png
β”‚Β Β  β”œβ”€β”€ contentScript.js
β”‚Β Β  β”œβ”€β”€ favicon.ico
β”‚Β Β  β”œβ”€β”€ index.html
β”‚Β Β  β”œβ”€β”€ loader.gif
β”‚Β Β  β”œβ”€β”€ manifest.json
β”‚Β Β  β”œβ”€β”€ robots.txt
β”‚Β Β  └── static
β”œβ”€β”€ node_modules
β”œβ”€β”€ package.json
β”œβ”€β”€ public
β”‚Β Β  β”œβ”€β”€ background.js
β”‚Β Β  β”œβ”€β”€ book.png
β”‚Β Β  β”œβ”€β”€ contentScript.js
β”‚Β Β  β”œβ”€β”€ favicon.ico
β”‚Β Β  β”œβ”€β”€ index.html
β”‚Β Β  β”œβ”€β”€ loader.gif
β”‚Β Β  β”œβ”€β”€ manifest.json
β”‚Β Β  └── robots.txt
└── src
    β”œβ”€β”€ App.css
    β”œβ”€β”€ App.js
    β”œβ”€β”€ components
    β”œβ”€β”€ index.css
    β”œβ”€β”€ index.js
    β”œβ”€β”€ logo.svg
    β”œβ”€β”€ lottie
    β”œβ”€β”€ reportWebVitals.js
    β”œβ”€β”€ setupTests.js
    └── utils

Learn More

To learn more about Notion API, take a look at the following resources:

To learn more about Google Books API, take a look at the following resources:

To learn more about Chrome Extension, take a look at the following resources:

References

Google Books API Β· Notion API Β· Chrome Extension

About

React chrome extension for Notion to save books by querying details from Google Books API πŸ“š

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •