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
ts
import { show } from 'protocol-launcher/anybox'
const url = show()Paste Clipboard Content
ts
import { paste } from 'protocol-launcher/anybox'
const url = paste({
tag: 'Reading',
starred: 'yes',
})Save Text Content
ts
import { save } from 'protocol-launcher/anybox'
const url = save({
text: 'https://example.com/article',
tag: 'Reading',
starred: 'yes',
archive: 'webarchive',
})Download URL (macOS)
ts
import { download } from 'protocol-launcher/anybox'
const url = download({
url: 'https://example.com/file.pdf',
tag: 'Reading',
})Save Current Tab (macOS)
ts
import { saveTab } from 'protocol-launcher/anybox'
const url = saveTab({
tag: 'Reading',
starred: 'yes',
archive: 'pdf',
})Open Link From Pasteboard
ts
import { openLinkFromPasteboard } from 'protocol-launcher/anybox'
const url = openLinkFromPasteboard()Copy Pasteboard Link As Markdown (macOS)
ts
import { copyPasteboardLinkAsMarkdown } from 'protocol-launcher/anybox'
const url = copyPasteboardLinkAsMarkdown()Quick Find
ts
import { quickFind } from 'protocol-launcher/anybox'
const url = quickFind({
q: 'research',
})Quick Save (macOS)
ts
import { quickSave } from 'protocol-launcher/anybox'
const url = quickSave()Stash Box (macOS)
ts
import { stashBox } from 'protocol-launcher/anybox'
const url = stashBox()Toggle Anydock (macOS)
ts
import { toggleAnydock } from 'protocol-launcher/anybox'
const url = toggleAnydock()New Note (iOS)
ts
import { newNote } from 'protocol-launcher/anybox'
const url = newNote()Latest Photo (iOS)
ts
import { latestPhoto } from 'protocol-launcher/anybox'
const url = latestPhoto()Photos (iOS)
ts
import { photos } from 'protocol-launcher/anybox'
const url = photos()x-callback-url Save
ts
import { xCallbackSave } from 'protocol-launcher/anybox'
const url = xCallbackSave({
text: 'helloWorld',
xSuccess: 'successURL',
xError: 'errorURL',
})x-callback-url Paste
ts
import { xCallbackPaste } from 'protocol-launcher/anybox'
const url = xCallbackPaste({
xSuccess: 'successURL',
xError: 'errorURL',
})