The @laioutr/byos-agent package is a ready-to-use webhook handler that executes bash scripts in response to deployment events from the Cockpit. Use it as-is for simple deployments, or as a starting point for custom implementations.
The agent runs an HTTP server that:
npm install @laioutr/byos-agent
Create a byos-agent.config.ts in your project root:
import type { WebhookRunnerConfigInput } from '@laioutr/byos-agent';
export default {
baseUrl: 'https://your-server.com',
signingSecret: process.env.LAIOUTR_SIGNING_SECRET || 'whsec_...',
scripts: {
'hosting.deployment.created': './scripts/deploy.sh',
'hosting.deployment.delete': './scripts/delete.sh',
'hosting.deployment.promote': './scripts/promote.sh',
},
} satisfies WebhookRunnerConfigInput;
Start the agent:
npx @laioutr/byos-agent
The package includes complete deployment examples:
Both examples support preview deployments and promotion to production. See the examples on GitHub.
Introduction
The Bring Your Own Server (BYOS) approach allows you to host and deploy Laioutr frontends on your own infrastructure while maintaining full integration with the Laioutr Cockpit for frontend management. This gives you complete control over your deployment pipeline, runtime environment, and operational processes, while still leveraging Laioutr as the central management layer for your frontend configuration and content.
DevOps Components
DevOps components are the components that are required to successfully host a Laioutr frontend on your own infrastructure.