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
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.
import { open } from 'protocol-launcher/momento'
const url = open()Launch Momento 3 explicitly.
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.
import { newMoment } from 'protocol-launcher/momento'
const url = newMoment({
text: 'Just Arrived!',
tag: ['Holiday', 'Summer'],
})Add Photos
Open Add Photos.
import { newPhotos } from 'protocol-launcher/momento'
const url = newPhotos()Add People
Open Add People.
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.
import { newPlaces } from 'protocol-launcher/momento'
const url = newPlaces({
text: 'Just Arrived!',
tag: ['Holiday', 'Summer'],
})Add Tags
Open Add Tags.
import { newTags } from 'protocol-launcher/momento'
const url = newTags()Add Moment And Change Date
Open Add Moment and Change Date.
import { newDate } from 'protocol-launcher/momento'
const url = newDate()Camera
Open Camera.
import { newCamera } from 'protocol-launcher/momento'
const url = newCamera()Open the front camera with the documented front=true parameter.
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.
import { newCamera } from 'protocol-launcher/momento'
const url = newCamera({
text: 'Just Arrived!',
tag: ['Holiday', 'Summer'],
})