What problem does it solve?
This Skill helps developers implement custom API endpoints in BKND beyond the built-in CRUD routes, enabling tailored HTTP interfaces and integration points.
Core Features & Use Cases
- Flows + HTTP Triggers: Build multi-step endpoints that process requests and respond with computed results.
- Plugin Routes (onServerInit): Expose lightweight routes via plugin architecture for direct API access.
- Request/Response Handling: Access headers, bodies, query parameters, and path segments; respond with JSON, text, or custom responses.
- Sync vs Async: Support for both immediate responses and background processing for long-running tasks.
- Use Case: Create a webhook receiver or a custom internal API endpoint to orchestrate business logic.
Quick Start
Install BKND, then choose between flows or plugin routes to implement your endpoints. For flows, define a Flow with an HttpTrigger and optionally set a responding task. For plugins, create a plugin with onServerInit to register Hono routes. Example steps: 1) Create a Flow or plugin, 2) Attach HTTP trigger or routes, 3) Run BKND and send requests to verify responses.