English
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.
Windows supports calendar, timeline, media, settings, templates, redeem, and blank new-entry links. It ignores entry text, tags, journal, and prompt parameters, and does not support view/edit by entry ID. Use openTimeline({ platform: 'windows' }) on Windows; the default keeps dayone://entries for other platforms.
Open App
ts
import { open } from 'protocol-launcher/day-one'
const url = open()Create Entry
ts
import { createEntry } from 'protocol-launcher/day-one'
const url = createEntry({
entry: 'Hello World',
tags: 'work, test',
})Edit Entry
ts
import { editEntry } from 'protocol-launcher/day-one'
const url = editEntry({
entryId: '3415BB00651C4533B41F62544A775CCC',
})View Entry
ts
import { viewEntry } from 'protocol-launcher/day-one'
const url = viewEntry({
entryId: '22B178B33B2A4149538280F9C34102C5',
})Filter by Tag
ts
import { filterByTag } from 'protocol-launcher/day-one'
const url = filterByTag({
tag: 'work',
})Open Calendar
ts
import { openCalendar } from 'protocol-launcher/day-one'
const url = openCalendar()Open Daily Prompt
ts
import { openDailyPrompt } from 'protocol-launcher/day-one'
const url = openDailyPrompt({
promptId: 'ck7zw8sybj6kv09983znvrmof',
})Open Date
ts
import { openDate } from 'protocol-launcher/day-one'
const url = openDate({
date: '2020-04-02',
})Open On This Day
ts
import { openOnThisDay } from 'protocol-launcher/day-one'
const url = openOnThisDay()Open Settings
ts
import { openSettings } from 'protocol-launcher/day-one'
const url = openSettings()Open Starred
ts
import { openStarred } from 'protocol-launcher/day-one'
const url = openStarred()Open Timeline
ts
import { openTimeline } from 'protocol-launcher/day-one'
const url = openTimeline()Recent Prompts
Open recent prompts on iOS.
ts
import { openRecentPrompts } from 'protocol-launcher/day-one'
const url = openRecentPrompts()Open Tag
Apply a tag filter on iOS or macOS.
ts
import { openTags } from 'protocol-launcher/day-one'
const url = openTags({
name: 'work'
})Book Printing
Open book printing on iOS.
ts
import { openBook } from 'protocol-launcher/day-one'
const url = openBook()Templates
Open templates on iOS or Windows.
ts
import { openTemplates } from 'protocol-launcher/day-one'
const url = openTemplates()Redeem Code
Open code redemption on iOS or Windows.
ts
import { openRedeem } from 'protocol-launcher/day-one'
const url = openRedeem()Encryption Key
Open the encryption key view on iOS or macOS.
ts
import { openEncryptionKey } from 'protocol-launcher/day-one'
const url = openEncryptionKey()Siri Shortcuts
Open Siri Shortcuts settings on iOS.
ts
import { openSiri } from 'protocol-launcher/day-one'
const url = openSiri()Media
Open the media view on Windows.
ts
import { openMedia } from 'protocol-launcher/day-one'
const url = openMedia()