Agent skill · Data & Analytics

bknd-custom-endpoint

Use when creating custom API endpoints in Bknd. Covers HTTP triggers with Flows, plugin routes via onServerInit, request/response handling, sync vs async modes, accessing request data, and returning custom responses.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill bknd-custom-endpoint --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 14 KB
Bundled scripts: none
Path: skills/api/bknd-custom-endpoint/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Custom Endpoint Create custom API endpoints beyond Bknd's auto-generated CRUD routes. ## Prerequisites - Running Bknd instance - Basic understanding of HTTP methods and REST APIs - Familiarity with TypeScript/JavaScript ## When to Use UI Mode Custom endpoints require code configuration. No UI approach available. ## When to Use Code Mode - Creating webhooks for external services - Building custom business logic endpoints - Adding endpoints that combine multiple operations - Integrating with third-party APIs - Creating public endpoints without entity CRUD ## Two Approaches Bknd offers two ways to create custom endpoints: | Approach | Best For | Complexity | |----------|----------|------------| | **Flows + HTTP Triggers** | Business logic, webhooks, multi-step processes | Medium | | **Plugin Routes** | Simple endpoints, middleware, direct Hono access | Low | ## Approach 1: Flows with HTTP Triggers ### Step 1: Create a Basic Flow Endpoint ```typescript import { App, Flow, HttpTrigger, LogTask } from "bknd"; // Define a flow with tasks const helloFlow = new Flow("hello-endpoint", [ new LogTask("log", { message: "Hello endpoint called!" }), ]); // Attach HTTP trigger helloFlow.setTrigg

What's inside
Steps it walks through
  1. Prerequisites
  2. When to Use UI Mode
  3. When to Use Code Mode
  4. Two Approaches
  5. Approach 1: Flows with HTTP Triggers
  6. Step 1: Create a Basic Flow Endpoint
  7. Step 2: Create Endpoint with Response
  8. Step 3: Handle POST with Request Body
  9. Step 4: Sync vs Async Mode
  10. Step 5: Multi-Task Flow with Connections
  11. HTTP Trigger Options Reference
  12. Approach 2: Plugin Routes (Direct Hono)
  13. Step 1: Create Plugin with Routes
  14. Step 2: Access App Context in Plugin Routes
Ships with 1 file
  • metadata.json
Commands it runs
curl http://localhost:7654/api/custom/hello
curl -X POST http://localhost:7654/api/custom/process \
List all registered routes including custom ones
bknd debug routes
More from claude-skill-registry
All skills →
About this skill
What does the bknd-custom-endpoint skill do?

Use when creating custom API endpoints in Bknd. Covers HTTP triggers with Flows, plugin routes via onServerInit, request/response handling, sync vs async modes, accessing request data, and returning custom responses.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill bknd-custom-endpoint --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going