{
    "tailapp": 2,
    "manifest": {
        "format": 2,
        "app_id": "encoder",
        "name": "Encode & Decode",
        "version": 1,
        "schema": "tailapps/v0",
        "exported_at": 1795564591,
        "from": "gallery",
        "connections": [],
        "files": {
            "app.json": "7935e4603836bfa04118af4586a2f3423118d2670f8483f9d07e7255968dde3f"
        },
        "signature": "XODXMc/RIc7hdQ/MaT3vnx2wvmYfnxFnISsJ0lP7iggWWmiUjw672t3UV0nwfEGiIuLschxaQAjHuQzMKa2mBQ==",
        "key_id": "gallery-1"
    },
    "app": {
        "schema": "tailapps/v0",
        "app": "encoder",
        "name": "Encode & Decode",
        "description": "Paste text to see it as Base64, URL-safe Base64, hex and percent-encoding, decode any of those back, or get its SHA-256, SHA-1, MD5 and SHA-512 hashes. Everything runs on this device.",
        "icon": "chevron.left.forwardslash.chevron.right",
        "version": 1,
        "permissions": [
            "clipboard.write"
        ],
        "state": {
            "mode": {
                "type": "text",
                "default": "encode"
            },
            "input": {
                "type": "text",
                "default": "Hello, TailApps!"
            }
        },
        "actions": {
            "copy": {
                "args": {
                    "text": "text"
                },
                "steps": [
                    {
                        "clipboard.write": {
                            "text": "$args.text"
                        }
                    }
                ]
            },
            "clear": {
                "steps": [
                    {
                        "set": {
                            "input": ""
                        }
                    }
                ]
            }
        },
        "cards": [
            {
                "id": "main",
                "layout": {
                    "column": [
                        {
                            "field": "Mode",
                            "type": "segmented",
                            "bind": "$mode",
                            "options": [
                                {
                                    "label": "Encode",
                                    "value": "encode",
                                    "icon": "lock"
                                },
                                {
                                    "label": "Decode",
                                    "value": "decode",
                                    "icon": "lock.open"
                                },
                                {
                                    "label": "Hash",
                                    "value": "hash",
                                    "icon": "number"
                                }
                            ]
                        },
                        {
                            "field": "Input",
                            "type": "textarea",
                            "bind": "$input",
                            "placeholder": "Type or paste text"
                        },
                        {
                            "column": [
                                {
                                    "column": [
                                        {
                                            "cell": "Base64",
                                            "subtitle": "$input | encode:'base64'",
                                            "leading": "textformat",
                                            "trailing": {
                                                "button": "Copy Base64",
                                                "icon": "doc.on.doc",
                                                "icon_only": true,
                                                "style": "plain",
                                                "on": "copy",
                                                "args": {
                                                    "text": "$input | encode:'base64'"
                                                }
                                            }
                                        },
                                        {
                                            "cell": "Base64 URL",
                                            "subtitle": "$input | encode:'base64url'",
                                            "leading": "link",
                                            "trailing": {
                                                "button": "Copy Base64 URL",
                                                "icon": "doc.on.doc",
                                                "icon_only": true,
                                                "style": "plain",
                                                "on": "copy",
                                                "args": {
                                                    "text": "$input | encode:'base64url'"
                                                }
                                            }
                                        },
                                        {
                                            "cell": "Hex",
                                            "subtitle": "$input | encode:'hex'",
                                            "leading": "number.square",
                                            "trailing": {
                                                "button": "Copy Hex",
                                                "icon": "doc.on.doc",
                                                "icon_only": true,
                                                "style": "plain",
                                                "on": "copy",
                                                "args": {
                                                    "text": "$input | encode:'hex'"
                                                }
                                            }
                                        },
                                        {
                                            "cell": "URL",
                                            "subtitle": "$input | url",
                                            "leading": "percent",
                                            "trailing": {
                                                "button": "Copy URL",
                                                "icon": "doc.on.doc",
                                                "icon_only": true,
                                                "style": "plain",
                                                "on": "copy",
                                                "args": {
                                                    "text": "$input | url"
                                                }
                                            }
                                        }
                                    ],
                                    "style": "inset",
                                    "when": "$mode | map:{encode:true, else:false}"
                                },
                                {
                                    "column": [
                                        {
                                            "cell": "From Base64",
                                            "subtitle": "$input | decode:'base64' | default:'Not valid Base64'",
                                            "leading": "textformat",
                                            "trailing": {
                                                "button": "Copy From Base64",
                                                "icon": "doc.on.doc",
                                                "icon_only": true,
                                                "style": "plain",
                                                "on": "copy",
                                                "args": {
                                                    "text": "$input | decode:'base64'"
                                                },
                                                "disabled": "$input | decode:'base64' | count | map:{0:true, else:false}"
                                            },
                                            "status": "$input | decode:'base64' | count | tone:{bad:'=0', else:'good'}"
                                        },
                                        {
                                            "cell": "From hex",
                                            "subtitle": "$input | decode:'hex' | default:'Not valid hex'",
                                            "leading": "number.square",
                                            "trailing": {
                                                "button": "Copy From hex",
                                                "icon": "doc.on.doc",
                                                "icon_only": true,
                                                "style": "plain",
                                                "on": "copy",
                                                "args": {
                                                    "text": "$input | decode:'hex'"
                                                },
                                                "disabled": "$input | decode:'hex' | count | map:{0:true, else:false}"
                                            },
                                            "status": "$input | decode:'hex' | count | tone:{bad:'=0', else:'good'}"
                                        },
                                        {
                                            "cell": "From URL",
                                            "subtitle": "$input | decode:'url' | default:'Not valid percent-encoding'",
                                            "leading": "percent",
                                            "trailing": {
                                                "button": "Copy From URL",
                                                "icon": "doc.on.doc",
                                                "icon_only": true,
                                                "style": "plain",
                                                "on": "copy",
                                                "args": {
                                                    "text": "$input | decode:'url'"
                                                },
                                                "disabled": "$input | decode:'url' | count | map:{0:true, else:false}"
                                            },
                                            "status": "$input | decode:'url' | count | tone:{bad:'=0', else:'good'}"
                                        }
                                    ],
                                    "style": "inset",
                                    "when": "$mode | map:{decode:true, else:false}"
                                },
                                {
                                    "column": [
                                        {
                                            "cell": "SHA-256",
                                            "subtitle": "$input | hash:'sha256'",
                                            "leading": "checkmark.seal",
                                            "trailing": {
                                                "button": "Copy SHA-256",
                                                "icon": "doc.on.doc",
                                                "icon_only": true,
                                                "style": "plain",
                                                "on": "copy",
                                                "args": {
                                                    "text": "$input | hash:'sha256'"
                                                }
                                            }
                                        },
                                        {
                                            "cell": "SHA-1",
                                            "subtitle": "$input | hash:'sha1'",
                                            "leading": "seal",
                                            "trailing": {
                                                "button": "Copy SHA-1",
                                                "icon": "doc.on.doc",
                                                "icon_only": true,
                                                "style": "plain",
                                                "on": "copy",
                                                "args": {
                                                    "text": "$input | hash:'sha1'"
                                                }
                                            }
                                        },
                                        {
                                            "cell": "MD5",
                                            "subtitle": "$input | hash:'md5'",
                                            "leading": "seal",
                                            "trailing": {
                                                "button": "Copy MD5",
                                                "icon": "doc.on.doc",
                                                "icon_only": true,
                                                "style": "plain",
                                                "on": "copy",
                                                "args": {
                                                    "text": "$input | hash:'md5'"
                                                }
                                            }
                                        },
                                        {
                                            "cell": "SHA-512",
                                            "subtitle": "$input | hash:'sha512'",
                                            "leading": "checkmark.seal",
                                            "trailing": {
                                                "button": "Copy SHA-512",
                                                "icon": "doc.on.doc",
                                                "icon_only": true,
                                                "style": "plain",
                                                "on": "copy",
                                                "args": {
                                                    "text": "$input | hash:'sha512'"
                                                }
                                            }
                                        }
                                    ],
                                    "style": "inset",
                                    "when": "$mode | map:{hash:true, else:false}"
                                }
                            ],
                            "gap": "m",
                            "when": "$input"
                        },
                        {
                            "row": [
                                {
                                    "text": "{$input | count} characters",
                                    "size": "s",
                                    "emphasis": "subtle"
                                },
                                {
                                    "spacer": true
                                },
                                {
                                    "button": "Clear",
                                    "icon": "xmark.circle",
                                    "style": "secondary",
                                    "size": "s",
                                    "on": "clear",
                                    "when": "$input"
                                }
                            ],
                            "align": "center"
                        }
                    ],
                    "gap": "m"
                }
            }
        ],
        "views": {
            "menubar": {
                "icon": "chevron.left.forwardslash.chevron.right",
                "card": "main"
            },
            "floating": {
                "card": "main",
                "width": "default"
            }
        }
    },
    "app_json": "{\n  \"schema\": \"tailapps/v0\",\n  \"app\": \"encoder\",\n  \"name\": \"Encode & Decode\",\n  \"description\": \"Paste text to see it as Base64, URL-safe Base64, hex and percent-encoding, decode any of those back, or get its SHA-256, SHA-1, MD5 and SHA-512 hashes. Everything runs on this device.\",\n  \"icon\": \"chevron.left.forwardslash.chevron.right\",\n  \"version\": 1,\n  \"permissions\": [\"clipboard.write\"],\n  \"state\": { \"mode\": { \"type\": \"text\", \"default\": \"encode\" }, \"input\": { \"type\": \"text\", \"default\": \"Hello, TailApps!\" } },\n  \"actions\": {\n    \"copy\": { \"args\": { \"text\": \"text\" }, \"steps\": [{ \"clipboard.write\": { \"text\": \"$args.text\" } }] },\n    \"clear\": { \"steps\": [{ \"set\": { \"input\": \"\" } }] }\n  },\n  \"cards\": [\n    {\n      \"id\": \"main\",\n      \"layout\": {\n        \"column\": [\n          {\n            \"field\": \"Mode\",\n            \"type\": \"segmented\",\n            \"bind\": \"$mode\",\n            \"options\": [\n              { \"label\": \"Encode\", \"value\": \"encode\", \"icon\": \"lock\" },\n              { \"label\": \"Decode\", \"value\": \"decode\", \"icon\": \"lock.open\" },\n              { \"label\": \"Hash\", \"value\": \"hash\", \"icon\": \"number\" }\n            ]\n          },\n          { \"field\": \"Input\", \"type\": \"textarea\", \"bind\": \"$input\", \"placeholder\": \"Type or paste text\" },\n          {\n            \"column\": [\n              {\n                \"column\": [\n                  {\n                    \"cell\": \"Base64\",\n                    \"subtitle\": \"$input | encode:'base64'\",\n                    \"leading\": \"textformat\",\n                    \"trailing\": {\n                      \"button\": \"Copy Base64\",\n                      \"icon\": \"doc.on.doc\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\",\n                      \"on\": \"copy\",\n                      \"args\": { \"text\": \"$input | encode:'base64'\" }\n                    }\n                  },\n                  {\n                    \"cell\": \"Base64 URL\",\n                    \"subtitle\": \"$input | encode:'base64url'\",\n                    \"leading\": \"link\",\n                    \"trailing\": {\n                      \"button\": \"Copy Base64 URL\",\n                      \"icon\": \"doc.on.doc\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\",\n                      \"on\": \"copy\",\n                      \"args\": { \"text\": \"$input | encode:'base64url'\" }\n                    }\n                  },\n                  {\n                    \"cell\": \"Hex\",\n                    \"subtitle\": \"$input | encode:'hex'\",\n                    \"leading\": \"number.square\",\n                    \"trailing\": {\n                      \"button\": \"Copy Hex\",\n                      \"icon\": \"doc.on.doc\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\",\n                      \"on\": \"copy\",\n                      \"args\": { \"text\": \"$input | encode:'hex'\" }\n                    }\n                  },\n                  {\n                    \"cell\": \"URL\",\n                    \"subtitle\": \"$input | url\",\n                    \"leading\": \"percent\",\n                    \"trailing\": {\n                      \"button\": \"Copy URL\",\n                      \"icon\": \"doc.on.doc\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\",\n                      \"on\": \"copy\",\n                      \"args\": { \"text\": \"$input | url\" }\n                    }\n                  }\n                ],\n                \"style\": \"inset\",\n                \"when\": \"$mode | map:{encode:true, else:false}\"\n              },\n              {\n                \"column\": [\n                  {\n                    \"cell\": \"From Base64\",\n                    \"subtitle\": \"$input | decode:'base64' | default:'Not valid Base64'\",\n                    \"leading\": \"textformat\",\n                    \"trailing\": {\n                      \"button\": \"Copy From Base64\",\n                      \"icon\": \"doc.on.doc\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\",\n                      \"on\": \"copy\",\n                      \"args\": { \"text\": \"$input | decode:'base64'\" },\n                      \"disabled\": \"$input | decode:'base64' | count | map:{0:true, else:false}\"\n                    },\n                    \"status\": \"$input | decode:'base64' | count | tone:{bad:'=0', else:'good'}\"\n                  },\n                  {\n                    \"cell\": \"From hex\",\n                    \"subtitle\": \"$input | decode:'hex' | default:'Not valid hex'\",\n                    \"leading\": \"number.square\",\n                    \"trailing\": {\n                      \"button\": \"Copy From hex\",\n                      \"icon\": \"doc.on.doc\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\",\n                      \"on\": \"copy\",\n                      \"args\": { \"text\": \"$input | decode:'hex'\" },\n                      \"disabled\": \"$input | decode:'hex' | count | map:{0:true, else:false}\"\n                    },\n                    \"status\": \"$input | decode:'hex' | count | tone:{bad:'=0', else:'good'}\"\n                  },\n                  {\n                    \"cell\": \"From URL\",\n                    \"subtitle\": \"$input | decode:'url' | default:'Not valid percent-encoding'\",\n                    \"leading\": \"percent\",\n                    \"trailing\": {\n                      \"button\": \"Copy From URL\",\n                      \"icon\": \"doc.on.doc\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\",\n                      \"on\": \"copy\",\n                      \"args\": { \"text\": \"$input | decode:'url'\" },\n                      \"disabled\": \"$input | decode:'url' | count | map:{0:true, else:false}\"\n                    },\n                    \"status\": \"$input | decode:'url' | count | tone:{bad:'=0', else:'good'}\"\n                  }\n                ],\n                \"style\": \"inset\",\n                \"when\": \"$mode | map:{decode:true, else:false}\"\n              },\n              {\n                \"column\": [\n                  {\n                    \"cell\": \"SHA-256\",\n                    \"subtitle\": \"$input | hash:'sha256'\",\n                    \"leading\": \"checkmark.seal\",\n                    \"trailing\": {\n                      \"button\": \"Copy SHA-256\",\n                      \"icon\": \"doc.on.doc\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\",\n                      \"on\": \"copy\",\n                      \"args\": { \"text\": \"$input | hash:'sha256'\" }\n                    }\n                  },\n                  {\n                    \"cell\": \"SHA-1\",\n                    \"subtitle\": \"$input | hash:'sha1'\",\n                    \"leading\": \"seal\",\n                    \"trailing\": {\n                      \"button\": \"Copy SHA-1\",\n                      \"icon\": \"doc.on.doc\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\",\n                      \"on\": \"copy\",\n                      \"args\": { \"text\": \"$input | hash:'sha1'\" }\n                    }\n                  },\n                  {\n                    \"cell\": \"MD5\",\n                    \"subtitle\": \"$input | hash:'md5'\",\n                    \"leading\": \"seal\",\n                    \"trailing\": {\n                      \"button\": \"Copy MD5\",\n                      \"icon\": \"doc.on.doc\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\",\n                      \"on\": \"copy\",\n                      \"args\": { \"text\": \"$input | hash:'md5'\" }\n                    }\n                  },\n                  {\n                    \"cell\": \"SHA-512\",\n                    \"subtitle\": \"$input | hash:'sha512'\",\n                    \"leading\": \"checkmark.seal\",\n                    \"trailing\": {\n                      \"button\": \"Copy SHA-512\",\n                      \"icon\": \"doc.on.doc\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\",\n                      \"on\": \"copy\",\n                      \"args\": { \"text\": \"$input | hash:'sha512'\" }\n                    }\n                  }\n                ],\n                \"style\": \"inset\",\n                \"when\": \"$mode | map:{hash:true, else:false}\"\n              }\n            ],\n            \"gap\": \"m\",\n            \"when\": \"$input\"\n          },\n          {\n            \"row\": [\n              { \"text\": \"{$input | count} characters\", \"size\": \"s\", \"emphasis\": \"subtle\" },\n              { \"spacer\": true },\n              { \"button\": \"Clear\", \"icon\": \"xmark.circle\", \"style\": \"secondary\", \"size\": \"s\", \"on\": \"clear\", \"when\": \"$input\" }\n            ],\n            \"align\": \"center\"\n          }\n        ],\n        \"gap\": \"m\"\n      }\n    }\n  ],\n  \"views\": { \"menubar\": { \"icon\": \"chevron.left.forwardslash.chevron.right\", \"card\": \"main\" }, \"floating\": { \"card\": \"main\", \"width\": \"default\" } }\n}\n",
    "files": []
}