alchemy-deploy-integration

Featured

Deploy Alchemy-powered Web3 applications to Vercel, Cloud Run, and AWS. Use when deploying dApps with server-side Alchemy SDK access, configuring API key secrets, or setting up RPC proxy endpoints. Trigger: "deploy alchemy", "alchemy Vercel", "alchemy Cloud Run", "alchemy production deploy", "dApp deploy".

DevOps & Infrastructure 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Alchemy Deploy Integration ## Overview Deploy Alchemy-powered dApps with proper API key security. The API key must stay server-side — never ship it to the browser. ## Instructions ### Step 1: Vercel Deployment ```bash # Add Alchemy API key as Vercel secret vercel secrets add alchemy_api_key "your-api-key" vercel link vercel --prod ``` ```json // vercel.json { "env": { "ALCHEMY_API_KEY": "@alchemy_api_key" }, "functions": { "api/**/*.ts": { "maxDuration": 30 } } } ``` ```typescript // api/balance/[address].ts — Vercel serverless function import { Alchemy, Network } from 'alchemy-sdk'; const alchemy = new Alchemy({ apiKey: process.env.ALCHEMY_API_KEY, network: Network.ETH_MAINNET, }); export default async function handler(req: any, res: any) { const { address } = req.query; if (!/^0x[a-fA-F0-9]{40}$/.test(address)) { return res.status(400).json({ error: 'Invalid address' }); } const balance = await alchemy.core.getBalance(address); res.json({ balance: balance.toString() }); } ``` ### Step 2: Cloud Run Deployment ```bash # Build and deploy gcloud builds submit --tag gcr.io/${PROJECT_ID}/alchemy-dapp gcloud run deploy alchemy-dapp \ --image gcr.io/${PROJECT_ID}/alchemy-dapp \ --region us-central1 \ --set-secrets=ALCHEMY_API_KEY=alchemy-api-key:latest \ --allow-unauthenticated ``` ### Step 3: Health Check ```typescript // api/health.ts import { Alchemy, Network } from 'alchemy-sdk'; export default async function handler(_req: any, res:...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category