This sample demonstrates how to use the experimental Summarization API in Chrome. To learn more about the API and how to sign-up for the preview, head over to the summarizer guide on developer.chrome.com.
The extension summarizes the content of the currently open tab. It uses Mozilla's readability library to extract the content of the currently active tab and displays a summary of the page generated by Chrome's experimental summarization API in a side panel.
- Clone this repository
- Run
npm install
in this folder to install all dependencies. - Run
npm run build
to build the extension. - Load the newly created
dist
directory in Chrome as an unpacked extension. - Click the extension icon to open the summary side panel.
- Open any web page, the page's content summary will automatically be displayed in the side panel.
If you use this sample as the foundation for your own extension, be sure to update the "trial_tokens"
field with your own origin trial token and to remove the "key"
field in manifest.json
.