cloudflare-workers-hono-angular-saas-cursorrules-prompt-file

cloudflare-workers-hono-angular-saas-cursorrules-prompt-file is a cursor rule for coding agents from PatrickJS/awesome-cursorrules. It costs 1,335 tokens per session, scanned A, original, CC0-1.0.

A set of coding instructions for building full-stack SaaS applications: online software services with user accounts and paid features. It targets Cloudflare Workers for running backend code, Hono for web APIs, and Angular for the user interface.

In plain words
What is it for?
Use it when creating SaaS APIs and web screens, authentication, payments, background jobs, email, databases, analytics, error tracking, and browser tests.
Why use it?
It keeps a project using this particular technology stack and its typing, validation, error handling, testing, and monitoring practices consistent.

Cursor rule

About the project

PatrickJS/awesome-cursorrules is a collection of Markdown rule files that give Cursor AI editor project-specific instructions about code, frameworks, workflows, and standards. Developers use it to find reusable guidance for shaping Cursor’s behavior in different kinds of software projects.

PatrickJS/awesome-cursorrules · 40,726 stars · on GitHub

Install

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.

agentmods
npx agentmods add rules/patrickjs/awesome-cursorrules/cloudflare-workers-hono-angular-saas-cursorrules-prompt-file
Clone the repo
git clone --depth 1 https://github.com/PatrickJS/awesome-cursorrules

Wrote 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.

agentmods badge for cloudflare-workers-hono-angular-saas-cursorrules-prompt-file

README.md
[![agentmods](https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/cloudflare-workers-hono-angular-saas-cursorrules-prompt-file.svg)](https://agentmods.dev/rules/patrickjs/awesome-cursorrules/cloudflare-workers-hono-angular-saas-cursorrules-prompt-file)
Your own site
<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/cloudflare-workers-hono-angular-saas-cursorrules-prompt-file"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/cloudflare-workers-hono-angular-saas-cursorrules-prompt-file.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,335 This file is loaded in full into every session.
When invoked 1,335 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.01335 $0.01335
Opus 5 $0.00668 $0.00668
Sonnet 5 $0.00267 $0.00267
Haiku 4.5 $0.00134 $0.00134

Measured 5d ago against content hash 1722ee56187e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cloudflare-workers-hono-angular-saas-cursorrules-prompt-file 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 5d 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.

npx wrangler deploy && curl -sX POST \
rules/cloudflare-workers-hono-angular-saas-cursorrules-prompt-file.mdc · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloudflare Workers + Hono + Angular SaaS

Full-stack SaaS on Cloudflare Workers with Hono API, Angular frontend, and enterprise integrations.

Stack

CF Workers+Hono v4.12+ | Angular 21+Ionic 8+PrimeNG 21 | D1/Neon | Drizzle v1 | Zod | Clerk Core 3 | Stripe | Inngest v4 | Resend | Bun 1.3 | Playwright v1.59+ | Vitest | ESLint+Prettier | PostHog | Sentry

TypeScript

  • Strict mode, never any (use unknown), prefer interface over type
  • readonly when not reassigned, undefined over null
  • Zod as source of truth for validation
  • ESLint flat config (eslint.config.ts) + typescript-eslint + Prettier

Hono API

  • Inline handlers for RPC type inference (never separate controller files)
  • Method chaining: app.use().get().post() preserves types
  • hc<AppType>(BASE_URL) for typed client
  • @hono/zod-validator on ALL request bodies
  • app.onError() + app.notFound() centralized
  • Split large apps: app.route('/path', subApp)
  • Error envelope: { error: string, code?: string, details?: unknown }
  • createFactory<{ Bindings: Env }>() for reusable middleware chains
  • GET /health returns { status, version, timestamp }

Angular

  • Standalone only (no NgModules), Angular 21 zoneless by default
  • Signals stable: signal(), computed(), effect(), linkedSignal(), resource()
  • HttpResource for data fetching
  • Control flow: @if/@for/@switch/@defer (not *ngIf/*ngFor)
  • kebab-case files, one component per file, providedIn: 'root'
  • PrimeNG for UI components

Drizzle v1

  • sqliteTable for D1, plural snake_case tables
  • $inferSelect/$inferInsert for types
  • createInsertSchema/createSelectSchema from drizzle-orm/zod
  • Batch API (not BEGIN — D1 doesn't support transactions)
  • Prepared statements for repeated queries

CF Workers

  • CPU limit: 10ms free / 30s paid
  • ctx.waitUntil() for async post-response work
  • ctx.passThroughOnException() for graceful degradation
  • Bindings typed via Env interface
  • D1 global read replication for latency reduction
  • Workers Builds for native CI/CD (preview URLs per branch)

Read the full file on GitHub · 118 lines

Changes

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.

  1. 5d ago First seen · 118 lines · 0 tokens per session scan A 1722ee56187e

Subscribe to this mod's changes

cloudflare-workers-hono-angular-saas-cursorrules-prompt-file is a cursor rule published in the GitHub repository PatrickJS/awesome-cursorrules (40,726 stars, last pushed 3mo ago), licensed CC0-1.0. It adds 1,335 tokens to every session, about $0.0067 per session on Opus 5. 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-30.