Skip to content

Tally

Tally is a quick counting, scorekeeping, and habit tracking app for iPhone, iPad, and Apple Watch. Protocol Launcher allows you to generate deep links to increment, decrement, reset, and get tally values in Tally.

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 Tally

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

const url = open()

Increment Tally

Increase count of specified tally.

On-Demand
ts
import { increment } from 'protocol-launcher/tally'

const url = increment({
  tallySet: 'Game Score',
  tally: 'Player 1',
})

Decrement Tally

Decrease count of specified tally.

On-Demand
ts
import { decrement } from 'protocol-launcher/tally'

const url = decrement({
  tallySet: 'Game Score',
  tally: 'Player 1',
})

Reset Tally

Reset specified tally to its initial value.

On-Demand
ts
import { reset } from 'protocol-launcher/tally'

const url = reset({
  tallySet: 'Daily Habits',
  tally: 'Exercise',
})

Get Tally Value

Get the current value of a specified tally. Requires a callback URL.

On-Demand
ts
import { get } from 'protocol-launcher/tally'

const url = get({
  tallySet: 'Daily Habits',
  tally: 'Exercise',
  'x-success': 'myapp://callback',
})