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
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()