monitor-free.openapps.xyz

Source

This app’s code and revision history are public. Download a copy or explore the files below.

Public
The app’s code and revision history are public.
Owned app · rev 11d38ef641b0
Run it yourself
Take the whole tree and run it on your own machine. The download needs no account. Cloning needs a sign-in.
Download .zip
bounded clone 9383f719c9b37ff76411858f
A copy you download is not bounded. The guarantees this app runs under - declared egress, proven invariants, writes that fail closed - live in the runtime serving this page, not in the files. What you get is auditable source you can read and run, with no runtime guarantees attached.
← All files
policy-tests/pairing.json
{
  "version": "1",
  "name": "pairing, signaling and removal",
  "actors": { "Baby": "baby_device", "Mom": "mom_device", "Dad": "dad_device", "Eve": "eve_device" },
  "steps": [
    { "op": "setTime", "epoch": 1800000000 },
    { "op": "as", "who": "Baby" },
    { "op": "setMany", "writes": [
      { "path": "rooms/aaaaaaaaaaaaaaaaaaaa", "data": { "owner": "$Baby", "name": "Nursery", "session": "s1", "online": true, "createdAt": 1800000000 } },
      { "path": "rooms/aaaaaaaaaaaaaaaaaaaa/joins/baby_device", "data": { "role": "baby", "name": "Nursery", "at": 1800000000 } }
    ] },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa", "data": { "session": "s2" } },

    { "op": "as", "who": "Eve" },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/joins/eve_device", "data": { "role": "baby", "name": "Eve", "at": 1800000000 }, "shouldFail": true },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/joins/mom_device", "data": { "role": "parent", "name": "Eve", "at": 1800000000 }, "shouldFail": true },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa", "data": { "session": "evil" }, "shouldFail": true },
    { "op": "set", "path": "rooms/bbbbbbbbbbbbbbbbbbbb/joins/eve_device", "data": { "role": "parent", "name": "Eve", "at": 1800000000 }, "shouldFail": true },

    { "op": "as", "who": "Mom" },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/links/mom_device", "data": { "offer": "x", "offerId": "o1", "session": "s2", "answer": "", "answerId": "", "at": 1800000000 }, "shouldFail": true },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/joins/mom_device", "data": { "role": "parent", "name": "Mom phone", "at": 1800000000 } },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/joins/mom_device", "data": { "role": "baby" }, "shouldFail": true },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/joins/mom_device", "data": { "name": "Mom" } },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/links/mom_device", "data": { "offer": "sdp-offer", "offerId": "o1", "session": "s2", "answer": "", "answerId": "", "at": 1800000000 } },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/links/mom_device", "data": { "answer": "fake", "answerId": "o1" }, "shouldFail": true },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa", "data": { "online": false }, "shouldFail": true },

    { "op": "as", "who": "Eve" },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/links/mom_device", "data": { "answer": "fake", "answerId": "o1" }, "shouldFail": true },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/links/eve_device", "data": { "offer": "x", "offerId": "o1", "session": "s2", "answer": "", "answerId": "", "at": 1800000000 }, "shouldFail": true },

    { "op": "as", "who": "Baby" },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/links/mom_device", "data": { "answer": "sdp-answer", "answerId": "old" }, "shouldFail": true },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/links/mom_device", "data": { "offer": "changed", "answer": "sdp-answer", "answerId": "o1" }, "shouldFail": true },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/links/mom_device", "data": { "answer": "sdp-answer", "answerId": "o1" } },
    { "op": "expect", "expr": "get(/rooms/aaaaaaaaaaaaaaaaaaaa/links/mom_device).answerId == 'o1'" },

    { "op": "as", "who": "Mom" },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/links/mom_device", "data": { "offer": "sdp-offer-2", "offerId": "o2", "session": "s2", "answer": "", "answerId": "", "at": 1800000000 } },

    { "op": "as", "who": "Dad" },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/joins/dad_device", "data": { "role": "parent", "name": "Dad", "at": 1800000000 } },
    { "op": "as", "who": "Baby" },
    { "op": "setMany", "writes": [
      { "path": "rooms/aaaaaaaaaaaaaaaaaaaa/bans/dad_device", "data": { "at": 1800000000 } }
    ] },
    { "op": "delete", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/joins/dad_device" },
    { "op": "as", "who": "Dad" },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/joins/dad_device", "data": { "role": "parent", "name": "Dad", "at": 1800000000 }, "shouldFail": true },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/bans/dad_device", "data": { "at": 1800000000 }, "shouldFail": true },
    { "op": "delete", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/bans/dad_device", "shouldFail": true },
    { "op": "as", "who": "Mom" },
    { "op": "delete", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/joins/baby_device", "shouldFail": true },
    { "op": "set", "path": "rooms/aaaaaaaaaaaaaaaaaaaa/bans/eve_device", "data": { "at": 1800000000 }, "shouldFail": true }
  ]
}

Change history

Move store links to openapps.free
11d38ef641 · 17 hours ago
Release with preview
41c8af3ee5 · 19 hours ago
Bind agent address in policy
5b2d792529 · 19 hours ago
Use OpenApps service URLs and add contribution strip (retry)
be4477dcb3 · 19 hours ago
Bounded source sync
5c9ec00c29 · 2 days ago
Bounded source sync
b33aa231f4 · 2 days ago
Bounded source sync
6cb67b3c8e · 2 days ago
Bounded source sync
e054acaa29 · 2 days ago