MCPcopy Index your code
hub / github.com/vercel/examples

github.com/vercel/examples @main sqlite

repository ↗ · DeepWiki ↗
3,224 symbols 8,835 edges 2,395 files 119 documented · 4%
README

Vercel Examples

  • Solutions – Demos, reference architecture, and best practices
  • Starter – Functional applications which can act as a starting point
  • And more!

Vercel Templates

Multiple examples are being featured in Vercel's Templates, visit that page for more advanced filtering options.

For Vercelians

Examples that have front matter metadata will create a new Draft template in Contentful, for more steps on how to publish a template, read Publishing Templates.

Adding a new example

To quickly start contributing with a new example, run the following commands:

pnpm i
pnpm new-example

If the script above isn't used, make sure the example complies with the following:

Adding a template

If you would like the example to be featured in vercel.com/templates then also add the front matter metadata to the top of the readme, like in bot-protection-datadome. To know all the possible values for each metadata take a look at internal/fields.json.

If you want to add related templates to your template, copy the slug from the other template into the relatedTemplates field, for example for vercel.com/templates/next.js/monorepo-turborepo the slug is monorepo-turborepo, as written in solutions/monorepo/README.md

The pre-commit hook

We use Husky to manage the pre-commit Git hook in this repo. Husky configures hooks automatically during install, so you don't need to do anything special to get them working, but if it fails to install, you can run the following command to install it manually:

pnpm run prepare

Code changes automatically go through Prettier and ESLint when you make a commit, please do not skip these steps unless they're broken and in that case let us known by creating an issue.

Read the Docs

If you have any questions or suggestions about the docs, feel free to open a discussion, or submit a PR with your suggestions!

Provide Feedback

  • Start a Discussion with a question, piece of feedback, or idea you want to share with the team.
  • Open an Issue if you believe you've encountered a bug that you want to flag for the team.

Extension points exported contracts — how you extend this code

ChatStore (Interface)
(no doc) [4 implementers]
websockets/next-chat/lib/chat/store/types.ts
ServiceConfig (Interface)
* The configuration that can be used by the API to create mocks
solutions/testing/packages/playwright/integration/utils/types.ts
Env (Interface)
* Declare expected Env parameter in fetch handler.
framework-boilerplates/hydrogen-2/remix.env.d.ts
CartItem (Interface)
(no doc)
flags-sdk/openfeature/components/utils/cart-types.ts
CartItem (Interface)
(no doc)
flags-sdk/experimentation-statsig/components/utils/cart-types.ts
CartItem (Interface)
(no doc)
flags-sdk/launchdarkly/components/utils/cart-types.ts
CartItem (Interface)
(no doc)
flags-sdk/growthbook/components/utils/cart-types.ts
CartItem (Interface)
(no doc)
flags-sdk/flagsmith/components/utils/cart-types.ts

Core symbols most depended-on inside this repo

fetch
called by 161
framework-boilerplates/hydrogen-2/server.ts
set
called by 125
framework-boilerplates/hydrogen-2/server.ts
get
called by 77
framework-boilerplates/hydrogen-2/server.ts
toString
called by 54
framework-boilerplates/sveltekit-1/src/routes/sverdle/game.ts
cn
called by 44
solutions/saas-microservices/apps/dashboard/src/lib/utils.ts
getLayout
called by 43
internal/packages/ui/src/layout.tsx
cn
called by 41
microfrontends/saas-microservices/apps/dashboard/src/lib/utils.ts
cn
called by 41
guides/sandbox-voice-agent/lib/utils.ts

Shape

Function 2,618
Interface 277
Method 130
Class 124
Route 58
Struct 13
Enum 3
TypeAlias 1

Languages

TypeScript91%
Python7%
Go2%

Modules by API surface

flags-sdk/hypertune/generated/hypertune.ts18 symbols
framework-boilerplates/hydrogen-2/app/components/Search.tsx16 symbols
python/celery/main.py15 symbols
framework-boilerplates/hydrogen/src/lib/utils.ts15 symbols
python/vibe-coding-ide/frontend/src/lib/persistence.ts14 symbols
websockets/nuxt/app/composables/useRealtime.ts13 symbols
framework-boilerplates/hydrogen/src/components/elements/Icon.tsx13 symbols
framework-boilerplates/hydrogen-2/server.ts13 symbols
framework-boilerplates/hydrogen-2/app/components/Cart.tsx13 symbols
websockets/nitro/app/hooks/use-realtime.ts12 symbols
websockets/next-chat/lib/chat/index.ts12 symbols
python/vibe-coding-ide/backend/src/run_store.py12 symbols

Dependencies from manifests, versioned

github.com/chromedp/cdprotov0.0.0-2024102223472 · 1×
github.com/chromedp/sysutilv1.1.0 · 1×
github.com/cloudwego/base64xv0.1.4 · 1×
github.com/cloudwego/iasmv0.2.0 · 1×
github.com/gin-contrib/ssev0.1.0 · 1×
github.com/go-playground/localesv0.14.1 · 1×
github.com/go-playground/universal-translatorv0.18.1 · 1×

Datastores touched

(mongodb)Database · 1 repos

For agents

$ claude mcp add examples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact