First-party app
Beeminder

Beeminder

Track goals, log datapoints, manage pledges and charge yourself with Beeminder's commitment-contract goal tracker.

stable Productivity

About

Beeminder ships in the w6w first-party pack. It declares 18 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.beeminder
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Productivity

Overview

Beeminder is a goal tracker with teeth: each goal has a bright red line to stay on the right side of, and derailing costs a pledge you set in advance.

A workflow can read a user and their goals (active or archived), create and update goals, push data into a goal as a datapoint (single or batch, with a request id so a retried step never double-counts), edit or delete datapoints, and read them back with sorting and paging. It can also manage the commitment itself: ratchet a goal’s safety buffer down, step the pledge down or cancel a scheduled step-down, short-circuit a pledge up, force an autodata refresh, call Uncle to derail a goal on purpose, or create an arbitrary charge.

The connection holds the personal auth token from beeminder.com/api/v1/auth_token.json (while logged in), sent as the auth_token query parameter by the sign hook. Note that Uncle, short-circuit and charge actions move real money and cannot be undone.

Build with Beeminder

Three routes to the same 18 actions. The Workflow tab is generated from Beeminder's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Cancel Pledge Step Down

cancel-stepdown

Cancel a pending step-down of a goal's pledge; the pledge stays at its current amount.

Create Charge

create-charge

Charge the token's user an arbitrary amount in US dollars (minimum 1.00). Moves real money and cannot be undone — use dry run to preview.

Create Datapoint

create-datapoint

Add a datapoint to a goal. `requestid` makes it an upsert: resending the same request id never duplicates, and a changed value updates the existing point. It defaults to this invocation's id so a retried step is safe.

Create Multiple Datapoints

create-datapoints

Add several datapoints to a goal in one call. Each needs at least a `value`; `timestamp`, `daystamp`, `comment` and `requestid` are optional. On partial failure Beeminder answers with separate `successes` and `errors` lists.

Create Goal

create-goal

Create a goal. Exactly two of goal date, goal value and rate are required; Beeminder computes the third. Use dry run to validate without creating.

Delete Datapoint

delete-datapoint

Delete a datapoint and return the deleted object.

Get Goal

get-goal

Read one goal: type, rate, derail time, safety buffer, pledge and graph URLs.

Get User

get-user

Read a user: username, timezone, last-update time, goal slugs and urgency load. Use `updatedAt` to skip needless requests — it changes whenever any goal or datapoint does.

List Archived Goals

list-archived-goals

List a user's archived goals.

List Datapoints

list-datapoints

List a goal's datapoints, newest first by id unless sorted. Use `count` for the latest n, or `page` + `per` to paginate (page 1 is the first page).

List Goals

list-goals

List a user's active goals, most urgent first.

Ratchet Goal

ratchet-goal

Ratchet a goal down by reducing its safety buffer (days for do-more goals, units for do-less goals), moving the bright red line closer to your data. Ratcheting to 0 needs `beemergency`.

Refresh Goal Graph

refresh-graph

Force a refetch of autodata and a graph refresh, like the refresh button on the goal page. Asynchronous: returns whether the goal was queued. The vendor asks for extreme conservatism with this endpoint.

Short Circuit Goal Pledge

shortcircuit-goal

Increase the goal's pledge level and CHARGE the user the current pledge amount. Moves real money; cannot be undone.

Step Down Goal Pledge

stepdown-goal

Schedule a decrease of the goal's pledge level. It applies after the akrasia horizon, not immediately; the goal then shows a countdown to the lower pledge.

Call Uncle (Derail Goal)

uncle-goal

USE AT YOUR OWN RISK. Instantly derail a goal that is in a beemergency (red, zero safe days): stops alerts, CHARGES the pledge to you and all Groupies, and inserts the post-derail respite. No takebacks, no refunds. Fails if the goal has buffer left.

Update Datapoint

update-datapoint

Change a datapoint's value, timestamp or comment.

Update Goal

update-goal

Update a goal's title, y-axis label, x-axis bounds, visibility, data source, tags or bright red line (`roadall`). The goal type cannot be changed, and a change that makes the goal easier before the akrasia horizon is refused by Beeminder.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Beeminder's real ids.

{
  "manifestVersion": "2",
  "name": "beeminder-example",
  "steps": [
    {
      "id": "create-charge",
      "uses": {
        "app": "io.w6w.beeminder",
        "action": "create-charge",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "username": "<username>",
        "amount": "<amount>"
      }
    }
  ]
}

Here are some of the things you can do

  • Create Charge

    perform
    create-charge
  • Create Datapoint

    perform
    create-datapoint
  • Create Multiple Datapoints

    perform
    create-datapoints
  • Create Goal

    perform
    create-goal
  • Get Goal

    read
    get-goal

+13 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Beeminder, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Beeminder. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "create-charge",
  payload: {
    username: "<value>",
    amount: "<value>",
    // note: "<value>",
    // dryrun: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action create-charge --payload '{"username":"<value>","amount":"<value>"}'

Give an AI agent Beeminder — without giving it Beeminder's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.beeminder#create-charge",
    "input": {
      "username": "<username>",
      "amount": "<amount>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Beeminder connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Beeminder's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Beeminder itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Beeminder declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Beeminder platform status

dependency

API reachable

Unauthenticated GET /users/me.json. Beeminder's JSON `errors` object on a 401 passes: it proves the application is answering.