- Home
- Skills
- Bankrbot
- Claude Plugins
- Bankr Project Templates
bankr-project-templates_skill
- JavaScript
70
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill bankrbot/claude-plugins --skill bankr-project-templates- SKILL.md7.8 KB
Overview
This skill provides ready-made project templates and directory structures for building Bankr integrations in JavaScript/TypeScript. It helps you scaffold bots, web services, dashboards, and CLI tools that use Bankr's multi-chain DeFi API. Use the templates to jumpstart development with sensible defaults for config, client wiring, and common features.
How this skill works
Each template is a file and folder blueprint tailored to a use case: a polling scheduler for bots, an Express/Fastify server for web services, a simple frontend + backend for dashboards, and a commander-based CLI for terminal tools. Templates include a bankr-client pattern, .env.example, TypeScript configs, and example entry points showing how to load config, call Bankr, and handle retries and shutdowns. Copy the chosen template, install dependencies, add your BANKR_API_KEY, and customize behaviors.
When to use it
- You need an automated task or monitoring agent that polls Bankr (bot).
- You want to expose Bankr functionality via REST APIs or webhooks (web-service).
- You need a simple frontend for portfolio tracking or market monitoring (dashboard).
- You want a terminal-first tool for quick trades, queries, or scripting (cli).
- You need a project skeleton with standard env, TypeScript, and client wiring.
- You want examples of graceful shutdown, retries, and async job handling.
Best practices
- Start from the template that matches your primary interaction model (bot, web-service, dashboard, cli).
- Store secrets in .env and never commit them; use .env.example as the template.
- Centralize API calls in bankr-client.ts to keep routes/commands simple and testable.
- Implement retries with backoff and graceful shutdown hooks for long-running processes.
- Add input validation, rate limiting, and CORS for public web services.
- Write small, focused commands or routes so integration testing is straightforward.
Example use cases
- A price-monitoring bot that polls ETH price every minute and sends alerts.
- A REST API that proxies Bankr trading operations for a mobile app backend.
- A lightweight dashboard showing token balances and live price updates.
- A CLI tool to run quick trades, query prices, and display job status.
- A scheduled portfolio rebalancer that runs as a service or cron-like bot.
FAQ
Use the bot template — it includes a polling loop, status streaming, retries, and graceful shutdown hooks.
How do I configure API keys and environment variables?
Copy .env.example to .env, set BANKR_API_KEY and other values, and load them via the template's config.ts.