Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/henkisdabro/cloudflare-workers-react-boilerplateWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/henkisdabro/cloudflare-workers-react-boilerplate/setup-database)<a href="https://agentmods.dev/commands/henkisdabro/cloudflare-workers-react-boilerplate/setup-database"><img src="https://agentmods.dev/badge/commands/henkisdabro/cloudflare-workers-react-boilerplate/setup-database/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/henkisdabro/cloudflare-workers-react-boilerplate/setup-database"><img src="https://agentmods.dev/badge/commands/henkisdabro/cloudflare-workers-react-boilerplate/setup-database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02696 |
| Opus 5.5 | $0.00000 | $0.01078 |
| Sonnet 5.5 | $0.00000 | $0.00539 |
| Haiku 4.5 | $0.00000 | $0.00270 |
Grade A, and why
setup-database scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
The fetch handler becomes `async fetch(request, env)`. How it starts
The opening of the file, as written. The whole thing — 319 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Database Setup Wizard
I'll set up database storage for this Worker: add the binding, regenerate types, and create starter
schema and example code you can adapt. Wrangler runs as pnpm exec wrangler ....
Step 1: Choose a store
D1 - serverless SQLite. Relational data, JOINs, transactions (via batch). Users, content,
orders, reporting. Docs: https://developers.cloudflare.com/d1/
KV - global key-value store, eventually consistent, built for many reads and few writes. Sessions, caching, feature flags, configuration. Docs: https://developers.cloudflare.com/kv/
Need per-entity strong consistency or real-time coordination (counters, rooms, rate limiters that must
be exact)? That is a Durable Object - use /add-binding. Files belong in R2, also via /add-binding.
I'll ask:
- D1 or KV?
- The resource name (D1: lowercase-with-hyphens, e.g.
my-app-db; KV binding: UPPER_SNAKE_CASE, e.g.SESSIONS). - Does the data have to stay in a region? If so, which jurisdiction:
eu,usorfedramp. This can only be set when the resource is created. - (Optional) What it is for, so the examples fit.
Before editing, I check wrangler.jsonc for an existing binding with the same name.
D1 flow
1. Add the binding
Two routes - I'll recommend the first unless a jurisdiction or location hint is needed:
Automatic provisioning. Add the binding without an ID. pnpm dev uses a local database, and the
first wrangler deploy creates the real one and writes database_id back into wrangler.jsonc
(commit that change).
"d1_databases": [{ "binding": "DB", "database_name": "my-app-db" }]
Create it now. Wrangler creates the database and updates the config itself:
pnpm exec wrangler d1 create my-app-db --binding DB --update-config
# Optional: --jurisdiction eu|us|fedramp (data localisation, fixed at creation)
# Optional: --location weur|eeur|apac|oc|wnam|enam (primary location hint)
Docs: https://developers.cloudflare.com/d1/configuration/data-location/
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · -524 lines 30a3ddd40bc4
- 3mo ago First seen · 843 lines · 0 tokens per session scan A 25d478b99a65
setup-database is a command published in the GitHub repository henkisdabro/cloudflare-workers-react-boilerplate (13 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,696 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
setup-database compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| setup-databasehenkisdabro/cloudflare-workers-react-boilerplate | Command | 13 | 1mo ago | MIT | A | 0 | Claude Code |
| d1-migrationjezweb/claude-skills | Command | 1.1k | 1mo ago | MIT | A | 11 | Claude Code |
| db-seedjezweb/claude-skills | Command | 1.1k | 1mo ago | MIT | A | 7 | Claude Code |
| d1-drizzle-schemajezweb/claude-skills | Command | 1.1k | 1mo ago | MIT | A | 11 | Claude Code |
| push-changesbartstc/vite-ts-react-template | Command | 124 | 3d ago | MIT | A | 0 | Claude Code |
| review-blocksbartstc/vite-ts-react-template | Command | 124 | 3d ago | MIT | A | 0 | Claude Code |
| triage-lessonsbartstc/vite-ts-react-template | Command | 124 | 3d ago | MIT | A | 0 | Claude Code |