FlagShip: Serverless Edge-first feature management

About the demo:

A client application that makes use of feature toggle to swtich between Mooninpippa in the winter and Mooninpippa in the summer

The client application reads the flags config from Cloudflare KV. A different image is loaded based on the evaluation of the `isWinter` boolean flag

Elapsed Time: 131 performance units (3 digits of precision)

moominpippa

Debug Info:

{
    "id": 2,
    "name": "moominpippa",
    "description": "for demo",
    "createdAt": "2024-10-01 21:29:51",
    "updatedAt": "2024-10-01 21:29:51",
    "deprecated": false,
    "archived": false,
    "flags": [
        {
            "id": 2,
            "name": "isWinter",
            "kind": "boolean",
            "description": "weather toggle",
            "createdAt": "2024-10-01 21:30:45",
            "updatedAt": "2024-10-01 21:30:45",
            "deprecated": false,
            "archived": false,
            "project_id": 2,
            "configs": [
                {
                    "id": 2,
                    "environment_id": 2,
                    "flag_id": 2,
                    "value": false,
                    "createdAt": "2024-10-01 21:30:45",
                    "updatedAt": "2024-10-21 12:00:13",
                    "environment": {
                        "id": 2,
                        "name": "prod",
                        "description": "for prod use",
                        "createdAt": "2024-10-01 21:29:59",
                        "updatedAt": "2024-10-01 21:29:59",
                        "project_id": 2
                    }
                }
            ]
        },
        {
            "id": 3,
            "name": "test",
            "kind": "boolean",
            "description": "test",
            "createdAt": "2024-10-03 14:41:50",
            "updatedAt": "2024-10-03 14:41:50",
            "deprecated": false,
            "archived": false,
            "project_id": 2,
            "configs": [
                {
                    "id": 3,
                    "environment_id": 2,
                    "flag_id": 3,
                    "value": false,
                    "createdAt": "2024-10-03 14:41:50",
                    "updatedAt": "2024-10-03 14:42:01",
                    "environment": {
                        "id": 2,
                        "name": "prod",
                        "description": "for prod use",
                        "createdAt": "2024-10-01 21:29:59",
                        "updatedAt": "2024-10-01 21:29:59",
                        "project_id": 2
                    }
                },
                {
                    "id": 4,
                    "environment_id": 3,
                    "flag_id": 3,
                    "value": true,
                    "createdAt": "2024-10-03 14:41:50",
                    "updatedAt": "2024-10-03 14:41:50",
                    "environment": {
                        "id": 3,
                        "name": "dev",
                        "description": "for dev use",
                        "createdAt": "2024-10-03 14:40:46",
                        "updatedAt": "2024-10-03 14:40:46",
                        "project_id": 2
                    }
                }
            ]
        }
    ],
    "stores": null
}