exa-deploy-integration

Featured

Deploy Exa integrations to Vercel, Docker, and Cloud Run platforms. Use when deploying Exa-powered applications to production, configuring platform-specific secrets, or building search API endpoints. Trigger with phrases like "deploy exa", "exa Vercel", "exa production deploy", "exa Cloud Run", "exa Docker".

DevOps & Infrastructure 2,940 stars 439 forks Updated today 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

# Exa Deploy Integration ## Overview Deploy applications using Exa's neural search API to production. Covers API endpoint creation, secret management per platform, caching for production traffic, and health check endpoints. ## Prerequisites - Exa API key stored in `EXA_API_KEY` environment variable - Application using `exa-js` SDK - Platform CLI installed (vercel, docker, or gcloud) ## Instructions ### Step 1: Vercel Edge Function ```typescript // api/search.ts — Vercel API route import Exa from "exa-js"; export const config = { runtime: "edge" }; export default async function handler(req: Request) { if (req.method !== "POST") { return new Response("Method not allowed", { status: 405 }); } const exa = new Exa(process.env.EXA_API_KEY!); const { query, numResults = 5 } = await req.json(); if (!query || typeof query !== "string") { return Response.json({ error: "query is required" }, { status: 400 }); } try { const results = await exa.searchAndContents(query, { type: "auto", numResults: Math.min(numResults, 20), text: { maxCharacters: 1000 }, highlights: { maxCharacters: 300, query }, }); return Response.json({ results: results.results.map(r => ({ title: r.title, url: r.url, score: r.score, snippet: r.text?.substring(0, 300), highlights: r.highlights, })), }); } catch (err: any) { const status = err.status || 500; return Response.json( { err...

Details

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

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category