Skip to content

Momento ​

Momento is a diary and life-logging app. Protocol Launcher allows you to generate links for launching Momento and opening its official Add Moment shortcuts.

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.

URL Methods ​

The helpers below mirror Momento's official URL Scheme documentation. Only the documented launch, Add Moment, Add Photos, Add People, Add Places, Add Tags, Add Moment and Change Date, and Camera URLs are exposed. The official URL examples use text and repeated tag query parameters for Add Moment, Add Places, and Camera; Camera also documents front=true.

Momento also documents replacing momento:// with momento-3:// to target Momento 3 when Momento Classic is installed. Pass scheme: 'momento-3' to any helper to generate that form.

Open ​

Launch Momento.

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

const url = open()

Launch Momento 3 explicitly.

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

const url = open({
  scheme: 'momento-3',
})

Add Moment ​

Open Add Moment. You can include the text and repeated tag parameters shown in Momento's official examples.

On-Demand
ts
import { newMoment } from 'protocol-launcher/momento'

const url = newMoment({
  text: 'Just Arrived!',
  tag: ['Holiday', 'Summer'],
})

Add Photos ​

Open Add Photos.

On-Demand
ts
import { newPhotos } from 'protocol-launcher/momento'

const url = newPhotos()

Add People ​

Open Add People.

On-Demand
ts
import { newPeople } from 'protocol-launcher/momento'

const url = newPeople()

Add Places ​

Open Add Places. Momento's official examples also show text and repeated tag parameters on this URL.

On-Demand
ts
import { newPlaces } from 'protocol-launcher/momento'

const url = newPlaces({
  text: 'Just Arrived!',
  tag: ['Holiday', 'Summer'],
})

Add Tags ​

Open Add Tags.

On-Demand
ts
import { newTags } from 'protocol-launcher/momento'

const url = newTags()

Add Moment And Change Date ​

Open Add Moment and Change Date.

On-Demand
ts
import { newDate } from 'protocol-launcher/momento'

const url = newDate()

Camera ​

Open Camera.

On-Demand
ts
import { newCamera } from 'protocol-launcher/momento'

const url = newCamera()

Open the front camera with the documented front=true parameter.

On-Demand
ts
import { newCamera } from 'protocol-launcher/momento'

const url = newCamera({
  front: true,
})

Momento's official examples also show text and repeated tag parameters on the Camera URL.

On-Demand
ts
import { newCamera } from 'protocol-launcher/momento'

const url = newCamera({
  text: 'Just Arrived!',
  tag: ['Holiday', 'Summer'],
})

Official Documentation ​