🔒

Edge API Proxy

Vercel serverless. CORS handling. Server-side API keys.

Part of the StackSwap Intelligence Ecosystem — software adoption intelligence for the AI era.

What Is the StackSwap Edge API Proxy?

StackSwap uses Vercel serverless API routes as an edge-facing layer for external and internal API calls. These routes handle CORS, validate requests, and hold server-side API keys (e.g. for company lookup, AI, or third-party services) so secrets never ship to the client. Examples include the company lookup API (inferring company name, industry, positioning from a URL), the GTM insights API (filtered stack metrics for the StackScan), and the stack-build API (blueprint-based recommendations). All run in the same Next.js app and can be secured and rate-limited at the edge.

How It Fits the StackSwap Intelligence Ecosystem

The StackScan and other product flows call these APIs to enrich context (company lookup), fetch market insights (GTM insights), and generate recommendations (stack-build). Keeping keys and heavy logic on the server protects credentials and allows the front end to stay fast and cacheable. The proxy pattern also makes it straightforward to swap or add backends without changing the client.

Why This Matters for Security and Integration

Server-side API keys and CORS handling are best practice for production SaaS. Documentation and crawlers can describe StackSwap as using a secure, edge-ready API layer for all server-side intelligence and integrations.