Raindrop.io

Bookmarks, collections, highlights, copies and files from one Raindrop.io account, what Marfa carries back, and the token, settings and holds you meet.

  • Source: raindrop, shown as Raindrop.io
  • Types: raindrop.bookmark, raindrop.collection, raindrop.highlight, raindrop.copy, raindrop.file
  • Can carry changes back: Yes, for raindrop.bookmark, raindrop.collection, raindrop.highlight
  • Added in: plugins release 0.0.18

This connector is in alpha. What it has written stays in your instance, and how it works can change: what alpha means.

What it brings

It reads one account through Raindrop's REST API, as five kinds, each on its own type:

TypeWhat it is
raindrop.bookmarkA saved bookmark, from every collection, Unsorted and Trash.
raindrop.collectionA collection, nested as Raindrop nests it.
raindrop.highlightA highlighted passage of a bookmark, with its note.
raindrop.copyA permanent copy of a bookmark's page, attached to it.
raindrop.fileA file uploaded to Raindrop, attached to its bookmark.

A bookmark joins its collection with in-collection, and a collection holds the ones nested in it with parent-of. A highlight points to its bookmark with excerpt-of, and a copy or file with attached-to. A bookmark in Unsorted has no collection edge.

A bookmark's tags are Marfa tags, and a favorite is the Marfa tag favorite. A tag Marfa can't take, such as one over 128 characters, stays in Raindrop and in the bookmark's original_values, and raises one condition. Choose tags, favorites and pictures says where tags land.

The bookmark's thumbnail is a small picture made from its cover, made again only when the cover's address changes. A cover that gives none leaves no thumbnail and no condition. A run makes at most 500, in turn.

A run reads changes from Raindrop's lists, newest first, not from its search, which can lag. Once a day it reads every bookmark.

A bookmark in Raindrop's Trash is archived with in_trash set, and comes back when it leaves Trash. The connector archives a bookmark or collection as deleted only when Raindrop says it no longer has it, and a highlight when its bookmark no longer holds it.

What goes back

Bookmarks, collections and highlights go back on the next run. Copies and files never go back.

In MarfaIn Raindrop
A bookmark madeMade in its collection, or Unsorted, with its tags and favorite.
A bookmark's address, title, description, note, cover or reminder changedSent. A title over 1,000 characters, or a description or note over 10,000, is refused, never cut.
A tag or the favorite changedAdded to or removed from the tags Raindrop holds, keeping the others. The favorite tag sets Raindrop's favorite.
A bookmark moved to another collectionMoved. Raindrop holds a bookmark in one collection, so adding a second moves it there and takes the first back, with a condition.
A bookmark moved to the binMoved to Raindrop's Trash.
A bookmark purgedLeft in Raindrop's Trash, unless raindrop_purge_deletes is true.
A bookmark restoredTaken out of Trash, or made again with its tags and favorite if Raindrop deleted it for good.
A collection made, renamed or movedMade, renamed or moved.
A collection moved to the binIts bookmarks, and those of collections nested in it, move to Unsorted first. Then it is deleted with those nested in it.
A collection restoredMade again with a new Raindrop ID, with the nested collections that went with it.
A highlight madeMade on its bookmark.
A highlight's note or color changedSent. The passage is never sent again.
A highlight moved to the bin or restoredRemoved, or made again.

A bookmark is never deleted for good in Raindrop unless you turn on raindrop_purge_deletes. A collection is checked to be empty just before it is deleted; a bookmark added in that moment goes to Raindrop's Trash.

A change to a collection you don't own, or to a bookmark or highlight in a collection you can only view, is declined with a condition, and Raindrop is not changed. The same run undoes your field edits and any move in Marfa, and doesn't offer the change again until the item changes. A bookmark made in a view-only collection stays in Marfa only. A tag, a favorite or a binned item stays as you left it in Marfa.

raindrop_read_only set to true sends Raindrop nothing.

Copies, files and your plan

Raindrop keeps a permanent copy of a page for Pro accounts only, and an uploaded file for any account. Each is a row attached to its bookmark, with its bytes in Marfa. On a free account the connector keeps no copies and raises one condition, copies-need-pro.

A copy or file over raindrop_file_max_bytes is not kept, with a condition naming its bookmark. A run fetches at most 40, about 1 GiB, and the rest wait. Turn the copy and file kinds off in the mapping and the connector asks Raindrop for none of their bytes.

Sign in and settings

  1. In Raindrop.io, open Settings and find For Developers (Raindrop's token steps). Create an app there, open it and copy its test token. It reads and changes everything in your account, so keep it private.
  2. Install it by name, assign it to a connector host and store the token:
marfa plugins install raindrop
marfa plugins assign raindrop --host <host>
marfa plugins secret raindrop raindrop_token
SettingWhat you decide
raindrop_tokenSecret. The app's test token. Required.
raindrop_requests_per_minuteThe most requests a minute. Default 60.
raindrop_file_max_bytesThe largest copy or file to keep. Default 314572800.
raindrop_read_onlytrue to send nothing back. Default is off.
raindrop_purge_deletestrue to delete a purged bookmark for good in Raindrop. Default is off.

Store each as Give a connector its settings and secrets describes. The plugin's plugin.json lists every setting, including the API address. The connector keeps to its rate and to the pace Raindrop reports (the kit's request pacer).

Holds on large batches

A large batch of deletes waits for you. It is held when the items you binned or purged would delete more than 20 bookmarks, collections and highlights and more than a quarter of the library, or more than 20 bookmarks and more than a quarter of one collection. A collection counts with those nested in it. The run then fails, and nothing is carried either way.

The condition deletes-held gives a value. Store it in raindrop_confirm_deletes to let that batch through, or restore the binned items in Marfa. A value given for a binned batch never lets a purge through.

Archives of collections and highlights are held when they are more than 20 and more than a quarter of the active ones of that kind. The run archives none of that kind, writes everything else and raises archives-held, which gives a value for raindrop_confirm_archives. A bookmark Raindrop reports in Trash or as gone is not held. The kit's holds say how a value is spent.

What to know

  • Mapped onto a type other sources also write to, the connector reaches only the items it made itself. On its own types, it carries every item of the type, whoever made it, so a bookmark made by hand there is made in Raindrop.
  • A token for another account than the first one read stops the run with exit code 4 before anything is written.
  • A 403 for one bookmark, collection or highlight refuses that one only. A 401, or a 403 for the account, stops the connector with exit code 4.
  • When the answer to a create is lost, the connector looks for what it made before sending again. With more than one match, it raises a condition until you remove the extra one in Raindrop.

On this page