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: "local-first sync engine for a desktop app",
    limit: 5,
    filters: {
      stars: { min: 1000 },
      forks: { min: 10 },
      license: ["MIT", "Apache-2.0"],
    },
  }),
});

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));
The playground also includes an unfiltered react admin dashboard with auth and data tables example. Explore in API Playground Sign in to run this request from your dashboard.