Import your highlights and notes from Grain directly into Roam!


You could use the Copy Extension button below to individually install this extension. To install, just paste anywhere in your Roam graph and click "Yes, I Know What I'm Doing".

Manual Installation

If the extension doesn't work after using the copy extension button above, try installing manually using the instructions below.

First create a block with the text {{[[roam/js]]}} on any page in your Roam DB. Then, create a single child of this block type three back ticks. A code block should appear. Copy this code and paste it into the child code block in your graph:

var existing = document.getElementById("roamjs-grain");
if (!existing) {
  var extension = document.createElement("script");
  extension.src = "https://roam-integration.grain.co/main.js";
  extension.id = "roamjs-grain";
  extension.async = true;
  extension.type = "text/javascript";

Finally, click "Yes, I Know What I'm Doing".


You first must log in to your Grain account by visiting the roam/js/grain page in your graph. You could check "Store Locally" to store your Grain credentials locally in your browser or uncheck it to have it stored in your Roam graph. After successfully logging in, you should see the name associated with your account appear.

After logging in, you will have access to the "Open Grain Feed" command from the Roam command palette which is accessible by hitting cmd+p (iOS) or ctrl+p (Windows). Firing this command will open the Grain Import dialog, which you could use to import individual or all recordings from Grain into your Roam database.

Clicking "IMPORT" will insert each of the results into your current page under a #Grain Recordings tag. The name of the recording will be automatically tagged and links to highlights will be nested under each entry.

This dialog will also appear each new day you visit your daily notes page. To import recordings automatically each day without having to check through the dialog, go to the import tab of your roam/js/grain page and check auto import.


This extension is brought to you by RoamJS! If you are facing any issues reach out to support@roamjs.com or click on the chat button on the bottom right. If you get value from using this extension, consider sponsoring RoamJS by clicking on the button below!


Add your email below to stay up to date on all RoamJS features, fixes, and news!

Other Extensions