<config lang="json">
{
    "name": "My App",
    "type": "web-worker",
    "tags": ["basic", "template"],
    "ui": "",
    "version": "0.1.0",
    "cover": "",
    "description": "A clean, minimal app template to get started quickly.",
    "icon": "⚡",
    "api_version": "0.1.8",
    "requirements": [],
    "dependencies": [],
    "startup_config": {
        "timeout": 60,
        "wait_for_service": "default",
        "stop_after_inactive": 600
    }
}
</config>

<script lang="javascript">
async function setup() {
    await api.log("⚡ App initialized successfully!");
    
    // Your initialization code here
}

async function hello(name = "World") {
    await api.log(`Hello function called with: ${name}`);
    return `Hello, ${name}!`;
}

async function add(a, b) {
    const result = a + b;
    await api.log(`Adding ${a} + ${b} = ${result}`);
    return result;
}

async function getInfo() {
    return {
        name: "My App",
        version: "0.1.0",
        status: "running",
        timestamp: new Date().toISOString()
    };
}

// Export your functions
api.export({
    setup,
    hello,
    add,
    getInfo,
});
</script> 