Skip to content

Anybox

Anybox is a bookmark and link manager for saving, finding, and organizing links.

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.

Show Anybox

On-Demand
ts
import { show } from 'protocol-launcher/anybox'

const url = show()

Paste Clipboard Content

On-Demand
ts
import { paste } from 'protocol-launcher/anybox'

const url = paste({
  tag: 'Reading',
  starred: 'yes',
})

Save Text Content

On-Demand
ts
import { save } from 'protocol-launcher/anybox'

const url = save({
  text: 'https://example.com/article',
  tag: 'Reading',
  starred: 'yes',
  archive: 'webarchive',
})

Download URL (macOS)

On-Demand
ts
import { download } from 'protocol-launcher/anybox'

const url = download({
  url: 'https://example.com/file.pdf',
  tag: 'Reading',
})

Save Current Tab (macOS)

On-Demand
ts
import { saveTab } from 'protocol-launcher/anybox'

const url = saveTab({
  tag: 'Reading',
  starred: 'yes',
  archive: 'pdf',
})
On-Demand
ts
import { openLinkFromPasteboard } from 'protocol-launcher/anybox'

const url = openLinkFromPasteboard()
On-Demand
ts
import { copyPasteboardLinkAsMarkdown } from 'protocol-launcher/anybox'

const url = copyPasteboardLinkAsMarkdown()

Quick Find

On-Demand
ts
import { quickFind } from 'protocol-launcher/anybox'

const url = quickFind({
  q: 'research',
})

Quick Save (macOS)

On-Demand
ts
import { quickSave } from 'protocol-launcher/anybox'

const url = quickSave()

Stash Box (macOS)

On-Demand
ts
import { stashBox } from 'protocol-launcher/anybox'

const url = stashBox()

Toggle Anydock (macOS)

On-Demand
ts
import { toggleAnydock } from 'protocol-launcher/anybox'

const url = toggleAnydock()

New Note (iOS)

On-Demand
ts
import { newNote } from 'protocol-launcher/anybox'

const url = newNote()

Latest Photo (iOS)

On-Demand
ts
import { latestPhoto } from 'protocol-launcher/anybox'

const url = latestPhoto()

Photos (iOS)

On-Demand
ts
import { photos } from 'protocol-launcher/anybox'

const url = photos()

x-callback-url Save

On-Demand
ts
import { xCallbackSave } from 'protocol-launcher/anybox'

const url = xCallbackSave({
  text: 'helloWorld',
  xSuccess: 'successURL',
  xError: 'errorURL',
})

x-callback-url Paste

On-Demand
ts
import { xCallbackPaste } from 'protocol-launcher/anybox'

const url = xCallbackPaste({
  xSuccess: 'successURL',
  xError: 'errorURL',
})