bknd-crud-read
Use when querying and retrieving data from Bknd entities via SDK or REST API. Covers readOne, readMany, readOneBy, filtering (where clause), sorting, field selection, loading relations (with/join), and response handling.
npx skills add majiayu000/claude-skill-registry --skill bknd-crud-read-cameronapak-freedom-stack-v3-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# CRUD Read Query and retrieve data from your Bknd database using the SDK or REST API. ## Prerequisites - Bknd project running (local or deployed) - Entity exists with data (use `bknd-create-entity`, `bknd-crud-create`) - SDK configured or API endpoint known ## When to Use UI Mode - Browsing data manually - Quick lookups during development - Verifying data after operations **UI steps:** Admin Panel > Data > Select Entity > Browse/search records ## When to Use Code Mode - Application data display - Search/filter functionality - Building lists, tables, detail pages - API integrations ## Code Approach ### Step 1: Set Up SDK Client ```typescript import { Api } from "bknd"; const api = new Api({ host: "http://localhost:7654", }); // If auth required: api.updateToken("your-jwt-token"); ``` ### Step 2: Read Single Record by ID Use `readOne(entity, id, query?)`: ```typescript const { ok, data, error } = await api.data.readOne("posts", 1); if (ok) { console.log("Post:", data.title); } else { console.error("Not found or error:", error.message); } ``` ### Step 3: Read Single Record by Query Use `readOneBy(entity, query)` to find by field value: ```typescript const { data } = await api.data.re
- Prerequisites
- When to Use UI Mode
- When to Use Code Mode
- Code Approach
- Step 1: Set Up SDK Client
- Step 2: Read Single Record by ID
- Step 3: Read Single Record by Query
- Step 4: Read Multiple Records
- Step 5: Handle Response
- Filtering (Where Clause)
- Comparison Operators
- String Operators
- Array Operators
- Null Checks
Basic curl http://localhost:7654/api/data/posts With query params curl "http://localhost:7654/api/data/posts?limit=20&offset=0&sort=-created_at" With where clause curl "http://localhost:7654/api/data/posts?where=%7B%22status%22%3A%22published%22%7D" curl http://localhost:7654/api/data/posts/1 curl -X POST http://localhost:7654/api/data/posts/query \ Get user's posts curl http://localhost:7654/api/data/users/1/posts
What does the bknd-crud-read skill do?
Use when querying and retrieving data from Bknd entities via SDK or REST API. Covers readOne, readMany, readOneBy, filtering (where clause), sorting, field selection, loading relations (with/join), and response handling.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill bknd-crud-read-cameronapak-freedom-stack-v3-2 --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.
