btca-bknd-repo-learn
Query bknd with btca
btca is a CLI tool for asking questions about git repos. It clones repositories, indexes them, and answers queries using AI.
Quick Setup
# Install btca and OpenCode
bun add -g btca opencode-ai
# Configure model (Big Pickle: free, fast, surprisingly good)
btca config model --provider opencode --model big-pickle
# Add bknd as a resource
btca config resources add --name bknd --type git --url https://github.com/bknd-io/bknd --branch main
Or create btca.config.jsonc:
{
"$schema": "https://btca.dev/btca.schema.json",
"model": "big-pickle",
"provider": "opencode",
"providerTimeoutMs": 300000,
"resources": [
{
"type": "git",
"name": "bknd",
"url": "https://github.com/bknd-io/bknd",
"branch": "main"
}
]
}
Core Commands
Ask a question
btca ask --resource bknd --question "How do I define a schema?"
Interactive chat
btca chat --resource bknd
Launch TUI
btca
Reference Files
For detailed information, see:
- setup.md - Full installation, configuration options, resource management, troubleshooting setup issues
- query-patterns.md - Specific query patterns for data, auth, media, adapters, and framework integration
- advanced.md - Multi-resource queries, interactive workflows, performance optimization, debugging
Query Best Practices
- Be specific - "How do I define a schema with a one-to-many relation?" vs "How do I use the data module?"
- Provide context - "I'm using Cloudflare Workers. How do I configure the database adapter?"
- Ask for examples - "Show me a complete example of setting up password authentication"
- Reference specific files - "How does src/App.ts initialize the modules?"
Learning Workflow
- Explore high-level: Ask about overall architecture and main modules
- Module deep-dive: Use
btca chat --resource bkndto focus on one module - Implementation details: Ask to see specific feature implementations
- Examples & patterns: Query the examples directory for best practices
Resources
- btca docs: https://btca.dev
- bknd docs: https://docs.bknd.io
- bknd repo: https://github.com/bknd-io/bknd
More from cameronapak/bknd-skills
bknd-login-flow
Use when implementing login and logout functionality in a Bknd application. Covers SDK authentication methods, REST API endpoints, React integration, session checking, and error handling.
16bknd-session-handling
Use when managing user sessions in a Bknd application. Covers JWT token lifecycle, session persistence, automatic renewal, checking auth state, invalidating sessions, and handling expiration.
15bknd-protect-endpoint
Use when securing specific API endpoints in Bknd. Covers protecting custom HTTP triggers, plugin routes, auth middleware for Flows, checking permissions in custom endpoints, and role-based endpoint access.
15bknd-file-upload
Use when uploading files to Bknd storage. Covers MediaApi SDK methods (upload, uploadToEntity), REST endpoints, React integration with file inputs, progress tracking with XHR, browser upload patterns, and entity field attachments.
15bknd-deploy-hosting
Use when deploying a Bknd application to production hosting. Covers Cloudflare Workers/Pages, Node.js/Bun servers, Docker, Vercel, AWS Lambda, and other platforms.
14bknd-bulk-operations
Use when performing bulk insert, update, or delete operations in Bknd. Covers createMany, updateMany, deleteMany, batch processing with progress, chunking large datasets, error handling strategies, and transaction-like patterns.
14