Bear
Bear is a beautiful, flexible writing app for crafting notes and prose. Bear works on iPhone, iPad, and Mac, offering everything you need to write, edit, and organize your ideas. With its powerful tag management system, markdown support, and seamless synchronization across devices, Bear is perfect for everything from quick notes to in-depth articles. Protocol Launcher allows you to generate deep links to open notes, create content, search, and manage tags in Bear.
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 Bear
ts
import { open } from 'protocol-launcher/bear'
const url = open()Open Note
ts
import { openNote } from 'protocol-launcher/bear'
const url = openNote({
title: 'Shopping',
})Create Note
ts
import { create } from 'protocol-launcher/bear'
const url = create({
title: 'Shopping',
text: 'Milk',
tags: 'home,groceries',
})Add Text to Note
ts
import { addText } from 'protocol-launcher/bear'
const url = addText({
text: 'new line',
id: '4EDAF0D1',
mode: 'append',
})Search
ts
import { search } from 'protocol-launcher/bear'
const url = search({
term: 'nemo',
tag: 'movies',
})Open Tag
ts
import { openTag } from 'protocol-launcher/bear'
const url = openTag({
tag: 'work',
})Rename Tag
ts
import { renameTag } from 'protocol-launcher/bear'
const url = renameTag({
tag: 'old-tag',
newTag: 'new-tag',
})Delete Tag
ts
import { deleteTag } from 'protocol-launcher/bear'
const url = deleteTag({
tag: 'obsolete-tag',
})Show Todos
ts
import { todo } from 'protocol-launcher/bear'
const url = todo({
search: 'home',
})Show Today's Notes
ts
import { today } from 'protocol-launcher/bear'
const url = today()Show Locked Notes
ts
import { locked } from 'protocol-launcher/bear'
const url = locked()Show Untagged Notes
ts
import { untagged } from 'protocol-launcher/bear'
const url = untagged()Show Trash
ts
import { trash } from 'protocol-launcher/bear'
const url = trash()Show Archive
ts
import { archive } from 'protocol-launcher/bear'
const url = archive()Grab URL
ts
import { grabUrl } from 'protocol-launcher/bear'
const url = grabUrl({
url: 'https://bear.app',
})Get All Tags
ts
import { tags } from 'protocol-launcher/bear'
const url = tags({
token: '123456-123456-123456',
})