alpha

Gives a coding agent rules for a SaaS built on Cloudflare Workers with Hono APIs and an Angular frontend: TypeScript strictness, typed RPC, Drizzle, validation, errors and monitoring.
description: "Cursor rules for full-stack SaaS applications on Cloudflare Workers with Hono APIs, Angular frontends, typed RPC, D1/Neon, and production observability."
globs: */
alwaysApply: false
Full-stack SaaS on Cloudflare Workers with Hono API, Angular frontend, and enterprise integrations.
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
any (use unknown), prefer interface over typereadonly when not reassigned, undefined over nulleslint.config.ts) + typescript-eslint + Prettierapp.use().get().post() preserves typeshc<AppType>(BASE_URL) for typed client@hono/zod-validator on ALL request bodiesapp.onError() + app.notFound() centralizedapp.route('/path', subApp){ error: string, code?: string, details?: unknown }createFactory<{ Bindings: Env }>() for reusable middleware chainsGET /health returns { status, version, timestamp }signal(), computed(), effect(), linkedSignal(), resource()HttpResource for data fetching@if/@for/@switch/@defer (not *ngIf/*ngFor)providedIn: 'root'sqliteTable for D1, plural snake_case tables$inferSelect/$inferInsert for typescreateInsertSchema/createSelectSchema from drizzle-orm/zodBEGIN — D1 doesn't support transactions)ctx.waitUntil() for async post-response workctx.passThroughOnException() for graceful degradationEnv interfaceeventType('name', { schema: z.object({...}) }) per-event (v4 breaking)inngest/cloudflare adapter + inngest.setEnvVars(c.env) for Workersstep.run(), step.sleep(), step.waitForEvent(), step.sendEvent()step.ai.infer() offloads inference (zero compute during wait)step.realtime.publish() for durable pub/subwaitFor/toBeVisible()data-testid > role > textPROD_URL env var for production testingnpx wrangler deploy && curl -sX POST \
"https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/purge_cache" \
-H "Authorization: Bearer ${CF_API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"purge_everything":true}'
import { Hono } from 'hono';
import { secureHeaders } from 'hono/secure-headers';
import { cors } from 'hono/cors';
interface Env {
DB: D1Database;
KV: KVNamespace;
AI: Ai;
TURNSTILE_SECRET: string;
}
const app = new Hono<{ Bindings: Env }>();
app.use('*', secureHeaders());
app.use('/api/*', cors({ origin: ['https://yourdomain.com'] }));
app.get('/health', (c) => c.json({ status: 'ok', timestamp: new Date().toISOString() }));
export default app;
Public domain (CC0 1.0) · by awesome-cursorrules contributors · source · posted by @OpenSourceBuffGuy on promptparty.com


Sea turtle carrying floating film studio island
Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.
image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost
Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.
video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

Cozy Pixel Art Farm Island Village
Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.
image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape
Loading reviews…
Loading comments…