Skip to content

Day One

Day One is the #1 journaling app for capturing life's moments. Protocol Launcher allows you to generate deep links to create, edit, and view journal entries in Day One.

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 App

On-Demand
ts
import { open } from 'protocol-launcher/day-one'

const url = open()

Create Entry

On-Demand
ts
import { createEntry } from 'protocol-launcher/day-one'

const url = createEntry({
  entry: 'Hello World',
  tags: 'work, test',
})

Edit Entry

On-Demand
ts
import { editEntry } from 'protocol-launcher/day-one'

const url = editEntry({
  entryId: '3415BB00651C4533B41F62544A775CCC',
})

View Entry

On-Demand
ts
import { viewEntry } from 'protocol-launcher/day-one'

const url = viewEntry({
  entryId: '22B178B33B2A4149538280F9C34102C5',
})

Filter by Tag

On-Demand
ts
import { filterByTag } from 'protocol-launcher/day-one'

const url = filterByTag({
  tag: 'work',
})

Open Calendar

On-Demand
ts
import { openCalendar } from 'protocol-launcher/day-one'

const url = openCalendar()

Open Daily Prompt

On-Demand
ts
import { openDailyPrompt } from 'protocol-launcher/day-one'

const url = openDailyPrompt({
  promptId: 'ck7zw8sybj6kv09983znvrmof',
})

Open Date

On-Demand
ts
import { openDate } from 'protocol-launcher/day-one'

const url = openDate({
  date: '2020-04-02',
})

Open On This Day

On-Demand
ts
import { openOnThisDay } from 'protocol-launcher/day-one'

const url = openOnThisDay()

Open Settings

On-Demand
ts
import { openSettings } from 'protocol-launcher/day-one'

const url = openSettings()

Open Starred

On-Demand
ts
import { openStarred } from 'protocol-launcher/day-one'

const url = openStarred()

Open Timeline

On-Demand
ts
import { openTimeline } from 'protocol-launcher/day-one'

const url = openTimeline()