{
    "tailapp": 2,
    "manifest": {
        "format": 2,
        "app_id": "recorder",
        "name": "Recorder",
        "version": 1,
        "schema": "tailapps/v0",
        "exported_at": 1795564618,
        "from": "gallery",
        "connections": [],
        "files": {
            "app.json": "67131e4d78d38d9eec5ed02809a1b7d7ec48112e463282a4a076ef1df6cf34d5"
        },
        "signature": "6P52cp7B3FUFyMaXl6iN9u60ilntRaSP6AlI4ACFef3p/Pa2Nguz7ecPZ8b8lceORFklsA2JpcrVEKmLlMYuAA==",
        "key_id": "gallery-1"
    },
    "app": {
        "schema": "tailapps/v0",
        "app": "recorder",
        "name": "Recorder",
        "description": "Record your screen, a window or an area, with your microphone, what your Mac plays and a round camera bubble. Watch it, then share it or upload it to your own bucket and copy the link.",
        "icon": "record.circle",
        "permissions": [
            "screen.record",
            "mic.record",
            "camera",
            "displays.read",
            "windows.read",
            "share",
            "files.write:dest",
            "clipboard.write"
        ],
        "settings": {
            "dest": {
                "type": "storage",
                "label": "Upload recordings to",
                "allow": [
                    "s3"
                ]
            }
        },
        "sources": {
            "displays": {
                "system": "displays",
                "platforms": [
                    "macos"
                ]
            },
            "windows": {
                "system": "windows",
                "every": 5,
                "platforms": [
                    "macos"
                ]
            }
        },
        "state": {
            "recording": {
                "type": "bool",
                "default": false
            },
            "mic": {
                "type": "bool",
                "default": true
            },
            "system_audio": {
                "type": "bool",
                "default": false
            },
            "clip": {
                "type": "text",
                "default": ""
            },
            "seconds": {
                "type": "number",
                "default": 0
            },
            "clips": {
                "type": "list",
                "default": []
            }
        },
        "cards": [
            {
                "id": "main",
                "layout": {
                    "column": [
                        {
                            "grid": [
                                {
                                    "menu": "Display",
                                    "icon": "display",
                                    "layout": "stacked",
                                    "items": "$displays",
                                    "item": {
                                        "label": "$item.name",
                                        "on": "record",
                                        "args": {
                                            "target": "$item.id"
                                        }
                                    }
                                },
                                {
                                    "menu": "Window",
                                    "icon": "macwindow",
                                    "layout": "stacked",
                                    "items": "$windows",
                                    "item": {
                                        "label": "$item.app",
                                        "on": "record",
                                        "args": {
                                            "target": "$item.id"
                                        }
                                    }
                                },
                                {
                                    "button": "Area",
                                    "icon": "rectangle.dashed",
                                    "layout": "stacked",
                                    "on": "record",
                                    "args": {
                                        "target": "area"
                                    }
                                },
                                {
                                    "button": "Choose\u2026",
                                    "icon": "rectangle.on.rectangle",
                                    "layout": "stacked",
                                    "on": "record",
                                    "args": {
                                        "target": "pick"
                                    }
                                }
                            ],
                            "columns": {
                                "default": 2
                            },
                            "gap": "s",
                            "platforms": [
                                "macos"
                            ],
                            "when": "$recording | map:{true:false, else:true}"
                        },
                        {
                            "column": [
                                {
                                    "cell": "Microphone",
                                    "leading": "mic",
                                    "trailing": {
                                        "field": "Microphone",
                                        "type": "toggle",
                                        "bind": "$mic"
                                    }
                                },
                                {
                                    "cell": "What your Mac plays",
                                    "leading": "speaker.wave.2",
                                    "trailing": {
                                        "field": "What your Mac plays",
                                        "type": "toggle",
                                        "bind": "$system_audio"
                                    }
                                }
                            ],
                            "style": "inset",
                            "platforms": [
                                "macos"
                            ],
                            "when": "$recording | map:{true:false, else:true}"
                        },
                        {
                            "button": "Stop Recording",
                            "icon": "stop.circle",
                            "on": "stop",
                            "style": "destructive",
                            "size": "l",
                            "grow": true,
                            "platforms": [
                                "macos"
                            ],
                            "when": "$recording"
                        },
                        {
                            "button": "Camera Bubble",
                            "icon": "person.crop.circle",
                            "on": "camera",
                            "style": "secondary",
                            "grow": true,
                            "platforms": [
                                "macos"
                            ]
                        },
                        {
                            "player": "$clip",
                            "height": "l",
                            "when": "$clip"
                        },
                        {
                            "row": [
                                {
                                    "text": "$seconds | duration:'clock'",
                                    "size": "s",
                                    "emphasis": "subtle",
                                    "grow": true
                                },
                                {
                                    "button": "Share\u2026",
                                    "icon": "square.and.arrow.up",
                                    "on": "share_clip",
                                    "style": "secondary"
                                },
                                {
                                    "button": "Upload",
                                    "icon": "icloud.and.arrow.up",
                                    "on": "upload",
                                    "disabled": "$running.upload"
                                }
                            ],
                            "align": "center",
                            "platforms": [
                                "macos"
                            ],
                            "when": "$clip"
                        },
                        {
                            "list": "$clips",
                            "limit": 10,
                            "item": {
                                "cell": "$item.at | ago",
                                "subtitle": "$item.seconds | duration:'clock'",
                                "leading": "film",
                                "accessory": "none",
                                "trailing": {
                                    "button": "Copy link",
                                    "icon": "link",
                                    "icon_only": true,
                                    "on": "copy",
                                    "args": {
                                        "url": "$item.url"
                                    }
                                }
                            },
                            "when": "$clips"
                        }
                    ],
                    "gap": "m"
                }
            },
            {
                "id": "bubble",
                "layout": {
                    "player": "camera",
                    "shape": "circle",
                    "platforms": [
                        "macos"
                    ]
                }
            }
        ],
        "actions": {
            "record": {
                "args": {
                    "target": "text"
                },
                "steps": [
                    {
                        "screen.record.start": {
                            "target": "$args.target",
                            "sound": "$mic",
                            "system_audio": "$system_audio",
                            "max_seconds": 1800
                        }
                    },
                    {
                        "set": {
                            "recording": true,
                            "clip": ""
                        }
                    }
                ]
            },
            "stop": {
                "steps": [
                    {
                        "set": {
                            "recording": false
                        }
                    },
                    {
                        "screen.record.stop": [],
                        "as": "rec"
                    },
                    {
                        "set": {
                            "clip": "$rec.path",
                            "seconds": "$rec.seconds"
                        }
                    }
                ]
            },
            "camera": {
                "steps": [
                    {
                        "pop_out": "toggle"
                    }
                ]
            },
            "share_clip": {
                "steps": [
                    {
                        "share": {
                            "file": "$clip"
                        }
                    }
                ]
            },
            "upload": {
                "timeout": 1800,
                "steps": [
                    {
                        "files.save": {
                            "data": "$clip",
                            "to": "$settings.dest",
                            "name": "recording-{$now}.mp4"
                        },
                        "as": "saved"
                    },
                    {
                        "push": {
                            "clips": {
                                "url": "$saved.url",
                                "seconds": "$seconds",
                                "at": "$now"
                            }
                        },
                        "max": 30
                    },
                    {
                        "clipboard.write": {
                            "text": "$saved.url"
                        }
                    },
                    {
                        "set": {
                            "clip": "",
                            "seconds": 0
                        }
                    }
                ]
            },
            "copy": {
                "args": {
                    "url": "text"
                },
                "steps": [
                    {
                        "clipboard.write": {
                            "text": "$args.url"
                        }
                    }
                ]
            }
        },
        "views": {
            "menubar": {
                "icon": "record.circle",
                "label": "{$clips | count} recordings",
                "card": "main"
            },
            "floating": {
                "card": "bubble",
                "chrome": "none",
                "pin": true
            }
        }
    },
    "app_json": "{\n  \"schema\": \"tailapps/v0\",\n  \"app\": \"recorder\",\n  \"name\": \"Recorder\",\n  \"description\": \"Record your screen, a window or an area, with your microphone, what your Mac plays and a round camera bubble. Watch it, then share it or upload it to your own bucket and copy the link.\",\n  \"icon\": \"record.circle\",\n  \"permissions\": [\n    \"screen.record\",\n    \"mic.record\",\n    \"camera\",\n    \"displays.read\",\n    \"windows.read\",\n    \"share\",\n    \"files.write:dest\",\n    \"clipboard.write\"\n  ],\n  \"settings\": {\n    \"dest\": {\n      \"type\": \"storage\",\n      \"label\": \"Upload recordings to\",\n      \"allow\": [\n        \"s3\"\n      ]\n    }\n  },\n  \"sources\": {\n    \"displays\": {\n      \"system\": \"displays\",\n      \"platforms\": [\n        \"macos\"\n      ]\n    },\n    \"windows\": {\n      \"system\": \"windows\",\n      \"every\": 5,\n      \"platforms\": [\n        \"macos\"\n      ]\n    }\n  },\n  \"state\": {\n    \"recording\": {\n      \"type\": \"bool\",\n      \"default\": false\n    },\n    \"mic\": {\n      \"type\": \"bool\",\n      \"default\": true\n    },\n    \"system_audio\": {\n      \"type\": \"bool\",\n      \"default\": false\n    },\n    \"clip\": {\n      \"type\": \"text\",\n      \"default\": \"\"\n    },\n    \"seconds\": {\n      \"type\": \"number\",\n      \"default\": 0\n    },\n    \"clips\": {\n      \"type\": \"list\",\n      \"default\": []\n    }\n  },\n  \"cards\": [\n    {\n      \"id\": \"main\",\n      \"layout\": {\n        \"column\": [\n          {\n            \"grid\": [\n              {\n                \"menu\": \"Display\",\n                \"icon\": \"display\",\n                \"layout\": \"stacked\",\n                \"items\": \"$displays\",\n                \"item\": {\n                  \"label\": \"$item.name\",\n                  \"on\": \"record\",\n                  \"args\": {\n                    \"target\": \"$item.id\"\n                  }\n                }\n              },\n              {\n                \"menu\": \"Window\",\n                \"icon\": \"macwindow\",\n                \"layout\": \"stacked\",\n                \"items\": \"$windows\",\n                \"item\": {\n                  \"label\": \"$item.app\",\n                  \"on\": \"record\",\n                  \"args\": {\n                    \"target\": \"$item.id\"\n                  }\n                }\n              },\n              {\n                \"button\": \"Area\",\n                \"icon\": \"rectangle.dashed\",\n                \"layout\": \"stacked\",\n                \"on\": \"record\",\n                \"args\": {\n                  \"target\": \"area\"\n                }\n              },\n              {\n                \"button\": \"Choose\u2026\",\n                \"icon\": \"rectangle.on.rectangle\",\n                \"layout\": \"stacked\",\n                \"on\": \"record\",\n                \"args\": {\n                  \"target\": \"pick\"\n                }\n              }\n            ],\n            \"columns\": {\n              \"default\": 2\n            },\n            \"gap\": \"s\",\n            \"platforms\": [\n              \"macos\"\n            ],\n            \"when\": \"$recording | map:{true:false, else:true}\"\n          },\n          {\n            \"column\": [\n              {\n                \"cell\": \"Microphone\",\n                \"leading\": \"mic\",\n                \"trailing\": {\n                  \"field\": \"Microphone\",\n                  \"type\": \"toggle\",\n                  \"bind\": \"$mic\"\n                }\n              },\n              {\n                \"cell\": \"What your Mac plays\",\n                \"leading\": \"speaker.wave.2\",\n                \"trailing\": {\n                  \"field\": \"What your Mac plays\",\n                  \"type\": \"toggle\",\n                  \"bind\": \"$system_audio\"\n                }\n              }\n            ],\n            \"style\": \"inset\",\n            \"platforms\": [\n              \"macos\"\n            ],\n            \"when\": \"$recording | map:{true:false, else:true}\"\n          },\n          {\n            \"button\": \"Stop Recording\",\n            \"icon\": \"stop.circle\",\n            \"on\": \"stop\",\n            \"style\": \"destructive\",\n            \"size\": \"l\",\n            \"grow\": true,\n            \"platforms\": [\n              \"macos\"\n            ],\n            \"when\": \"$recording\"\n          },\n          {\n            \"button\": \"Camera Bubble\",\n            \"icon\": \"person.crop.circle\",\n            \"on\": \"camera\",\n            \"style\": \"secondary\",\n            \"grow\": true,\n            \"platforms\": [\n              \"macos\"\n            ]\n          },\n          {\n            \"player\": \"$clip\",\n            \"height\": \"l\",\n            \"when\": \"$clip\"\n          },\n          {\n            \"row\": [\n              {\n                \"text\": \"$seconds | duration:'clock'\",\n                \"size\": \"s\",\n                \"emphasis\": \"subtle\",\n                \"grow\": true\n              },\n              {\n                \"button\": \"Share\u2026\",\n                \"icon\": \"square.and.arrow.up\",\n                \"on\": \"share_clip\",\n                \"style\": \"secondary\"\n              },\n              {\n                \"button\": \"Upload\",\n                \"icon\": \"icloud.and.arrow.up\",\n                \"on\": \"upload\",\n                \"disabled\": \"$running.upload\"\n              }\n            ],\n            \"align\": \"center\",\n            \"platforms\": [\n              \"macos\"\n            ],\n            \"when\": \"$clip\"\n          },\n          {\n            \"list\": \"$clips\",\n            \"limit\": 10,\n            \"item\": {\n              \"cell\": \"$item.at | ago\",\n              \"subtitle\": \"$item.seconds | duration:'clock'\",\n              \"leading\": \"film\",\n              \"accessory\": \"none\",\n              \"trailing\": {\n                \"button\": \"Copy link\",\n                \"icon\": \"link\",\n                \"icon_only\": true,\n                \"on\": \"copy\",\n                \"args\": {\n                  \"url\": \"$item.url\"\n                }\n              }\n            },\n            \"when\": \"$clips\"\n          }\n        ],\n        \"gap\": \"m\"\n      }\n    },\n    {\n      \"id\": \"bubble\",\n      \"layout\": {\n        \"player\": \"camera\",\n        \"shape\": \"circle\",\n        \"platforms\": [\n          \"macos\"\n        ]\n      }\n    }\n  ],\n  \"actions\": {\n    \"record\": {\n      \"args\": {\n        \"target\": \"text\"\n      },\n      \"steps\": [\n        {\n          \"screen.record.start\": {\n            \"target\": \"$args.target\",\n            \"sound\": \"$mic\",\n            \"system_audio\": \"$system_audio\",\n            \"max_seconds\": 1800\n          }\n        },\n        {\n          \"set\": {\n            \"recording\": true,\n            \"clip\": \"\"\n          }\n        }\n      ]\n    },\n    \"stop\": {\n      \"steps\": [\n        {\n          \"set\": {\n            \"recording\": false\n          }\n        },\n        {\n          \"screen.record.stop\": {},\n          \"as\": \"rec\"\n        },\n        {\n          \"set\": {\n            \"clip\": \"$rec.path\",\n            \"seconds\": \"$rec.seconds\"\n          }\n        }\n      ]\n    },\n    \"camera\": {\n      \"steps\": [\n        {\n          \"pop_out\": \"toggle\"\n        }\n      ]\n    },\n    \"share_clip\": {\n      \"steps\": [\n        {\n          \"share\": {\n            \"file\": \"$clip\"\n          }\n        }\n      ]\n    },\n    \"upload\": {\n      \"timeout\": 1800,\n      \"steps\": [\n        {\n          \"files.save\": {\n            \"data\": \"$clip\",\n            \"to\": \"$settings.dest\",\n            \"name\": \"recording-{$now}.mp4\"\n          },\n          \"as\": \"saved\"\n        },\n        {\n          \"push\": {\n            \"clips\": {\n              \"url\": \"$saved.url\",\n              \"seconds\": \"$seconds\",\n              \"at\": \"$now\"\n            }\n          },\n          \"max\": 30\n        },\n        {\n          \"clipboard.write\": {\n            \"text\": \"$saved.url\"\n          }\n        },\n        {\n          \"set\": {\n            \"clip\": \"\",\n            \"seconds\": 0\n          }\n        }\n      ]\n    },\n    \"copy\": {\n      \"args\": {\n        \"url\": \"text\"\n      },\n      \"steps\": [\n        {\n          \"clipboard.write\": {\n            \"text\": \"$args.url\"\n          }\n        }\n      ]\n    }\n  },\n  \"views\": {\n    \"menubar\": {\n      \"icon\": \"record.circle\",\n      \"label\": \"{$clips | count} recordings\",\n      \"card\": \"main\"\n    },\n    \"floating\": {\n      \"card\": \"bubble\",\n      \"chrome\": \"none\",\n      \"pin\": true\n    }\n  }\n}\n",
    "files": []
}