Programming Roam
< Next Topic | Back to topic list | Previous Topic >
Posted by Luhmann
Dec 11, 2020 at 09:45 AM
Roam’s API is still only available to select developers. (I hear it will get released after they update the backend.) But it already allows for adding features via Javascript and developers are doing some amazing things with that. Especially interesting is Roam42, which (in the current test build) allows for something called “SmartBlocks.” It is like having Applescript for Roam, allowing you to do all kinds of things. Examples include going through and entire page and extracting highlights, inserting them in a new outline with links back to the individual blocks where the highlights were found. Another one can pull your Todoist tasks (using the Todoist API) and insert them into an outline. You can also enter a tag in a block and run a script to collect all blocks with that tag beneath it. The possibilities are endless, and it is a very dangerous distraction if you are a hopeless CRIMPer who haunts these forums…
Read more here:
Documentation:
https://roamresearch.com/#/app/roamhacker/page/GH0401tnt
Example SmartBlocks:
https://github.com/roamhacker/SmartBlocks/issues
Posted by Luhmann
Jan 16, 2021 at 12:29 PM
Someone has created a set of scripts that allow you to use Todoist’s inbox as a tool to quickly capture items to your Roam database, even from your phone. Just add something to your Inbox and add the label “rr” (or whatever you like), and it will pull those items into your inbox and (optionally) delete them from your Todoist inbox on completion.
https://github.com/roamhacker/SmartBlocks/issues/37#issuecomment-761523237
Once Roam’s official API is public this hack won’t be necessary, but till then it makes it much easier to add stuff quickly to Roam while on the go.