A pixel art illustration of a bunch of cranberries

Cranberry: The cure for your URI.

What is Cranberry?

Cranberry is a simple tool which allows you to insert clickable links to Zotero URIs, even where only URLs are accepted, by constructing your link as follows:


Make Me a Cranberry Link!

What's the point?

A lot of platforms let you create links to other webpages, but many of these platforms only allow you to make links using URLs, not URIs.

URI stands for Uniform Resource Identifier. URIs can be used for all kinds of things, but one particularly helpful function is that they can be used to launch desktop applications from a hyperlink.

However, when specific applications don't accept URIs as part of their hyperlink validation (for example, it's not possible to insert a URI as a clickable link in Notion), URIs aren't so functional. The point of Cranberry is to provide a workaround for such situations by allowing anyone to wrap a Zotero URI in a valid URL.

How does it work?

When you open a Cranberry URL with a valid Zotero URI, a Vercel Edge Function automatically redirects you to the specified URI and your browser will prompt you to open the Zotero application. If the Zotero URI you provide is invalid, the Edge Function Middleware responds with a 400 error. Otherwise, you're just shown the home page (here!)