supabase-edge

supabase-edge is a cursor rule for Cursor from lacymorrow/paperclip-hub. It costs 0 tokens per session (1,043 once invoked), scanned A, a copy of coding-rules-for-supabase-edge-functions, MIT.

A set of coding rules for Supabase Edge Functions, which are server-side functions that run near users without managing a traditional server. It covers TypeScript, the Deno runtime, shared code, and external package imports.

In plain words
What is it for?
Use it when writing or reviewing Supabase Edge Functions in TypeScript or Deno. It helps organise shared utilities and choose valid imports for packages and runtime APIs.
Why use it?
It prevents incompatible imports and unwanted dependencies between functions. It also encourages built-in web APIs and fixed dependency versions for more predictable code.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

Good fit Use it when writing or reviewing Supabase Edge Functions in TypeScript or Deno. It helps organise shared utilities and choose valid imports for packages and runtime APIs.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/lacymorrow/paperclip-hub/supabase-edge
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.

Clone the repo
git clone --depth 1 https://github.com/lacymorrow/paperclip-hub

Made for: Cursor.

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 supabase-edge

README.md
[![agentmods](https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/supabase-edge/github.svg)](https://agentmods.dev/rules/lacymorrow/paperclip-hub/supabase-edge)
Your own site
<a href="https://agentmods.dev/rules/lacymorrow/paperclip-hub/supabase-edge"><img src="https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/supabase-edge/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.

agentmods 80×15 button for supabase-edge

Your own site · 80×15
<a href="https://agentmods.dev/rules/lacymorrow/paperclip-hub/supabase-edge"><img src="https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/supabase-edge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,043 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod 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.1 $0.00000 $0.01043
Opus 5.5 $0.00000 $0.00417
Sonnet 5.5 $0.00000 $0.00209
Haiku 4.5 $0.00000 $0.00104

Measured yesterday against content hash 33bbeb7871f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

supabase-edge scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to coding-rules-for-supabase-edge-functions — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/rules/supabase-edge.mdc · 116 lines

How it starts

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

Writing Supabase Edge Functions

You're an expert in writing TypeScript and Deno JavaScript runtime. Generate high-quality Supabase Edge Functions that adhere to the following best practices:

Guidelines

  1. Try to use Web APIs and Deno’s core APIs instead of external dependencies (eg: use fetch instead of Axios, use WebSockets API instead of node-ws)
  2. If you are reusing utility methods between Edge Functions, add them to supabase/functions/_shared and import using a relative path. Do NOT have cross dependencies between Edge Functions.
  3. Do NOT use bare specifiers when importing dependecnies. If you need to use an external dependency, make sure it's prefixed with either npm: or jsr:. For example, @supabase/supabase-js should be written as npm:@supabase/supabase-js.
  4. For external imports, always define a version. For example, npm:@express should be written as npm:[email protected].
  5. For external dependencies, importing via npm: and jsr: is preferred. Minimize the use of imports from @deno.land/x , esm.sh and @unpkg.com . If you have a package from one of those CDNs, you can replace the CDN hostname with npm: specifier.
  6. You can also use Node built-in APIs. You will need to import them using node: specifier. For example, to import Node process: `import process from "node:process". Use Node APIs when you find gaps in Deno APIs.
  7. Do NOT use import { serve } from "https://deno.land/[email protected]/http/server.ts". Instead use the built-in Deno.serve.
  8. Following environment variables (ie. secrets) are pre-populated in both local and hosted Supabase environments. Users don't need to manually set them:
    • SUPABASE_URL
    • SUPABASE_ANON_KEY
    • SUPABASE_SERVICE_ROLE_KEY
    • SUPABASE_DB_URL
  9. To set other environment variables (ie. secrets) users can put them in a env file and run the supabase secrets set --env-file path/to/env-file
  10. A single Edge Function can handle multiple routes. It is recommended to use a library like Express or Hono to handle the routes as it's easier for developer to understand and maintain. Each route must be prefixed with /function-name so they are routed correctly.
  11. File write operations are ONLY permitted on /tmp directory. You can use either Deno or Node File APIs.
  12. Use EdgeRuntime.waitUntil(promise) static method to run long-running tasks in the background without blocking response to a request. Do NOT assume it is available in the request / execution context.

Read the full file on GitHub · 116 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. yesterday First seen · 116 lines · 0 tokens per session scan A 33bbeb7871f7

Subscribe to this mod's changes

supabase-edge is a cursor rule published in the GitHub repository lacymorrow/paperclip-hub (15 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,043 tokens. A static security scan graded it A with 0 findings. It is 97% identical to coding-rules-for-supabase-edge-functions, differing in 1 line, and is treated as a copy.

Related

supabase-edge compared with cursor rules from other repositories

supabase-edge next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
supabase-edgelacymorrow/paperclip-hubCursor rule15yesterdayMITA0Cursor
update-ai-sdkgiselles-ai/giselleCursor rule560yesterdayApache-2.0A11Cursor
django-pythonPostHog/posthogCursor rule41ktodaynoneA1,586Cursor
standard-nestjs-module-hierarchyPackmindHub/packmindCursor rule323yesterdayApache-2.0A314Cursor
nestjs-best-practicesepam/ai-dial-chatCursor rule501yesterdayApache-2.0A14Cursor
python--typescript-guide-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k5mo agoCC0-1.0A226Cursor
nestjssanjeed5/awesome-cursor-rules-mdcCursor rule3.6k5mo agoCC0-1.0A2,058Cursor