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 ​

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

const url = open()

Open Address Book ​

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

const url = openAddressBook()

Open Email ​

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

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

Open File ​

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

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

Open Notes ​

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

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

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

Open Spotify ​

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

const url = openSpotify()