examples / websocket
AGENTS.md5.2k starsChanged 10 months agoMITView on GitHub
These defaults are optimized for AI coding agents (and humans) working on apps that deploy to Vercel. - Treat Vercel Functions as stateless + ephemeral (no durable RAM/FS, no background daemons), use Blob or marketplace integrations for preserving state - Edge Functions (standalone) are deprecated; prefer Vercel Functions - Don't start new projects on Vercel KV/Postgres (both discontinued); use Marketplace Redis/Postgres instead - Store secrets in Vercel Env Variables; not in git or NEXT_PUBLIC_* - Provision Marketplace native integrations with…
- Reads credentials
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about vercel/examples
- @github-trending-js.bsky.social“📦 vercel / examples ⭐ 4,129 (+67) 🗒 TypeScript Enjoy our curated collection of examples and solutions. …”Bluesky · Sep 9, 2025 · 1 likes
- @github-trending.bsky.social“📦 vercel / examples ⭐ 4,129 (+67) 🗒 TypeScript Enjoy our curated collection of examples and solutions. …”Bluesky · Sep 9, 2025 · 1 likes
- @dailygithubtrends.bsky.social“今日のGitHubトレンド vercel/examples このリポジトリは、Vercelが提供する公式テンプレート集です。 …”Bluesky · Sep 9, 2025 · 1 likes
- @github-trending-js.bsky.social“📦 vercel / examples ⭐ 3,949 (+32) 🗒 TypeScript Enjoy our curated collection of examples and solutions. …”Bluesky · Aug 9, 2025 · 1 likes
- A Hacker News story“Vercel Edge Functions are being deprecated”Hacker News · May 19, 2025 · 1 points
The biggest 5 of 6 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 6
Talked about on Bluesky and Hacker News (6 times).
On Bluesky · 4
- Sep 9, 2025📦 vercel / examples ⭐ 4,129 (+67) 🗒 TypeScript Enjoy our curated collection of examples and solutions. Use these patterns to build your… — @github-trending-js.bsky.social1 likes and repost
- Sep 9, 2025📦 vercel / examples ⭐ 4,129 (+67) 🗒 TypeScript Enjoy our curated collection of examples and solutions. Use these patterns to build your… — @github-trending.bsky.social1 likes and repost
- Sep 9, 2025今日のGitHubトレンド vercel/examples このリポジトリは、Vercelが提供する公式テンプレート集です。 vercel.com/templatesで公開される多様なアプリケーション例やソリューションを管理し、ユーザーに提供することを主な目的としています。… — @dailygithubtrends.bsky.social1 likes and repost
- Aug 9, 2025📦 vercel / examples ⭐ 3,949 (+32) 🗒 TypeScript Enjoy our curated collection of examples and solutions. Use these patterns to build your… — @github-trending-js.bsky.social1 likes and repost
On Hacker News · 2
- May 19, 2025Vercel Edge Functions are being deprecated1 point
- Oct 26, 2021Next.js Edge, Rate Limiting at Edge1 point
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- rust/wait-until/AGENTS.mdAGENTS.md
- websockets/next-chat/AGENTS.mdAGENTS.md
- starter/cms-sanity-graphql-fragments/CLAUDE.mdCLAUDE.md
- websockets/next-chat/CLAUDE.mdCLAUDE.md
- web-design-guidelinesSkill
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 1 is common, 5 are distinctive, and 3 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Treat Vercel Functions as stateless + ephemeral (no durable RAM/FS, no background daemons), use Blob or marketplace integrations for …
- Distinctive: line 9
Don't start new projects on Vercel KV/Postgres (both discontinued).
- Very specific: line 13
Use waitUntil for post-response work.
- Distinctive: line 16
Use Runtime Cache for fast regional caching + tag invalidation (don't treat it as global KV)
- Distinctive: line 17
Use Cron Jobs for schedules.
- Distinctive: line 18
Use Vercel Blob for uploads/media.
- Common: line 19
If Enable Deployment Protection is enabled, use a bypass secret to directly access them
- Very specific: line 20
Add OpenTelemetry via @vercel/otel on Node.
- Very specific: line 22
Use AI Gateway for model routing, set AI_GATEWAY_API_KEY, using a model string (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- VERCEL BEST PRACTICES START -->Best practices for developing on Vercel
These defaults are optimized for AI coding agents (and humans) working on apps that deploy to Vercel.
- Treat Vercel Functions as stateless + ephemeral (no durable RAM/FS, no background daemons), use Blob or marketplace integrations for preserving state
- Edge Functions (standalone) are deprecated; prefer Vercel Functions
- Don't start new projects on Vercel KV/Postgres (both discontinued); use Marketplace Redis/Postgres instead
- Store secrets in Vercel Env Variables; not in git or
NEXT_PUBLIC_* - Provision Marketplace native integrations with
vercel integration add(CI/agent-friendly) - Sync env + project settings with
vercel env pull/vercel pullwhen you need local/offline parity - Use
waitUntilfor post-response work; avoid the deprecated Functioncontextparameter - Set Function regions near your primary data source; avoid cross-region DB/service roundtrips
- Tune Fluid Compute knobs (e.g.,
maxDuration, memory/CPU) for long I/O-heavy calls (LLMs, APIs) - Use Runtime Cache for fast regional caching + tag invalidation (don't treat it as global KV)
- Use Cron Jobs for schedules; cron runs in UTC and triggers your production URL via HTTP GET
- Use Vercel Blob for uploads/media; Use Global Config for small, globally-read config
- If Enable Deployment Protection is enabled, use a bypass secret to directly access them
- Add OpenTelemetry via
@vercel/otelon Node; don't expect OTEL support on the Edge runtime - Enable Web Analytics + Speed Insights early
- Use AI Gateway for model routing, set AI_GATEWAY_API_KEY, using a model string (e.g. 'anthropic/claude-sonnet-4.6'), Gateway is already default in AI SDK needed. Always curl https://ai-gateway.vercel.sh/v1/models first; never trust model IDs from memory
- For durable agent loops or untrusted code: use Workflow (pause/resume/state) + Sandbox; use Vercel MCP for secure infra access
<!-- VERCEL BEST PRACTICES END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

