Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.reposeek.ai/llms.txt

Use this file to discover all available pages before exploring further.

TypeScript

Node.js 18+ includes fetch.
type SearchResponse = {
  request_id: string;
  results: Array<{
    rank: number;
    repo: string;
    url: string;
    score: number;
    summary: string | null;
    stars: number;
    forks: number;
    license: string | null;
  }>;
};

const response = await fetch("https://api.reposeek.ai/v1/search", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.REPOSEEK_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ query: "react admin dashboard with auth and data tables", limit: 3 }),
});

const body = await response.json();

if (!response.ok) {
  console.error(JSON.stringify(body, null, 2));
  process.exit(1);
}

const search = body as SearchResponse;
console.log(JSON.stringify(search, null, 2));
Explore in API Playground Sign in to run this request from your dashboard.