[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-neon-neon-postgres-egress-optimizer":3,"mdc--xt1ez9-key":35,"related-org-neon-neon-postgres-egress-optimizer":1679,"related-repo-neon-neon-postgres-egress-optimizer":1859},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":24,"repoUrl":25,"updatedAt":26,"license":27,"forks":28,"topics":29,"repo":30,"sourceUrl":33,"mdContent":34},"neon-postgres-egress-optimizer","diagnose and fix Postgres egress costs","Diagnose and fix excessive Postgres egress (network data transfer) in a codebase. Use when a user mentions high database bills, unexpected data transfer costs, network transfer charges, egress spikes, \"why is my Neon bill so high\", \"database costs jumped\", SELECT * optimization, query overfetching, reduce Neon costs, optimize database usage, or wants to reduce data sent from their database to their application. Also use when reviewing query patterns for cost efficiency, even if the user doesn't explicitly mention egress or data transfer.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"neon","Neon","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fneon.png","neondatabase",[13,17,18,21],{"name":14,"slug":15,"type":16},"Performance","performance","tag",{"name":9,"slug":8,"type":16},{"name":19,"slug":20,"type":16},"Cost Optimization","cost-optimization",{"name":22,"slug":23,"type":16},"PostgreSQL","postgresql",81,"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fagent-skills","2026-07-27T06:07:58.159412",null,12,[],{"repoUrl":25,"stars":24,"forks":28,"topics":31,"description":32},[],"Agent Skills for Neon Severless Postgres","https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fagent-skills\u002Ftree\u002FHEAD\u002Fskills\u002Fneon-postgres-egress-optimizer","---\nname: neon-postgres-egress-optimizer\ndescription: >-\n  Diagnose and fix excessive Postgres egress (network data transfer) in a codebase.\n  Use when a user mentions high database bills, unexpected data transfer costs,\n  network transfer charges, egress spikes, \"why is my Neon bill so high\",\n  \"database costs jumped\", SELECT * optimization, query overfetching,\n  reduce Neon costs, optimize database usage, or wants to reduce data sent\n  from their database to their application. Also use when reviewing query\n  patterns for cost efficiency, even if the user doesn't explicitly mention\n  egress or data transfer.\nmetadata:\n  parent: neon\n---\n\n**FIRST**: Use the parent `neon` skill for a Neon platform overview, getting started with Neon, Neon development best practices, and more.\n\nIf the `neon` skill is not installed, fetch it from https:\u002F\u002Fneon.com\u002Fdocs\u002Fai\u002Fskills\u002Fneon\u002FSKILL.md or install it with:\n\n```bash\nnpx skills add neondatabase\u002Fagent-skills --skill neon\n```\n\n# Postgres Egress Optimizer\n\nGuide the user through diagnosing and fixing application-side query patterns that cause excessive data transfer (egress) from their Postgres database. Most high egress bills come from the application fetching more data than it uses.\n\nWork the four steps in order: **diagnose** which queries transfer the most data, **analyze** the codebase behind them, **fix** the anti-patterns, then **verify** nothing broke and the transfer actually dropped.\n\n## Step 1: Diagnose\n\nIdentify which queries transfer the most data. The primary tool is the `pg_stat_statements` extension.\n\n### Check if pg_stat_statements is available\n\n```sql\nSELECT 1 FROM pg_stat_statements LIMIT 1;\n```\n\nIf this errors, the extension needs to be created:\n\n```sql\nCREATE EXTENSION IF NOT EXISTS pg_stat_statements;\n```\n\nOn Neon the extension is available by default, but it may still need this CREATE EXTENSION step.\n\n### Handle empty stats\n\nStats are cleared when a Neon compute scales to zero and restarts. If the stats are empty or the compute recently woke up:\n\n1. Reset the stats to start a clean measurement window: `SELECT pg_stat_statements_reset();`\n2. Let the application run under representative traffic for at least an hour.\n3. Return and run the diagnostic queries below.\n\nIf the user has stats from a production database, use those. If they have no access to production stats, proceed to Step 2 and analyze the codebase directly — code-level patterns are often sufficient to identify the worst offenders.\n\n### Diagnostic queries\n\nRun these to identify the top egress contributors. Focus on queries that return many rows, return wide rows (JSONB, TEXT, BYTEA columns), or are called very frequently.\n\n**Queries returning the most total rows:**\n\n```sql\nSELECT query, calls, rows AS total_rows, rows \u002F calls AS avg_rows_per_call\nFROM pg_stat_statements\nWHERE calls > 0\nORDER BY rows DESC\nLIMIT 10;\n```\n\n**Queries returning the most rows per execution** (poorly scoped SELECTs, missing pagination):\n\n```sql\nSELECT query, calls, rows AS total_rows, rows \u002F calls AS avg_rows_per_call\nFROM pg_stat_statements\nWHERE calls > 0\nORDER BY avg_rows_per_call DESC\nLIMIT 10;\n```\n\n**Most frequently called queries** (candidates for caching):\n\n```sql\nSELECT query, calls, rows AS total_rows, rows \u002F calls AS avg_rows_per_call\nFROM pg_stat_statements\nWHERE calls > 0\nORDER BY calls DESC\nLIMIT 10;\n```\n\n**Longest running queries** (not a direct egress measure, but helps identify problem queries during a spike):\n\n```sql\nSELECT query, calls, rows AS total_rows,\n  round(total_exec_time::numeric, 2) AS total_exec_time_ms\nFROM pg_stat_statements\nWHERE calls > 0\nORDER BY total_exec_time DESC\nLIMIT 10;\n```\n\n### Interpret the results\n\nRank findings by estimated egress impact:\n\n- **High row count + wide rows** = biggest egress. A query returning 1,000 rows where each row includes a 50KB JSONB column transfers ~50MB per call.\n- **Extreme call frequency** on even small queries adds up. A query called 50,000 times\u002Fday returning 10 rows each = 500,000 rows\u002Fday.\n- **Cross-reference with the schema** to identify which columns are wide. Look for JSONB, TEXT, BYTEA, and large VARCHAR columns.\n\n## Step 2: Analyze the Codebase\n\nFor each query identified in Step 1, or for each database query in the codebase if no stats are available, check:\n\n- Does it select only the columns the response needs?\n- Does it return a bounded number of rows (LIMIT\u002Fpagination)?\n- Is it called frequently enough to benefit from caching?\n- Does it fetch raw data that gets aggregated in application code?\n- Does it use a JOIN that duplicates parent data across child rows?\n\n## Step 3: Fix\n\nApply the appropriate fix for each problem found. Below are the most common egress anti-patterns and how to fix them.\n\n### Unused columns (SELECT \\*)\n\n**Problem:** The query fetches all columns but the application only uses a few. Large columns (JSONB blobs, TEXT fields) get transferred over the wire and discarded.\n\n**Fix:** Name only the columns the response needs.\n\n**Before:**\n\n```sql\nSELECT * FROM products;\n```\n\n**After:**\n\n```sql\nSELECT id, name, price, image_urls FROM products;\n```\n\n### Missing pagination\n\n**Problem:** A list endpoint returns all rows with no LIMIT. This is an unbounded egress risk — every new row in the table increases data transfer on every request. Flag this regardless of current table size.\n\nThis is easy to miss because the application may work fine with small datasets. But at scale, an unpaginated endpoint returning 10,000 rows with even moderate column widths can transfer hundreds of megabytes per day.\n\n**Fix:** Bound the result set with `ORDER BY` plus `LIMIT`\u002F`OFFSET`.\n\n**Before:**\n\n```sql\nSELECT id, name, price FROM products;\n```\n\n**After:**\n\n```sql\nSELECT id, name, price FROM products\nORDER BY id\nLIMIT 50 OFFSET 0;\n```\n\nWhen adding pagination, check whether the consuming client already supports paginated responses. If not, pick sensible defaults and document the pagination parameters in the API.\n\n### High-frequency queries on static data\n\n**Problem:** A query is called thousands of times per day but returns data that rarely changes. Every call transfers the same rows from the database. This pattern is only visible from `pg_stat_statements` — the code itself looks normal.\n\nLook for queries with extremely high call counts relative to other queries. Common examples: configuration tables, category lists, feature flags, user role definitions.\n\n**Fix:** Add a caching layer between the application and the database so it avoids hitting the database on every request.\n\n### Application-side aggregation\n\n**Problem:** The application fetches all rows from a table and then computes aggregates (averages, counts, sums, groupings) in application code. The full dataset transfers over the wire even though the result is a small summary.\n\n**Fix:** Push the aggregation into SQL.\n\n**Before:** The application fetches entire tables and aggregates in code with loops or `.reduce()`.\n\n**After:**\n\n```sql\nSELECT p.category_id,\n       AVG(r.rating) AS avg_rating,\n       COUNT(r.id) AS review_count\nFROM reviews r\nINNER JOIN products p ON r.product_id = p.id\nGROUP BY p.category_id;\n```\n\n### JOIN duplication\n\n**Problem:** A JOIN between a wide parent table and a child table duplicates all parent columns across every child row. If a product has 200 reviews and the product row includes a 50KB JSONB column, the join sends that 50KB × 200 = ~10MB for a single request.\n\nThis is distinct from the SELECT \\* problem. Even if you select only needed columns, a JOIN still repeats the parent data for every child row. The fix is structural: avoid the join entirely.\n\n**Fix:** Split the join into two queries, one per table.\n\n**Before:**\n\n```sql\nSELECT * FROM products\nLEFT JOIN reviews ON reviews.product_id = products.id\nWHERE products.id = 1;\n```\n\n**After (two separate queries):**\n\n```sql\nSELECT id, name, price, description, image_urls FROM products WHERE id = 1;\nSELECT id, user_name, rating, body FROM reviews WHERE product_id = 1;\n```\n\nTwo queries instead of one JOIN. The product data is fetched once. The reviews are fetched once. No duplication.\n\n## Step 4: Verify\n\nAfter applying fixes:\n\n1. **Run existing tests** to confirm nothing broke.\n2. **Check the responses** — make sure the API still returns the same data shape. Column selection and pagination changes can break clients that depend on specific fields or full result sets.\n3. **Measure the improvement** — if pg_stat_statements data is available, reset it (`SELECT pg_stat_statements_reset();`), let traffic run, then re-run the diagnostic queries to compare before and after.\n\n## Neon Infrastructure as Code (`neon.ts`)\n\nThe fixes above cut **egress** (data transferred out of Postgres). The other big non-prod cost lever is **compute**, and you can codify it durably in `neon.ts` — Neon's infrastructure-as-code file (see the `neon` skill for the full reference) — so dev, preview, and CI branches stay cheap by default instead of relying on per-branch flags:\n\n```bash\nnpm i @neon\u002Fconfig\n```\n\n```typescript\n\u002F\u002F neon.ts\nimport { defineConfig } from \"@neon\u002Fconfig\u002Fv1\";\n\nexport default defineConfig({\n  branch: (branch) => {\n    if (branch.exists || branch.isDefault) return {}; \u002F\u002F don't touch prod\n    return {\n      ttl: \"7d\", \u002F\u002F ephemeral branches auto-expire instead of accruing storage\n      postgres: {\n        computeSettings: {\n          autoscalingLimitMinCu: 0.25, \u002F\u002F scale to zero when idle\n          autoscalingLimitMaxCu: 1, \u002F\u002F cap autoscaling on throwaway branches\n          suspendTimeout: \"5m\",\n        },\n      },\n    };\n  },\n});\n```\n\n```bash\nneon config apply   # apply to the current branch (neon deploy is an alias)\n```\n\nThis is complementary, not a substitute: query-pattern fixes are what actually reduce egress charges, while these settings keep non-production compute and storage from quietly inflating the same bill. Because `neon checkout` applies the policy when it creates a branch, new dev\u002Fpreview branches inherit the cheap profile automatically.\n\n## Further Reading\n\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fintroduction\u002Fnetwork-transfer.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fintroduction\u002Fcost-optimization.md\n",{"data":36,"body":38},{"name":4,"description":6,"metadata":37},{"parent":8},{"type":39,"children":40},"root",[41,63,85,134,141,146,179,186,199,206,222,227,241,246,252,257,283,288,294,299,307,358,368,411,421,464,474,527,533,538,572,578,583,611,617,622,628,638,648,656,670,678,692,698,707,712,745,752,766,773,804,809,815,831,836,845,851,860,869,885,892,947,953,962,967,976,983,1014,1022,1045,1050,1056,1061,1101,1115,1148,1173,1604,1633,1646,1652,1673],{"type":42,"tag":43,"props":44,"children":45},"element","p",{},[46,53,55,61],{"type":42,"tag":47,"props":48,"children":49},"strong",{},[50],{"type":51,"value":52},"text","FIRST",{"type":51,"value":54},": Use the parent ",{"type":42,"tag":56,"props":57,"children":59},"code",{"className":58},[],[60],{"type":51,"value":8},{"type":51,"value":62}," skill for a Neon platform overview, getting started with Neon, Neon development best practices, and more.",{"type":42,"tag":43,"props":64,"children":65},{},[66,68,73,75,83],{"type":51,"value":67},"If the ",{"type":42,"tag":56,"props":69,"children":71},{"className":70},[],[72],{"type":51,"value":8},{"type":51,"value":74}," skill is not installed, fetch it from ",{"type":42,"tag":76,"props":77,"children":81},"a",{"href":78,"rel":79},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fai\u002Fskills\u002Fneon\u002FSKILL.md",[80],"nofollow",[82],{"type":51,"value":78},{"type":51,"value":84}," or install it with:",{"type":42,"tag":86,"props":87,"children":92},"pre",{"className":88,"code":89,"language":90,"meta":91,"style":91},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npx skills add neondatabase\u002Fagent-skills --skill neon\n","bash","",[93],{"type":42,"tag":56,"props":94,"children":95},{"__ignoreMap":91},[96],{"type":42,"tag":97,"props":98,"children":101},"span",{"class":99,"line":100},"line",1,[102,108,114,119,124,129],{"type":42,"tag":97,"props":103,"children":105},{"style":104},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[106],{"type":51,"value":107},"npx",{"type":42,"tag":97,"props":109,"children":111},{"style":110},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[112],{"type":51,"value":113}," skills",{"type":42,"tag":97,"props":115,"children":116},{"style":110},[117],{"type":51,"value":118}," add",{"type":42,"tag":97,"props":120,"children":121},{"style":110},[122],{"type":51,"value":123}," neondatabase\u002Fagent-skills",{"type":42,"tag":97,"props":125,"children":126},{"style":110},[127],{"type":51,"value":128}," --skill",{"type":42,"tag":97,"props":130,"children":131},{"style":110},[132],{"type":51,"value":133}," neon\n",{"type":42,"tag":135,"props":136,"children":138},"h1",{"id":137},"postgres-egress-optimizer",[139],{"type":51,"value":140},"Postgres Egress Optimizer",{"type":42,"tag":43,"props":142,"children":143},{},[144],{"type":51,"value":145},"Guide the user through diagnosing and fixing application-side query patterns that cause excessive data transfer (egress) from their Postgres database. Most high egress bills come from the application fetching more data than it uses.",{"type":42,"tag":43,"props":147,"children":148},{},[149,151,156,158,163,165,170,172,177],{"type":51,"value":150},"Work the four steps in order: ",{"type":42,"tag":47,"props":152,"children":153},{},[154],{"type":51,"value":155},"diagnose",{"type":51,"value":157}," which queries transfer the most data, ",{"type":42,"tag":47,"props":159,"children":160},{},[161],{"type":51,"value":162},"analyze",{"type":51,"value":164}," the codebase behind them, ",{"type":42,"tag":47,"props":166,"children":167},{},[168],{"type":51,"value":169},"fix",{"type":51,"value":171}," the anti-patterns, then ",{"type":42,"tag":47,"props":173,"children":174},{},[175],{"type":51,"value":176},"verify",{"type":51,"value":178}," nothing broke and the transfer actually dropped.",{"type":42,"tag":180,"props":181,"children":183},"h2",{"id":182},"step-1-diagnose",[184],{"type":51,"value":185},"Step 1: Diagnose",{"type":42,"tag":43,"props":187,"children":188},{},[189,191,197],{"type":51,"value":190},"Identify which queries transfer the most data. The primary tool is the ",{"type":42,"tag":56,"props":192,"children":194},{"className":193},[],[195],{"type":51,"value":196},"pg_stat_statements",{"type":51,"value":198}," extension.",{"type":42,"tag":200,"props":201,"children":203},"h3",{"id":202},"check-if-pg_stat_statements-is-available",[204],{"type":51,"value":205},"Check if pg_stat_statements is available",{"type":42,"tag":86,"props":207,"children":211},{"className":208,"code":209,"language":210,"meta":91,"style":91},"language-sql shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","SELECT 1 FROM pg_stat_statements LIMIT 1;\n","sql",[212],{"type":42,"tag":56,"props":213,"children":214},{"__ignoreMap":91},[215],{"type":42,"tag":97,"props":216,"children":217},{"class":99,"line":100},[218],{"type":42,"tag":97,"props":219,"children":220},{},[221],{"type":51,"value":209},{"type":42,"tag":43,"props":223,"children":224},{},[225],{"type":51,"value":226},"If this errors, the extension needs to be created:",{"type":42,"tag":86,"props":228,"children":230},{"className":208,"code":229,"language":210,"meta":91,"style":91},"CREATE EXTENSION IF NOT EXISTS pg_stat_statements;\n",[231],{"type":42,"tag":56,"props":232,"children":233},{"__ignoreMap":91},[234],{"type":42,"tag":97,"props":235,"children":236},{"class":99,"line":100},[237],{"type":42,"tag":97,"props":238,"children":239},{},[240],{"type":51,"value":229},{"type":42,"tag":43,"props":242,"children":243},{},[244],{"type":51,"value":245},"On Neon the extension is available by default, but it may still need this CREATE EXTENSION step.",{"type":42,"tag":200,"props":247,"children":249},{"id":248},"handle-empty-stats",[250],{"type":51,"value":251},"Handle empty stats",{"type":42,"tag":43,"props":253,"children":254},{},[255],{"type":51,"value":256},"Stats are cleared when a Neon compute scales to zero and restarts. If the stats are empty or the compute recently woke up:",{"type":42,"tag":258,"props":259,"children":260},"ol",{},[261,273,278],{"type":42,"tag":262,"props":263,"children":264},"li",{},[265,267],{"type":51,"value":266},"Reset the stats to start a clean measurement window: ",{"type":42,"tag":56,"props":268,"children":270},{"className":269},[],[271],{"type":51,"value":272},"SELECT pg_stat_statements_reset();",{"type":42,"tag":262,"props":274,"children":275},{},[276],{"type":51,"value":277},"Let the application run under representative traffic for at least an hour.",{"type":42,"tag":262,"props":279,"children":280},{},[281],{"type":51,"value":282},"Return and run the diagnostic queries below.",{"type":42,"tag":43,"props":284,"children":285},{},[286],{"type":51,"value":287},"If the user has stats from a production database, use those. If they have no access to production stats, proceed to Step 2 and analyze the codebase directly — code-level patterns are often sufficient to identify the worst offenders.",{"type":42,"tag":200,"props":289,"children":291},{"id":290},"diagnostic-queries",[292],{"type":51,"value":293},"Diagnostic queries",{"type":42,"tag":43,"props":295,"children":296},{},[297],{"type":51,"value":298},"Run these to identify the top egress contributors. Focus on queries that return many rows, return wide rows (JSONB, TEXT, BYTEA columns), or are called very frequently.",{"type":42,"tag":43,"props":300,"children":301},{},[302],{"type":42,"tag":47,"props":303,"children":304},{},[305],{"type":51,"value":306},"Queries returning the most total rows:",{"type":42,"tag":86,"props":308,"children":310},{"className":208,"code":309,"language":210,"meta":91,"style":91},"SELECT query, calls, rows AS total_rows, rows \u002F calls AS avg_rows_per_call\nFROM pg_stat_statements\nWHERE calls > 0\nORDER BY rows DESC\nLIMIT 10;\n",[311],{"type":42,"tag":56,"props":312,"children":313},{"__ignoreMap":91},[314,322,331,340,349],{"type":42,"tag":97,"props":315,"children":316},{"class":99,"line":100},[317],{"type":42,"tag":97,"props":318,"children":319},{},[320],{"type":51,"value":321},"SELECT query, calls, rows AS total_rows, rows \u002F calls AS avg_rows_per_call\n",{"type":42,"tag":97,"props":323,"children":325},{"class":99,"line":324},2,[326],{"type":42,"tag":97,"props":327,"children":328},{},[329],{"type":51,"value":330},"FROM pg_stat_statements\n",{"type":42,"tag":97,"props":332,"children":334},{"class":99,"line":333},3,[335],{"type":42,"tag":97,"props":336,"children":337},{},[338],{"type":51,"value":339},"WHERE calls > 0\n",{"type":42,"tag":97,"props":341,"children":343},{"class":99,"line":342},4,[344],{"type":42,"tag":97,"props":345,"children":346},{},[347],{"type":51,"value":348},"ORDER BY rows DESC\n",{"type":42,"tag":97,"props":350,"children":352},{"class":99,"line":351},5,[353],{"type":42,"tag":97,"props":354,"children":355},{},[356],{"type":51,"value":357},"LIMIT 10;\n",{"type":42,"tag":43,"props":359,"children":360},{},[361,366],{"type":42,"tag":47,"props":362,"children":363},{},[364],{"type":51,"value":365},"Queries returning the most rows per execution",{"type":51,"value":367}," (poorly scoped SELECTs, missing pagination):",{"type":42,"tag":86,"props":369,"children":371},{"className":208,"code":370,"language":210,"meta":91,"style":91},"SELECT query, calls, rows AS total_rows, rows \u002F calls AS avg_rows_per_call\nFROM pg_stat_statements\nWHERE calls > 0\nORDER BY avg_rows_per_call DESC\nLIMIT 10;\n",[372],{"type":42,"tag":56,"props":373,"children":374},{"__ignoreMap":91},[375,382,389,396,404],{"type":42,"tag":97,"props":376,"children":377},{"class":99,"line":100},[378],{"type":42,"tag":97,"props":379,"children":380},{},[381],{"type":51,"value":321},{"type":42,"tag":97,"props":383,"children":384},{"class":99,"line":324},[385],{"type":42,"tag":97,"props":386,"children":387},{},[388],{"type":51,"value":330},{"type":42,"tag":97,"props":390,"children":391},{"class":99,"line":333},[392],{"type":42,"tag":97,"props":393,"children":394},{},[395],{"type":51,"value":339},{"type":42,"tag":97,"props":397,"children":398},{"class":99,"line":342},[399],{"type":42,"tag":97,"props":400,"children":401},{},[402],{"type":51,"value":403},"ORDER BY avg_rows_per_call DESC\n",{"type":42,"tag":97,"props":405,"children":406},{"class":99,"line":351},[407],{"type":42,"tag":97,"props":408,"children":409},{},[410],{"type":51,"value":357},{"type":42,"tag":43,"props":412,"children":413},{},[414,419],{"type":42,"tag":47,"props":415,"children":416},{},[417],{"type":51,"value":418},"Most frequently called queries",{"type":51,"value":420}," (candidates for caching):",{"type":42,"tag":86,"props":422,"children":424},{"className":208,"code":423,"language":210,"meta":91,"style":91},"SELECT query, calls, rows AS total_rows, rows \u002F calls AS avg_rows_per_call\nFROM pg_stat_statements\nWHERE calls > 0\nORDER BY calls DESC\nLIMIT 10;\n",[425],{"type":42,"tag":56,"props":426,"children":427},{"__ignoreMap":91},[428,435,442,449,457],{"type":42,"tag":97,"props":429,"children":430},{"class":99,"line":100},[431],{"type":42,"tag":97,"props":432,"children":433},{},[434],{"type":51,"value":321},{"type":42,"tag":97,"props":436,"children":437},{"class":99,"line":324},[438],{"type":42,"tag":97,"props":439,"children":440},{},[441],{"type":51,"value":330},{"type":42,"tag":97,"props":443,"children":444},{"class":99,"line":333},[445],{"type":42,"tag":97,"props":446,"children":447},{},[448],{"type":51,"value":339},{"type":42,"tag":97,"props":450,"children":451},{"class":99,"line":342},[452],{"type":42,"tag":97,"props":453,"children":454},{},[455],{"type":51,"value":456},"ORDER BY calls DESC\n",{"type":42,"tag":97,"props":458,"children":459},{"class":99,"line":351},[460],{"type":42,"tag":97,"props":461,"children":462},{},[463],{"type":51,"value":357},{"type":42,"tag":43,"props":465,"children":466},{},[467,472],{"type":42,"tag":47,"props":468,"children":469},{},[470],{"type":51,"value":471},"Longest running queries",{"type":51,"value":473}," (not a direct egress measure, but helps identify problem queries during a spike):",{"type":42,"tag":86,"props":475,"children":477},{"className":208,"code":476,"language":210,"meta":91,"style":91},"SELECT query, calls, rows AS total_rows,\n  round(total_exec_time::numeric, 2) AS total_exec_time_ms\nFROM pg_stat_statements\nWHERE calls > 0\nORDER BY total_exec_time DESC\nLIMIT 10;\n",[478],{"type":42,"tag":56,"props":479,"children":480},{"__ignoreMap":91},[481,489,497,504,511,519],{"type":42,"tag":97,"props":482,"children":483},{"class":99,"line":100},[484],{"type":42,"tag":97,"props":485,"children":486},{},[487],{"type":51,"value":488},"SELECT query, calls, rows AS total_rows,\n",{"type":42,"tag":97,"props":490,"children":491},{"class":99,"line":324},[492],{"type":42,"tag":97,"props":493,"children":494},{},[495],{"type":51,"value":496},"  round(total_exec_time::numeric, 2) AS total_exec_time_ms\n",{"type":42,"tag":97,"props":498,"children":499},{"class":99,"line":333},[500],{"type":42,"tag":97,"props":501,"children":502},{},[503],{"type":51,"value":330},{"type":42,"tag":97,"props":505,"children":506},{"class":99,"line":342},[507],{"type":42,"tag":97,"props":508,"children":509},{},[510],{"type":51,"value":339},{"type":42,"tag":97,"props":512,"children":513},{"class":99,"line":351},[514],{"type":42,"tag":97,"props":515,"children":516},{},[517],{"type":51,"value":518},"ORDER BY total_exec_time DESC\n",{"type":42,"tag":97,"props":520,"children":522},{"class":99,"line":521},6,[523],{"type":42,"tag":97,"props":524,"children":525},{},[526],{"type":51,"value":357},{"type":42,"tag":200,"props":528,"children":530},{"id":529},"interpret-the-results",[531],{"type":51,"value":532},"Interpret the results",{"type":42,"tag":43,"props":534,"children":535},{},[536],{"type":51,"value":537},"Rank findings by estimated egress impact:",{"type":42,"tag":539,"props":540,"children":541},"ul",{},[542,552,562],{"type":42,"tag":262,"props":543,"children":544},{},[545,550],{"type":42,"tag":47,"props":546,"children":547},{},[548],{"type":51,"value":549},"High row count + wide rows",{"type":51,"value":551}," = biggest egress. A query returning 1,000 rows where each row includes a 50KB JSONB column transfers ~50MB per call.",{"type":42,"tag":262,"props":553,"children":554},{},[555,560],{"type":42,"tag":47,"props":556,"children":557},{},[558],{"type":51,"value":559},"Extreme call frequency",{"type":51,"value":561}," on even small queries adds up. A query called 50,000 times\u002Fday returning 10 rows each = 500,000 rows\u002Fday.",{"type":42,"tag":262,"props":563,"children":564},{},[565,570],{"type":42,"tag":47,"props":566,"children":567},{},[568],{"type":51,"value":569},"Cross-reference with the schema",{"type":51,"value":571}," to identify which columns are wide. Look for JSONB, TEXT, BYTEA, and large VARCHAR columns.",{"type":42,"tag":180,"props":573,"children":575},{"id":574},"step-2-analyze-the-codebase",[576],{"type":51,"value":577},"Step 2: Analyze the Codebase",{"type":42,"tag":43,"props":579,"children":580},{},[581],{"type":51,"value":582},"For each query identified in Step 1, or for each database query in the codebase if no stats are available, check:",{"type":42,"tag":539,"props":584,"children":585},{},[586,591,596,601,606],{"type":42,"tag":262,"props":587,"children":588},{},[589],{"type":51,"value":590},"Does it select only the columns the response needs?",{"type":42,"tag":262,"props":592,"children":593},{},[594],{"type":51,"value":595},"Does it return a bounded number of rows (LIMIT\u002Fpagination)?",{"type":42,"tag":262,"props":597,"children":598},{},[599],{"type":51,"value":600},"Is it called frequently enough to benefit from caching?",{"type":42,"tag":262,"props":602,"children":603},{},[604],{"type":51,"value":605},"Does it fetch raw data that gets aggregated in application code?",{"type":42,"tag":262,"props":607,"children":608},{},[609],{"type":51,"value":610},"Does it use a JOIN that duplicates parent data across child rows?",{"type":42,"tag":180,"props":612,"children":614},{"id":613},"step-3-fix",[615],{"type":51,"value":616},"Step 3: Fix",{"type":42,"tag":43,"props":618,"children":619},{},[620],{"type":51,"value":621},"Apply the appropriate fix for each problem found. Below are the most common egress anti-patterns and how to fix them.",{"type":42,"tag":200,"props":623,"children":625},{"id":624},"unused-columns-select",[626],{"type":51,"value":627},"Unused columns (SELECT *)",{"type":42,"tag":43,"props":629,"children":630},{},[631,636],{"type":42,"tag":47,"props":632,"children":633},{},[634],{"type":51,"value":635},"Problem:",{"type":51,"value":637}," The query fetches all columns but the application only uses a few. Large columns (JSONB blobs, TEXT fields) get transferred over the wire and discarded.",{"type":42,"tag":43,"props":639,"children":640},{},[641,646],{"type":42,"tag":47,"props":642,"children":643},{},[644],{"type":51,"value":645},"Fix:",{"type":51,"value":647}," Name only the columns the response needs.",{"type":42,"tag":43,"props":649,"children":650},{},[651],{"type":42,"tag":47,"props":652,"children":653},{},[654],{"type":51,"value":655},"Before:",{"type":42,"tag":86,"props":657,"children":659},{"className":208,"code":658,"language":210,"meta":91,"style":91},"SELECT * FROM products;\n",[660],{"type":42,"tag":56,"props":661,"children":662},{"__ignoreMap":91},[663],{"type":42,"tag":97,"props":664,"children":665},{"class":99,"line":100},[666],{"type":42,"tag":97,"props":667,"children":668},{},[669],{"type":51,"value":658},{"type":42,"tag":43,"props":671,"children":672},{},[673],{"type":42,"tag":47,"props":674,"children":675},{},[676],{"type":51,"value":677},"After:",{"type":42,"tag":86,"props":679,"children":681},{"className":208,"code":680,"language":210,"meta":91,"style":91},"SELECT id, name, price, image_urls FROM products;\n",[682],{"type":42,"tag":56,"props":683,"children":684},{"__ignoreMap":91},[685],{"type":42,"tag":97,"props":686,"children":687},{"class":99,"line":100},[688],{"type":42,"tag":97,"props":689,"children":690},{},[691],{"type":51,"value":680},{"type":42,"tag":200,"props":693,"children":695},{"id":694},"missing-pagination",[696],{"type":51,"value":697},"Missing pagination",{"type":42,"tag":43,"props":699,"children":700},{},[701,705],{"type":42,"tag":47,"props":702,"children":703},{},[704],{"type":51,"value":635},{"type":51,"value":706}," A list endpoint returns all rows with no LIMIT. This is an unbounded egress risk — every new row in the table increases data transfer on every request. Flag this regardless of current table size.",{"type":42,"tag":43,"props":708,"children":709},{},[710],{"type":51,"value":711},"This is easy to miss because the application may work fine with small datasets. But at scale, an unpaginated endpoint returning 10,000 rows with even moderate column widths can transfer hundreds of megabytes per day.",{"type":42,"tag":43,"props":713,"children":714},{},[715,719,721,727,729,735,737,743],{"type":42,"tag":47,"props":716,"children":717},{},[718],{"type":51,"value":645},{"type":51,"value":720}," Bound the result set with ",{"type":42,"tag":56,"props":722,"children":724},{"className":723},[],[725],{"type":51,"value":726},"ORDER BY",{"type":51,"value":728}," plus ",{"type":42,"tag":56,"props":730,"children":732},{"className":731},[],[733],{"type":51,"value":734},"LIMIT",{"type":51,"value":736},"\u002F",{"type":42,"tag":56,"props":738,"children":740},{"className":739},[],[741],{"type":51,"value":742},"OFFSET",{"type":51,"value":744},".",{"type":42,"tag":43,"props":746,"children":747},{},[748],{"type":42,"tag":47,"props":749,"children":750},{},[751],{"type":51,"value":655},{"type":42,"tag":86,"props":753,"children":755},{"className":208,"code":754,"language":210,"meta":91,"style":91},"SELECT id, name, price FROM products;\n",[756],{"type":42,"tag":56,"props":757,"children":758},{"__ignoreMap":91},[759],{"type":42,"tag":97,"props":760,"children":761},{"class":99,"line":100},[762],{"type":42,"tag":97,"props":763,"children":764},{},[765],{"type":51,"value":754},{"type":42,"tag":43,"props":767,"children":768},{},[769],{"type":42,"tag":47,"props":770,"children":771},{},[772],{"type":51,"value":677},{"type":42,"tag":86,"props":774,"children":776},{"className":208,"code":775,"language":210,"meta":91,"style":91},"SELECT id, name, price FROM products\nORDER BY id\nLIMIT 50 OFFSET 0;\n",[777],{"type":42,"tag":56,"props":778,"children":779},{"__ignoreMap":91},[780,788,796],{"type":42,"tag":97,"props":781,"children":782},{"class":99,"line":100},[783],{"type":42,"tag":97,"props":784,"children":785},{},[786],{"type":51,"value":787},"SELECT id, name, price FROM products\n",{"type":42,"tag":97,"props":789,"children":790},{"class":99,"line":324},[791],{"type":42,"tag":97,"props":792,"children":793},{},[794],{"type":51,"value":795},"ORDER BY id\n",{"type":42,"tag":97,"props":797,"children":798},{"class":99,"line":333},[799],{"type":42,"tag":97,"props":800,"children":801},{},[802],{"type":51,"value":803},"LIMIT 50 OFFSET 0;\n",{"type":42,"tag":43,"props":805,"children":806},{},[807],{"type":51,"value":808},"When adding pagination, check whether the consuming client already supports paginated responses. If not, pick sensible defaults and document the pagination parameters in the API.",{"type":42,"tag":200,"props":810,"children":812},{"id":811},"high-frequency-queries-on-static-data",[813],{"type":51,"value":814},"High-frequency queries on static data",{"type":42,"tag":43,"props":816,"children":817},{},[818,822,824,829],{"type":42,"tag":47,"props":819,"children":820},{},[821],{"type":51,"value":635},{"type":51,"value":823}," A query is called thousands of times per day but returns data that rarely changes. Every call transfers the same rows from the database. This pattern is only visible from ",{"type":42,"tag":56,"props":825,"children":827},{"className":826},[],[828],{"type":51,"value":196},{"type":51,"value":830}," — the code itself looks normal.",{"type":42,"tag":43,"props":832,"children":833},{},[834],{"type":51,"value":835},"Look for queries with extremely high call counts relative to other queries. Common examples: configuration tables, category lists, feature flags, user role definitions.",{"type":42,"tag":43,"props":837,"children":838},{},[839,843],{"type":42,"tag":47,"props":840,"children":841},{},[842],{"type":51,"value":645},{"type":51,"value":844}," Add a caching layer between the application and the database so it avoids hitting the database on every request.",{"type":42,"tag":200,"props":846,"children":848},{"id":847},"application-side-aggregation",[849],{"type":51,"value":850},"Application-side aggregation",{"type":42,"tag":43,"props":852,"children":853},{},[854,858],{"type":42,"tag":47,"props":855,"children":856},{},[857],{"type":51,"value":635},{"type":51,"value":859}," The application fetches all rows from a table and then computes aggregates (averages, counts, sums, groupings) in application code. The full dataset transfers over the wire even though the result is a small summary.",{"type":42,"tag":43,"props":861,"children":862},{},[863,867],{"type":42,"tag":47,"props":864,"children":865},{},[866],{"type":51,"value":645},{"type":51,"value":868}," Push the aggregation into SQL.",{"type":42,"tag":43,"props":870,"children":871},{},[872,876,878,884],{"type":42,"tag":47,"props":873,"children":874},{},[875],{"type":51,"value":655},{"type":51,"value":877}," The application fetches entire tables and aggregates in code with loops or ",{"type":42,"tag":56,"props":879,"children":881},{"className":880},[],[882],{"type":51,"value":883},".reduce()",{"type":51,"value":744},{"type":42,"tag":43,"props":886,"children":887},{},[888],{"type":42,"tag":47,"props":889,"children":890},{},[891],{"type":51,"value":677},{"type":42,"tag":86,"props":893,"children":895},{"className":208,"code":894,"language":210,"meta":91,"style":91},"SELECT p.category_id,\n       AVG(r.rating) AS avg_rating,\n       COUNT(r.id) AS review_count\nFROM reviews r\nINNER JOIN products p ON r.product_id = p.id\nGROUP BY p.category_id;\n",[896],{"type":42,"tag":56,"props":897,"children":898},{"__ignoreMap":91},[899,907,915,923,931,939],{"type":42,"tag":97,"props":900,"children":901},{"class":99,"line":100},[902],{"type":42,"tag":97,"props":903,"children":904},{},[905],{"type":51,"value":906},"SELECT p.category_id,\n",{"type":42,"tag":97,"props":908,"children":909},{"class":99,"line":324},[910],{"type":42,"tag":97,"props":911,"children":912},{},[913],{"type":51,"value":914},"       AVG(r.rating) AS avg_rating,\n",{"type":42,"tag":97,"props":916,"children":917},{"class":99,"line":333},[918],{"type":42,"tag":97,"props":919,"children":920},{},[921],{"type":51,"value":922},"       COUNT(r.id) AS review_count\n",{"type":42,"tag":97,"props":924,"children":925},{"class":99,"line":342},[926],{"type":42,"tag":97,"props":927,"children":928},{},[929],{"type":51,"value":930},"FROM reviews r\n",{"type":42,"tag":97,"props":932,"children":933},{"class":99,"line":351},[934],{"type":42,"tag":97,"props":935,"children":936},{},[937],{"type":51,"value":938},"INNER JOIN products p ON r.product_id = p.id\n",{"type":42,"tag":97,"props":940,"children":941},{"class":99,"line":521},[942],{"type":42,"tag":97,"props":943,"children":944},{},[945],{"type":51,"value":946},"GROUP BY p.category_id;\n",{"type":42,"tag":200,"props":948,"children":950},{"id":949},"join-duplication",[951],{"type":51,"value":952},"JOIN duplication",{"type":42,"tag":43,"props":954,"children":955},{},[956,960],{"type":42,"tag":47,"props":957,"children":958},{},[959],{"type":51,"value":635},{"type":51,"value":961}," A JOIN between a wide parent table and a child table duplicates all parent columns across every child row. If a product has 200 reviews and the product row includes a 50KB JSONB column, the join sends that 50KB × 200 = ~10MB for a single request.",{"type":42,"tag":43,"props":963,"children":964},{},[965],{"type":51,"value":966},"This is distinct from the SELECT * problem. Even if you select only needed columns, a JOIN still repeats the parent data for every child row. The fix is structural: avoid the join entirely.",{"type":42,"tag":43,"props":968,"children":969},{},[970,974],{"type":42,"tag":47,"props":971,"children":972},{},[973],{"type":51,"value":645},{"type":51,"value":975}," Split the join into two queries, one per table.",{"type":42,"tag":43,"props":977,"children":978},{},[979],{"type":42,"tag":47,"props":980,"children":981},{},[982],{"type":51,"value":655},{"type":42,"tag":86,"props":984,"children":986},{"className":208,"code":985,"language":210,"meta":91,"style":91},"SELECT * FROM products\nLEFT JOIN reviews ON reviews.product_id = products.id\nWHERE products.id = 1;\n",[987],{"type":42,"tag":56,"props":988,"children":989},{"__ignoreMap":91},[990,998,1006],{"type":42,"tag":97,"props":991,"children":992},{"class":99,"line":100},[993],{"type":42,"tag":97,"props":994,"children":995},{},[996],{"type":51,"value":997},"SELECT * FROM products\n",{"type":42,"tag":97,"props":999,"children":1000},{"class":99,"line":324},[1001],{"type":42,"tag":97,"props":1002,"children":1003},{},[1004],{"type":51,"value":1005},"LEFT JOIN reviews ON reviews.product_id = products.id\n",{"type":42,"tag":97,"props":1007,"children":1008},{"class":99,"line":333},[1009],{"type":42,"tag":97,"props":1010,"children":1011},{},[1012],{"type":51,"value":1013},"WHERE products.id = 1;\n",{"type":42,"tag":43,"props":1015,"children":1016},{},[1017],{"type":42,"tag":47,"props":1018,"children":1019},{},[1020],{"type":51,"value":1021},"After (two separate queries):",{"type":42,"tag":86,"props":1023,"children":1025},{"className":208,"code":1024,"language":210,"meta":91,"style":91},"SELECT id, name, price, description, image_urls FROM products WHERE id = 1;\nSELECT id, user_name, rating, body FROM reviews WHERE product_id = 1;\n",[1026],{"type":42,"tag":56,"props":1027,"children":1028},{"__ignoreMap":91},[1029,1037],{"type":42,"tag":97,"props":1030,"children":1031},{"class":99,"line":100},[1032],{"type":42,"tag":97,"props":1033,"children":1034},{},[1035],{"type":51,"value":1036},"SELECT id, name, price, description, image_urls FROM products WHERE id = 1;\n",{"type":42,"tag":97,"props":1038,"children":1039},{"class":99,"line":324},[1040],{"type":42,"tag":97,"props":1041,"children":1042},{},[1043],{"type":51,"value":1044},"SELECT id, user_name, rating, body FROM reviews WHERE product_id = 1;\n",{"type":42,"tag":43,"props":1046,"children":1047},{},[1048],{"type":51,"value":1049},"Two queries instead of one JOIN. The product data is fetched once. The reviews are fetched once. No duplication.",{"type":42,"tag":180,"props":1051,"children":1053},{"id":1052},"step-4-verify",[1054],{"type":51,"value":1055},"Step 4: Verify",{"type":42,"tag":43,"props":1057,"children":1058},{},[1059],{"type":51,"value":1060},"After applying fixes:",{"type":42,"tag":258,"props":1062,"children":1063},{},[1064,1074,1084],{"type":42,"tag":262,"props":1065,"children":1066},{},[1067,1072],{"type":42,"tag":47,"props":1068,"children":1069},{},[1070],{"type":51,"value":1071},"Run existing tests",{"type":51,"value":1073}," to confirm nothing broke.",{"type":42,"tag":262,"props":1075,"children":1076},{},[1077,1082],{"type":42,"tag":47,"props":1078,"children":1079},{},[1080],{"type":51,"value":1081},"Check the responses",{"type":51,"value":1083}," — make sure the API still returns the same data shape. Column selection and pagination changes can break clients that depend on specific fields or full result sets.",{"type":42,"tag":262,"props":1085,"children":1086},{},[1087,1092,1094,1099],{"type":42,"tag":47,"props":1088,"children":1089},{},[1090],{"type":51,"value":1091},"Measure the improvement",{"type":51,"value":1093}," — if pg_stat_statements data is available, reset it (",{"type":42,"tag":56,"props":1095,"children":1097},{"className":1096},[],[1098],{"type":51,"value":272},{"type":51,"value":1100},"), let traffic run, then re-run the diagnostic queries to compare before and after.",{"type":42,"tag":180,"props":1102,"children":1104},{"id":1103},"neon-infrastructure-as-code-neonts",[1105,1107,1113],{"type":51,"value":1106},"Neon Infrastructure as Code (",{"type":42,"tag":56,"props":1108,"children":1110},{"className":1109},[],[1111],{"type":51,"value":1112},"neon.ts",{"type":51,"value":1114},")",{"type":42,"tag":43,"props":1116,"children":1117},{},[1118,1120,1125,1127,1132,1134,1139,1141,1146],{"type":51,"value":1119},"The fixes above cut ",{"type":42,"tag":47,"props":1121,"children":1122},{},[1123],{"type":51,"value":1124},"egress",{"type":51,"value":1126}," (data transferred out of Postgres). The other big non-prod cost lever is ",{"type":42,"tag":47,"props":1128,"children":1129},{},[1130],{"type":51,"value":1131},"compute",{"type":51,"value":1133},", and you can codify it durably in ",{"type":42,"tag":56,"props":1135,"children":1137},{"className":1136},[],[1138],{"type":51,"value":1112},{"type":51,"value":1140}," — Neon's infrastructure-as-code file (see the ",{"type":42,"tag":56,"props":1142,"children":1144},{"className":1143},[],[1145],{"type":51,"value":8},{"type":51,"value":1147}," skill for the full reference) — so dev, preview, and CI branches stay cheap by default instead of relying on per-branch flags:",{"type":42,"tag":86,"props":1149,"children":1151},{"className":88,"code":1150,"language":90,"meta":91,"style":91},"npm i @neon\u002Fconfig\n",[1152],{"type":42,"tag":56,"props":1153,"children":1154},{"__ignoreMap":91},[1155],{"type":42,"tag":97,"props":1156,"children":1157},{"class":99,"line":100},[1158,1163,1168],{"type":42,"tag":97,"props":1159,"children":1160},{"style":104},[1161],{"type":51,"value":1162},"npm",{"type":42,"tag":97,"props":1164,"children":1165},{"style":110},[1166],{"type":51,"value":1167}," i",{"type":42,"tag":97,"props":1169,"children":1170},{"style":110},[1171],{"type":51,"value":1172}," @neon\u002Fconfig\n",{"type":42,"tag":86,"props":1174,"children":1178},{"className":1175,"code":1176,"language":1177,"meta":91,"style":91},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F neon.ts\nimport { defineConfig } from \"@neon\u002Fconfig\u002Fv1\";\n\nexport default defineConfig({\n  branch: (branch) => {\n    if (branch.exists || branch.isDefault) return {}; \u002F\u002F don't touch prod\n    return {\n      ttl: \"7d\", \u002F\u002F ephemeral branches auto-expire instead of accruing storage\n      postgres: {\n        computeSettings: {\n          autoscalingLimitMinCu: 0.25, \u002F\u002F scale to zero when idle\n          autoscalingLimitMaxCu: 1, \u002F\u002F cap autoscaling on throwaway branches\n          suspendTimeout: \"5m\",\n        },\n      },\n    };\n  },\n});\n","typescript",[1179],{"type":42,"tag":56,"props":1180,"children":1181},{"__ignoreMap":91},[1182,1191,1242,1251,1279,1318,1383,1396,1432,1449,1466,1494,1520,1551,1560,1569,1578,1587],{"type":42,"tag":97,"props":1183,"children":1184},{"class":99,"line":100},[1185],{"type":42,"tag":97,"props":1186,"children":1188},{"style":1187},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[1189],{"type":51,"value":1190},"\u002F\u002F neon.ts\n",{"type":42,"tag":97,"props":1192,"children":1193},{"class":99,"line":324},[1194,1200,1206,1212,1217,1222,1227,1232,1237],{"type":42,"tag":97,"props":1195,"children":1197},{"style":1196},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[1198],{"type":51,"value":1199},"import",{"type":42,"tag":97,"props":1201,"children":1203},{"style":1202},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[1204],{"type":51,"value":1205}," {",{"type":42,"tag":97,"props":1207,"children":1209},{"style":1208},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[1210],{"type":51,"value":1211}," defineConfig",{"type":42,"tag":97,"props":1213,"children":1214},{"style":1202},[1215],{"type":51,"value":1216}," }",{"type":42,"tag":97,"props":1218,"children":1219},{"style":1196},[1220],{"type":51,"value":1221}," from",{"type":42,"tag":97,"props":1223,"children":1224},{"style":1202},[1225],{"type":51,"value":1226}," \"",{"type":42,"tag":97,"props":1228,"children":1229},{"style":110},[1230],{"type":51,"value":1231},"@neon\u002Fconfig\u002Fv1",{"type":42,"tag":97,"props":1233,"children":1234},{"style":1202},[1235],{"type":51,"value":1236},"\"",{"type":42,"tag":97,"props":1238,"children":1239},{"style":1202},[1240],{"type":51,"value":1241},";\n",{"type":42,"tag":97,"props":1243,"children":1244},{"class":99,"line":333},[1245],{"type":42,"tag":97,"props":1246,"children":1248},{"emptyLinePlaceholder":1247},true,[1249],{"type":51,"value":1250},"\n",{"type":42,"tag":97,"props":1252,"children":1253},{"class":99,"line":342},[1254,1259,1264,1269,1274],{"type":42,"tag":97,"props":1255,"children":1256},{"style":1196},[1257],{"type":51,"value":1258},"export",{"type":42,"tag":97,"props":1260,"children":1261},{"style":1196},[1262],{"type":51,"value":1263}," default",{"type":42,"tag":97,"props":1265,"children":1267},{"style":1266},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[1268],{"type":51,"value":1211},{"type":42,"tag":97,"props":1270,"children":1271},{"style":1208},[1272],{"type":51,"value":1273},"(",{"type":42,"tag":97,"props":1275,"children":1276},{"style":1202},[1277],{"type":51,"value":1278},"{\n",{"type":42,"tag":97,"props":1280,"children":1281},{"class":99,"line":351},[1282,1287,1292,1297,1303,1307,1313],{"type":42,"tag":97,"props":1283,"children":1284},{"style":1266},[1285],{"type":51,"value":1286},"  branch",{"type":42,"tag":97,"props":1288,"children":1289},{"style":1202},[1290],{"type":51,"value":1291},":",{"type":42,"tag":97,"props":1293,"children":1294},{"style":1202},[1295],{"type":51,"value":1296}," (",{"type":42,"tag":97,"props":1298,"children":1300},{"style":1299},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1301],{"type":51,"value":1302},"branch",{"type":42,"tag":97,"props":1304,"children":1305},{"style":1202},[1306],{"type":51,"value":1114},{"type":42,"tag":97,"props":1308,"children":1310},{"style":1309},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1311],{"type":51,"value":1312}," =>",{"type":42,"tag":97,"props":1314,"children":1315},{"style":1202},[1316],{"type":51,"value":1317}," {\n",{"type":42,"tag":97,"props":1319,"children":1320},{"class":99,"line":521},[1321,1326,1331,1335,1339,1344,1349,1354,1358,1363,1368,1373,1378],{"type":42,"tag":97,"props":1322,"children":1323},{"style":1196},[1324],{"type":51,"value":1325},"    if",{"type":42,"tag":97,"props":1327,"children":1329},{"style":1328},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[1330],{"type":51,"value":1296},{"type":42,"tag":97,"props":1332,"children":1333},{"style":1208},[1334],{"type":51,"value":1302},{"type":42,"tag":97,"props":1336,"children":1337},{"style":1202},[1338],{"type":51,"value":744},{"type":42,"tag":97,"props":1340,"children":1341},{"style":1208},[1342],{"type":51,"value":1343},"exists",{"type":42,"tag":97,"props":1345,"children":1346},{"style":1202},[1347],{"type":51,"value":1348}," ||",{"type":42,"tag":97,"props":1350,"children":1351},{"style":1208},[1352],{"type":51,"value":1353}," branch",{"type":42,"tag":97,"props":1355,"children":1356},{"style":1202},[1357],{"type":51,"value":744},{"type":42,"tag":97,"props":1359,"children":1360},{"style":1208},[1361],{"type":51,"value":1362},"isDefault",{"type":42,"tag":97,"props":1364,"children":1365},{"style":1328},[1366],{"type":51,"value":1367},") ",{"type":42,"tag":97,"props":1369,"children":1370},{"style":1196},[1371],{"type":51,"value":1372},"return",{"type":42,"tag":97,"props":1374,"children":1375},{"style":1202},[1376],{"type":51,"value":1377}," {};",{"type":42,"tag":97,"props":1379,"children":1380},{"style":1187},[1381],{"type":51,"value":1382}," \u002F\u002F don't touch prod\n",{"type":42,"tag":97,"props":1384,"children":1386},{"class":99,"line":1385},7,[1387,1392],{"type":42,"tag":97,"props":1388,"children":1389},{"style":1196},[1390],{"type":51,"value":1391},"    return",{"type":42,"tag":97,"props":1393,"children":1394},{"style":1202},[1395],{"type":51,"value":1317},{"type":42,"tag":97,"props":1397,"children":1399},{"class":99,"line":1398},8,[1400,1405,1409,1413,1418,1422,1427],{"type":42,"tag":97,"props":1401,"children":1402},{"style":1328},[1403],{"type":51,"value":1404},"      ttl",{"type":42,"tag":97,"props":1406,"children":1407},{"style":1202},[1408],{"type":51,"value":1291},{"type":42,"tag":97,"props":1410,"children":1411},{"style":1202},[1412],{"type":51,"value":1226},{"type":42,"tag":97,"props":1414,"children":1415},{"style":110},[1416],{"type":51,"value":1417},"7d",{"type":42,"tag":97,"props":1419,"children":1420},{"style":1202},[1421],{"type":51,"value":1236},{"type":42,"tag":97,"props":1423,"children":1424},{"style":1202},[1425],{"type":51,"value":1426},",",{"type":42,"tag":97,"props":1428,"children":1429},{"style":1187},[1430],{"type":51,"value":1431}," \u002F\u002F ephemeral branches auto-expire instead of accruing storage\n",{"type":42,"tag":97,"props":1433,"children":1435},{"class":99,"line":1434},9,[1436,1441,1445],{"type":42,"tag":97,"props":1437,"children":1438},{"style":1328},[1439],{"type":51,"value":1440},"      postgres",{"type":42,"tag":97,"props":1442,"children":1443},{"style":1202},[1444],{"type":51,"value":1291},{"type":42,"tag":97,"props":1446,"children":1447},{"style":1202},[1448],{"type":51,"value":1317},{"type":42,"tag":97,"props":1450,"children":1452},{"class":99,"line":1451},10,[1453,1458,1462],{"type":42,"tag":97,"props":1454,"children":1455},{"style":1328},[1456],{"type":51,"value":1457},"        computeSettings",{"type":42,"tag":97,"props":1459,"children":1460},{"style":1202},[1461],{"type":51,"value":1291},{"type":42,"tag":97,"props":1463,"children":1464},{"style":1202},[1465],{"type":51,"value":1317},{"type":42,"tag":97,"props":1467,"children":1469},{"class":99,"line":1468},11,[1470,1475,1479,1485,1489],{"type":42,"tag":97,"props":1471,"children":1472},{"style":1328},[1473],{"type":51,"value":1474},"          autoscalingLimitMinCu",{"type":42,"tag":97,"props":1476,"children":1477},{"style":1202},[1478],{"type":51,"value":1291},{"type":42,"tag":97,"props":1480,"children":1482},{"style":1481},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1483],{"type":51,"value":1484}," 0.25",{"type":42,"tag":97,"props":1486,"children":1487},{"style":1202},[1488],{"type":51,"value":1426},{"type":42,"tag":97,"props":1490,"children":1491},{"style":1187},[1492],{"type":51,"value":1493}," \u002F\u002F scale to zero when idle\n",{"type":42,"tag":97,"props":1495,"children":1496},{"class":99,"line":28},[1497,1502,1506,1511,1515],{"type":42,"tag":97,"props":1498,"children":1499},{"style":1328},[1500],{"type":51,"value":1501},"          autoscalingLimitMaxCu",{"type":42,"tag":97,"props":1503,"children":1504},{"style":1202},[1505],{"type":51,"value":1291},{"type":42,"tag":97,"props":1507,"children":1508},{"style":1481},[1509],{"type":51,"value":1510}," 1",{"type":42,"tag":97,"props":1512,"children":1513},{"style":1202},[1514],{"type":51,"value":1426},{"type":42,"tag":97,"props":1516,"children":1517},{"style":1187},[1518],{"type":51,"value":1519}," \u002F\u002F cap autoscaling on throwaway branches\n",{"type":42,"tag":97,"props":1521,"children":1523},{"class":99,"line":1522},13,[1524,1529,1533,1537,1542,1546],{"type":42,"tag":97,"props":1525,"children":1526},{"style":1328},[1527],{"type":51,"value":1528},"          suspendTimeout",{"type":42,"tag":97,"props":1530,"children":1531},{"style":1202},[1532],{"type":51,"value":1291},{"type":42,"tag":97,"props":1534,"children":1535},{"style":1202},[1536],{"type":51,"value":1226},{"type":42,"tag":97,"props":1538,"children":1539},{"style":110},[1540],{"type":51,"value":1541},"5m",{"type":42,"tag":97,"props":1543,"children":1544},{"style":1202},[1545],{"type":51,"value":1236},{"type":42,"tag":97,"props":1547,"children":1548},{"style":1202},[1549],{"type":51,"value":1550},",\n",{"type":42,"tag":97,"props":1552,"children":1554},{"class":99,"line":1553},14,[1555],{"type":42,"tag":97,"props":1556,"children":1557},{"style":1202},[1558],{"type":51,"value":1559},"        },\n",{"type":42,"tag":97,"props":1561,"children":1563},{"class":99,"line":1562},15,[1564],{"type":42,"tag":97,"props":1565,"children":1566},{"style":1202},[1567],{"type":51,"value":1568},"      },\n",{"type":42,"tag":97,"props":1570,"children":1572},{"class":99,"line":1571},16,[1573],{"type":42,"tag":97,"props":1574,"children":1575},{"style":1202},[1576],{"type":51,"value":1577},"    };\n",{"type":42,"tag":97,"props":1579,"children":1581},{"class":99,"line":1580},17,[1582],{"type":42,"tag":97,"props":1583,"children":1584},{"style":1202},[1585],{"type":51,"value":1586},"  },\n",{"type":42,"tag":97,"props":1588,"children":1590},{"class":99,"line":1589},18,[1591,1596,1600],{"type":42,"tag":97,"props":1592,"children":1593},{"style":1202},[1594],{"type":51,"value":1595},"}",{"type":42,"tag":97,"props":1597,"children":1598},{"style":1208},[1599],{"type":51,"value":1114},{"type":42,"tag":97,"props":1601,"children":1602},{"style":1202},[1603],{"type":51,"value":1241},{"type":42,"tag":86,"props":1605,"children":1607},{"className":88,"code":1606,"language":90,"meta":91,"style":91},"neon config apply   # apply to the current branch (neon deploy is an alias)\n",[1608],{"type":42,"tag":56,"props":1609,"children":1610},{"__ignoreMap":91},[1611],{"type":42,"tag":97,"props":1612,"children":1613},{"class":99,"line":100},[1614,1618,1623,1628],{"type":42,"tag":97,"props":1615,"children":1616},{"style":104},[1617],{"type":51,"value":8},{"type":42,"tag":97,"props":1619,"children":1620},{"style":110},[1621],{"type":51,"value":1622}," config",{"type":42,"tag":97,"props":1624,"children":1625},{"style":110},[1626],{"type":51,"value":1627}," apply",{"type":42,"tag":97,"props":1629,"children":1630},{"style":1187},[1631],{"type":51,"value":1632},"   # apply to the current branch (neon deploy is an alias)\n",{"type":42,"tag":43,"props":1634,"children":1635},{},[1636,1638,1644],{"type":51,"value":1637},"This is complementary, not a substitute: query-pattern fixes are what actually reduce egress charges, while these settings keep non-production compute and storage from quietly inflating the same bill. Because ",{"type":42,"tag":56,"props":1639,"children":1641},{"className":1640},[],[1642],{"type":51,"value":1643},"neon checkout",{"type":51,"value":1645}," applies the policy when it creates a branch, new dev\u002Fpreview branches inherit the cheap profile automatically.",{"type":42,"tag":180,"props":1647,"children":1649},{"id":1648},"further-reading",[1650],{"type":51,"value":1651},"Further Reading",{"type":42,"tag":539,"props":1653,"children":1654},{},[1655,1664],{"type":42,"tag":262,"props":1656,"children":1657},{},[1658],{"type":42,"tag":76,"props":1659,"children":1662},{"href":1660,"rel":1661},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fintroduction\u002Fnetwork-transfer.md",[80],[1663],{"type":51,"value":1660},{"type":42,"tag":262,"props":1665,"children":1666},{},[1667],{"type":42,"tag":76,"props":1668,"children":1671},{"href":1669,"rel":1670},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fintroduction\u002Fcost-optimization.md",[80],[1672],{"type":51,"value":1669},{"type":42,"tag":1674,"props":1675,"children":1676},"style",{},[1677],{"type":51,"value":1678},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1680,"total":1858},[1681,1698,1712,1724,1740,1752,1766,1781,1791,1810,1828,1845],{"slug":1682,"name":1682,"fn":1683,"description":1684,"org":1685,"tags":1686,"stars":1695,"repoUrl":1696,"updatedAt":1697},"neon-postgres","build apps with Neon serverless Postgres","Guides and best practices for working with Neon Serverless Postgres. Covers setup, connection methods and drivers, pooled vs direct connections, branching, autoscaling, scale-to-zero, instant restore, read replicas, connection pooling, IP allow lists, and logical replication. Use when users ask about \"Neon setup\", \"connect to Neon\", \"Neon project\", \"DATABASE_URL\", \"serverless Postgres\", \"Neon CLI\", \"neon\", \"Neon MCP\", \"Neon Auth\", \"@neondatabase\u002Fserverless\", \"@neondatabase\u002Fneon-js\", \"scale to zero\", \"Neon autoscaling\", \"Neon read replica\", or \"Neon connection pooling\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1687,1690,1691,1692],{"name":1688,"slug":1689,"type":16},"Database","database",{"name":9,"slug":8,"type":16},{"name":22,"slug":23,"type":16},{"name":1693,"slug":1694,"type":16},"Serverless","serverless",321,"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fwebsite","2026-07-27T06:08:14.168734",{"slug":1699,"name":1699,"fn":1700,"description":1701,"org":1702,"tags":1703,"stars":1709,"repoUrl":1710,"updatedAt":1711},"add-neon-docs","add Neon docs to project AI docs","Use this skill when the user asks to add documentation, add docs, add references, or install documentation about Neon. Adds Neon best practices reference links to project AI documentation (CLAUDE.md, AGENTS.md, or Cursor rules). Does not install packages or modify code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1704,1705,1708],{"name":1688,"slug":1689,"type":16},{"name":1706,"slug":1707,"type":16},"Documentation","documentation",{"name":9,"slug":8,"type":16},86,"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fai-rules","2026-04-06T18:38:53.722898",{"slug":1713,"name":1713,"fn":1714,"description":1715,"org":1716,"tags":1717,"stars":1709,"repoUrl":1710,"updatedAt":1723},"neon-auth","set up Neon Auth for apps","Sets up Neon Auth for your application. Configures authentication, creates auth routes, and generates UI components. Use when adding authentication to Next.js, React SPA, or Node.js projects.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1718,1721,1722],{"name":1719,"slug":1720,"type":16},"Auth","auth",{"name":1688,"slug":1689,"type":16},{"name":9,"slug":8,"type":16},"2026-04-06T18:38:52.386193",{"slug":1725,"name":1725,"fn":1726,"description":1727,"org":1728,"tags":1729,"stars":1709,"repoUrl":1710,"updatedAt":1739},"neon-drizzle","set up Drizzle ORM with Neon","Creates a fully functional Drizzle ORM setup with a provisioned Neon database. Installs dependencies, provisions database credentials, configures connections, generates schemas, and runs migrations. Results in working code that can immediately connect to and query the database. Use when creating new projects with Drizzle, adding ORM to existing applications, or modifying database schemas.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1730,1731,1734,1735,1738],{"name":1688,"slug":1689,"type":16},{"name":1732,"slug":1733,"type":16},"Drizzle","drizzle",{"name":9,"slug":8,"type":16},{"name":1736,"slug":1737,"type":16},"ORM","orm",{"name":22,"slug":23,"type":16},"2026-04-06T18:38:56.217495",{"slug":1741,"name":1741,"fn":1742,"description":1743,"org":1744,"tags":1745,"stars":1709,"repoUrl":1710,"updatedAt":1751},"neon-js","set up the Neon JS SDK for auth and queries","Sets up the full Neon JS SDK with unified auth and PostgREST-style database queries. Configures auth client, data client, and type generation. Use when building apps that need both authentication and database access in one SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1746,1747,1748,1749],{"name":1719,"slug":1720,"type":16},{"name":1688,"slug":1689,"type":16},{"name":9,"slug":8,"type":16},{"name":1750,"slug":1177,"type":16},"TypeScript","2026-04-06T18:38:51.116041",{"slug":1753,"name":1753,"fn":1754,"description":1755,"org":1756,"tags":1757,"stars":1709,"repoUrl":1710,"updatedAt":1765},"neon-serverless","configure Neon serverless driver","Configures Neon Serverless Driver for Next.js, Vercel Edge Functions, AWS Lambda, and other serverless environments. Installs @neondatabase\u002Fserverless, sets up environment variables, and creates working API route examples with TypeScript types. Use when users need to connect their application to Neon, fetch or query data from a Neon database, integrate Neon with Next.js or serverless frameworks, or set up database access in edge\u002Fserverless environments where traditional PostgreSQL clients don't work.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1758,1759,1762,1763,1764],{"name":1688,"slug":1689,"type":16},{"name":1760,"slug":1761,"type":16},"Edge Functions","edge-functions",{"name":9,"slug":8,"type":16},{"name":22,"slug":23,"type":16},{"name":1693,"slug":1694,"type":16},"2026-04-06T18:38:54.97085",{"slug":1767,"name":1767,"fn":1768,"description":1769,"org":1770,"tags":1771,"stars":1709,"repoUrl":1710,"updatedAt":1780},"neon-toolkit","create ephemeral Neon databases for testing","Creates and manages ephemeral Neon databases for testing, CI\u002FCD pipelines, and isolated development environments. Use when building temporary databases for automated tests or rapid prototyping.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1772,1775,1776,1777],{"name":1773,"slug":1774,"type":16},"CI\u002FCD","cicd",{"name":1688,"slug":1689,"type":16},{"name":9,"slug":8,"type":16},{"name":1778,"slug":1779,"type":16},"Testing","testing","2026-04-06T18:38:57.490782",{"slug":1782,"name":1782,"fn":1783,"description":1784,"org":1785,"tags":1786,"stars":24,"repoUrl":25,"updatedAt":1790},"claimable-postgres","provision temporary Postgres databases","Provision instant temporary Postgres databases via Claimable Postgres by Neon (neon.new) with no login, signup, or credit card. Supports REST API, CLI, and SDK. Use when users ask for a quick Postgres environment, a throwaway DATABASE_URL for prototyping\u002Ftests, or \"just give me a DB now\". Triggers include: \"quick postgres\", \"temporary postgres\", \"no signup database\", \"no credit card database\", \"instant DATABASE_URL\", \"npx neon-new\", \"neon.new\", \"neon.new API\", \"claimable postgres API\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1787,1788,1789],{"name":1688,"slug":1689,"type":16},{"name":9,"slug":8,"type":16},{"name":22,"slug":23,"type":16},"2026-07-27T06:07:56.160588",{"slug":8,"name":8,"fn":1792,"description":1793,"org":1794,"tags":1795,"stars":24,"repoUrl":25,"updatedAt":1809},"build applications on the Neon platform","Overview of the Neon platform for apps and agents, spanning Postgres, Auth, the Data API, Object Storage, Compute Functions, and the AI Gateway. Start here to route to the right Neon skill, set up the CLI or MCP server, and follow the branch-first workflow. Use when \"Neon\" is mentioned, or when any of its individual capabilities are the trigger: \"object storage\" or \"S3\", \"buckets\", \"serverless functions\", \"AI gateway\", \"call an LLM\", \"postgres\", \"database\", or \"backend\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1796,1799,1802,1803,1804,1805,1806],{"name":1797,"slug":1798,"type":16},"AI Infrastructure","ai-infrastructure",{"name":1800,"slug":1801,"type":16},"Authentication","authentication",{"name":1688,"slug":1689,"type":16},{"name":9,"slug":8,"type":16},{"name":22,"slug":23,"type":16},{"name":1693,"slug":1694,"type":16},{"name":1807,"slug":1808,"type":16},"Storage","storage","2026-07-27T06:08:01.383115",{"slug":1811,"name":1811,"fn":1812,"description":1813,"org":1814,"tags":1815,"stars":24,"repoUrl":25,"updatedAt":1827},"neon-ai-gateway","call LLMs via Neon AI Gateway","One API and one credential for frontier and open-source LLMs, built into your Neon branch and powered by Databricks. Use when a user wants to call an LLM, add AI\u002Fchat\u002Fan agent to their app, route between model providers (OpenAI, Anthropic, Google\u002FGemini, Meta, Alibaba, DeepSeek), or avoid juggling separate provider API keys and accounts — especially when they already use Neon and want AI requests to branch with their project. Works with the OpenAI SDK, Anthropic SDK, google-genai, the Vercel AI SDK, and Mastra by changing only the base URL. Triggers include \"call an LLM\", \"add AI to my app\", \"chat completion\", \"model routing\", \"LLM proxy\u002Fgateway\", \"one API for all models\", \"use Claude\u002FGPT\u002FGemini\", \"AI SDK\", \"Mastra agent\", \"Neon AI Gateway\", and \"log\u002Frate-limit AI calls\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1816,1817,1820,1823,1826],{"name":1797,"slug":1798,"type":16},{"name":1818,"slug":1819,"type":16},"API Development","api-development",{"name":1821,"slug":1822,"type":16},"Databricks","databricks",{"name":1824,"slug":1825,"type":16},"LLM","llm",{"name":9,"slug":8,"type":16},"2026-07-27T06:08:00.288175",{"slug":1829,"name":1829,"fn":1830,"description":1831,"org":1832,"tags":1833,"stars":24,"repoUrl":25,"updatedAt":1844},"neon-functions","deploy serverless functions on Neon","Long-running, serverless Node.js HTTP functions deployed onto your Neon branch, with DATABASE_URL injected automatically and compute that runs next to your data. Use when a user wants to host an API, an AI agent with long streaming responses, a WebSocket or server-sent-events (SSE) server, a webhook handler, a Discord bot, an MCP server, or any request\u002Fresponse workload that risks timing out on short, lambda-style serverless functions — and wants it to branch with their database. Triggers include \"serverless function\", \"deploy an API\", \"long-running function\", \"streaming agent\", \"SSE server\", \"WebSocket server\", \"webhook handler\", \"MCP server\", \"run code next to my database\", \"function that won't time out\", \"Neon Functions\", and \"Neon Compute\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1834,1835,1838,1839,1840,1843],{"name":1818,"slug":1819,"type":16},{"name":1836,"slug":1837,"type":16},"Backend","backend",{"name":1760,"slug":1761,"type":16},{"name":9,"slug":8,"type":16},{"name":1841,"slug":1842,"type":16},"Node.js","node-js",{"name":1693,"slug":1694,"type":16},"2026-07-27T06:07:59.147675",{"slug":1846,"name":1846,"fn":1847,"description":1848,"org":1849,"tags":1850,"stars":24,"repoUrl":25,"updatedAt":1857},"neon-object-storage","manage Neon object storage","S3-compatible object storage that branches with your Neon project, so files and the database stay in sync across every branch. Use when a user wants object storage, a bucket, blob\u002Ffile storage, or somewhere to put uploads, images, documents, avatars, or user-generated files for their app or agent — especially when they already use (or are setting up) Neon Postgres and don't want to add a separate storage provider like AWS S3, Cloudflare R2, or Supabase Storage. Triggers include \"object storage\", \"bucket\", \"blob storage\", \"file storage\", \"store uploads\u002Fimages\u002Ffiles\", \"S3-compatible storage\", \"presigned URL\", \"where do I put files\", \"Neon Object Storage\", \"Neon Storage\", and \"storage that branches with my database\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1851,1852,1855,1856],{"name":1688,"slug":1689,"type":16},{"name":1853,"slug":1854,"type":16},"File Storage","file-storage",{"name":9,"slug":8,"type":16},{"name":1807,"slug":1808,"type":16},"2026-07-27T06:07:57.150892",19,{"items":1860,"total":1385},[1861,1867,1877,1885,1894,1901,1918],{"slug":1782,"name":1782,"fn":1783,"description":1784,"org":1862,"tags":1863,"stars":24,"repoUrl":25,"updatedAt":1790},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1864,1865,1866],{"name":1688,"slug":1689,"type":16},{"name":9,"slug":8,"type":16},{"name":22,"slug":23,"type":16},{"slug":8,"name":8,"fn":1792,"description":1793,"org":1868,"tags":1869,"stars":24,"repoUrl":25,"updatedAt":1809},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1870,1871,1872,1873,1874,1875,1876],{"name":1797,"slug":1798,"type":16},{"name":1800,"slug":1801,"type":16},{"name":1688,"slug":1689,"type":16},{"name":9,"slug":8,"type":16},{"name":22,"slug":23,"type":16},{"name":1693,"slug":1694,"type":16},{"name":1807,"slug":1808,"type":16},{"slug":1811,"name":1811,"fn":1812,"description":1813,"org":1878,"tags":1879,"stars":24,"repoUrl":25,"updatedAt":1827},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1880,1881,1882,1883,1884],{"name":1797,"slug":1798,"type":16},{"name":1818,"slug":1819,"type":16},{"name":1821,"slug":1822,"type":16},{"name":1824,"slug":1825,"type":16},{"name":9,"slug":8,"type":16},{"slug":1829,"name":1829,"fn":1830,"description":1831,"org":1886,"tags":1887,"stars":24,"repoUrl":25,"updatedAt":1844},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1888,1889,1890,1891,1892,1893],{"name":1818,"slug":1819,"type":16},{"name":1836,"slug":1837,"type":16},{"name":1760,"slug":1761,"type":16},{"name":9,"slug":8,"type":16},{"name":1841,"slug":1842,"type":16},{"name":1693,"slug":1694,"type":16},{"slug":1846,"name":1846,"fn":1847,"description":1848,"org":1895,"tags":1896,"stars":24,"repoUrl":25,"updatedAt":1857},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1897,1898,1899,1900],{"name":1688,"slug":1689,"type":16},{"name":1853,"slug":1854,"type":16},{"name":9,"slug":8,"type":16},{"name":1807,"slug":1808,"type":16},{"slug":1902,"name":1902,"fn":1903,"description":1904,"org":1905,"tags":1906,"stars":24,"repoUrl":25,"updatedAt":1917},"neon-postgres-branches","manage Neon PostgreSQL database branches","Choose and create the right Neon branch type for testing and development. Use when users ask about Neon branching, migration testing with real data, isolated test environments, schema-only branch workflows for sensitive data, resetting a branch from its parent, branch expiration and CI\u002FCD branch lifecycles, or branch creation via Neon CLI or Neon MCP. Triggers include \"Neon branch\", \"test migrations safely\", \"branch production data\", \"schema-only branch\", \"reset branch\", \"branch per PR\" and \"sensitive data testing\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1907,1908,1911,1914,1915,1916],{"name":1688,"slug":1689,"type":16},{"name":1909,"slug":1910,"type":16},"DevOps","devops",{"name":1912,"slug":1913,"type":16},"Migration","migration",{"name":9,"slug":8,"type":16},{"name":22,"slug":23,"type":16},{"name":1778,"slug":1779,"type":16},"2026-07-27T06:07:55.162249",{"slug":4,"name":4,"fn":5,"description":6,"org":1919,"tags":1920,"stars":24,"repoUrl":25,"updatedAt":26},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1921,1922,1923,1924],{"name":19,"slug":20,"type":16},{"name":9,"slug":8,"type":16},{"name":14,"slug":15,"type":16},{"name":22,"slug":23,"type":16}]