agentsclimarketplace

Alchemy reference architecture

Skill ComeOnOliver/skillshub/skills/jeremylongshore/claude-code-plugins-plus-skills/alchemy-reference-architecture

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.

Install
npx -y skills add ComeOnOliver/skillshub --skill alchemy-reference-architecture

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Implement reference architecture for Alchemy-powered Web3 applications. Use when designing dApp infrastructure, planning multi-chain deployments, or structuring a production blockchain application. Trigger: "alchemy architecture", "dApp architecture", "alchemy project structure", "web3 system design", "alchemy multi-chain design".

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

5.4 KB, 982 tokens by cl100k_base, as published. Nobody here has run it

Alchemy Reference Architecture

System Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     Frontend (React/Next.js)              β”‚
β”‚  - Wallet connection (MetaMask, WalletConnect)           β”‚
β”‚  - Portfolio dashboard                                    β”‚
β”‚  - NFT gallery                                           β”‚
β”‚  - Transaction history                                    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                         β”‚ HTTPS (no API key exposed)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     API Layer (Next.js/Express)           β”‚
β”‚  - /api/balance/:address                                 β”‚
β”‚  - /api/nfts/:owner                                      β”‚
β”‚  - /api/tokens/:address                                  β”‚
β”‚  - /api/transactions/:address                            β”‚
β”‚  - /webhooks/alchemy          (webhook receiver)         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
        β”‚          β”‚          β”‚
   β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β” β”Œβ”€β”€β”€β–Όβ”€β”€β”€β”€β” β”Œβ”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”
   β”‚Alchemy β”‚ β”‚Alchemy β”‚ β”‚Alchemy  β”‚
   β”‚Core APIβ”‚ β”‚NFT API β”‚ β”‚Notify   β”‚
   β”‚(RPC)   β”‚ β”‚        β”‚ β”‚(Webhooksβ”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
   ETH/Polygon/ARB/OP/Base

Project Structure

web3-dapp/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ alchemy/
β”‚   β”‚   β”œβ”€β”€ client-factory.ts    # Multi-chain Alchemy client factory
β”‚   β”‚   β”œβ”€β”€ cache.ts             # Response caching with TTL
β”‚   β”‚   β”œβ”€β”€ throttler.ts         # CU-aware rate limiter
β”‚   β”‚   └── errors.ts            # Error classification
β”‚   β”œβ”€β”€ portfolio/
β”‚   β”‚   β”œβ”€β”€ fetcher.ts           # Wallet portfolio aggregator
β”‚   β”‚   β”œβ”€β”€ transactions.ts      # Transaction history analyzer
β”‚   β”‚   └── multi-chain.ts       # Cross-chain balance aggregator
β”‚   β”œβ”€β”€ nft/
β”‚   β”‚   β”œβ”€β”€ collection.ts        # NFT collection explorer
β”‚   β”‚   β”œβ”€β”€ batch-metadata.ts    # Batch metadata fetcher
β”‚   β”‚   └── verify-ownership.ts  # NFT ownership verification
β”‚   β”œβ”€β”€ contracts/
β”‚   β”‚   β”œβ”€β”€ read-contract.ts     # Smart contract read operations
β”‚   β”‚   └── abis/                # Contract ABI files
β”‚   β”œβ”€β”€ webhooks/
β”‚   β”‚   β”œβ”€β”€ handler.ts           # Webhook endpoint
β”‚   β”‚   β”œβ”€β”€ verify.ts            # HMAC signature verification
β”‚   β”‚   └── event-router.ts      # Event type routing
β”‚   β”œβ”€β”€ security/
β”‚   β”‚   β”œβ”€β”€ validators.ts        # Input validation (addresses, blocks)
β”‚   β”‚   └── proxy.ts             # API key proxy for frontend
β”‚   └── api/                     # API route handlers
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ unit/                    # Unit tests (mocked Alchemy)
β”‚   β”œβ”€β”€ fork/                    # Mainnet fork tests (Hardhat)
β”‚   └── integration/             # Sepolia integration tests
β”œβ”€β”€ contracts/                   # Solidity contracts (if applicable)
β”œβ”€β”€ hardhat.config.ts            # Hardhat + Alchemy fork config
└── package.json

Key Design Decisions

DecisionChoiceRationale
SDKalchemy-sdkOfficial, typed, Enhanced + NFT APIs included
Multi-chainClient factory patternLazy initialization, shared API key
CachingIn-memory with TTL tiersBlock data = 12s, metadata = 24h
Rate limitingBottleneck with CU weightsMatches Alchemy CU budget model
Frontend accessAPI proxyNever expose API key to browser
Real-timeWebSocket subscriptionsLower cost than polling
TestingHardhat mainnet forkReproducible tests with real data

Output

  • Complete project structure for Alchemy-powered dApp
  • Multi-chain architecture with client factory
  • API proxy pattern keeping API key server-side
  • Webhook integration for real-time event processing

Resources

Next Steps

Start with alchemy-install-auth, then follow skills through production deployment.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,984. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.