Skip to content

Hookmark ​

Hookmark is a macOS app that lets you create contextual bookmarks and bidirectional links between files, emails, web pages, and more. Protocol Launcher allows you to generate deep links to open resources in Hookmark.

Usage ​

There are two ways to use this library:

  • On-Demand import from subpaths enables tree-shaking and keeps bundles small.
  • Full Import from the root package is convenient but includes all app modules.

Pick On-Demand for production builds; Full Import is fine for quick scripts or demos.

Select Installation Method

On-Demand
Recommended. Optimized for production.
Full Import
Convenient. Good for quick scripts.

Open Hookmark ​

On-Demand
ts
import { open } from 'protocol-launcher/hookmark'

const url = open()

Open Address Book ​

On-Demand
ts
import { openAddressBook } from 'protocol-launcher/hookmark'

const url = openAddressBook()

Open Email ​

On-Demand
ts
import { openEmail } from 'protocol-launcher/hookmark'

const url = openEmail({
  id: '<CABc123xyz@mail.gmail.com>',
})

Open File ​

On-Demand
ts
import { openFile } from 'protocol-launcher/hookmark'

const url = openFile({
  path: '/Applications',
  name: 'Applications',
})

Open Notes ​

On-Demand
ts
import { openNotes } from 'protocol-launcher/hookmark'

const url = openNotes()
On-Demand
ts
import { openSearch } from 'protocol-launcher/hookmark'

const url = openSearch({
  query: 'project',
})

Open Spotify ​

On-Demand
ts
import { openSpotify } from 'protocol-launcher/hookmark'

const url = openSpotify()