Company
Date Published
Author
Jess Mitchell
Word count
1898
Language
English
Hacker News points
None

Summary

This demo app uses manifest v2, which is being deprecated by Chrome in 2022. The tutorial focuses on integrating the Notion API to embed a custom video chat experience in Notion and transcribe calls into Notion documents. The Daily Collab Chrome extension uses Deepgram for transcription text generation and sends it to the client via an app-message event listener. The background script then passes the transcription text to the Daily Collab custom API, which makes a PATCH request to update the Notion document with the new block child containing the transcription text. If the request is successful, the text will be added to the screen in the Notion document; otherwise, an error message will be displayed. The structure of the code keeps all API requests related to Daily Collab in one place and isolates application secrets, making it a secure and organized way to interact with the Notion API.