Skip to content

Agenda ​

Agenda is a note-taking app designed for creatives and professionals who want to organize their ideas by date. Protocol Launcher allows you to generate deep links to create and manage notes, projects, and categories in Agenda.

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.

Create Note ​

{{currentMethod}}
ts
import { createNote } from 'protocol-launcher/agenda'

const url = createNote({
  title: 'Meeting Notes',
  text: 'Discussion about project roadmap',
  projectTitle: 'Work',
  onTheAgenda: true,
  date: '2024-01-15',
})

Create Project ​

{{currentMethod}}
ts
import { createProject } from 'protocol-launcher/agenda'

const url = createProject({
  title: 'New Project',
  categoryTitle: 'Work',
  select: true,
  sortOrder: 'newest-first',
})

Create Category ​

{{currentMethod}}
ts
import { createCategory } from 'protocol-launcher/agenda'

const url = createCategory({
  title: 'New Category',
})

Open Note ​

{{currentMethod}}
ts
import { openNote } from 'protocol-launcher/agenda'

const url = openNote({
  title: 'Meeting With Peta',
  projectTitle: 'Work',
})

Open Project ​

{{currentMethod}}
ts
import { openProject } from 'protocol-launcher/agenda'

const url = openProject({
  title: 'Work Project',
})

Open Overview ​

{{currentMethod}}
ts
import { openOverview } from 'protocol-launcher/agenda'

const url = openOverview({
  title: 'This Week',
})
{{currentMethod}}
ts
import { openSearch } from 'protocol-launcher/agenda'

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

Append to Note ​

{{currentMethod}}
ts
import { appendToNote } from 'protocol-launcher/agenda'

const url = appendToNote({
  title: 'Some Note',
  text: 'More Text',
  onTheAgenda: true,
})

Replace Note ​

{{currentMethod}}
ts
import { replaceNote } from 'protocol-launcher/agenda'

const url = replaceNote({
  title: 'Some Note',
  text: 'New Content',
})

Get Identifier ​

{{currentMethod}}
ts
import { getIdentifier } from 'protocol-launcher/agenda'

const url = getIdentifier({
  projectTitle: 'Welcome',
  title: 'Things to Try',
})

Get Selection ​

{{currentMethod}}
ts
import { getSelection } from 'protocol-launcher/agenda'

const url = getSelection()

Get Selected Note ​

{{currentMethod}}
ts
import { getSelectedNote } from 'protocol-launcher/agenda'

const url = getSelectedNote()

Get Selected Project ​

{{currentMethod}}
ts
import { getSelectedProject } from 'protocol-launcher/agenda'

const url = getSelectedProject()

Today ​

{{currentMethod}}
ts
import { today } from 'protocol-launcher/agenda'

const url = today()

On the Agenda ​

{{currentMethod}}
ts
import { onTheAgenda } from 'protocol-launcher/agenda'

const url = onTheAgenda()

Callbacks ​

Pass xSuccess, xError as optional payload fields. Callback URLs are encoded, including nested query parameters.

{{currentMethod}}
ts
import { getSelection } from 'protocol-launcher/agenda'

const callbackUrl = getSelection({
  'xSuccess': 'myapp://done?source=agenda'
})