Skip to content

Discover existing open source projects 10x faster using AI search. This project leverages Vercel AI SDK, OpenAI & Tavily REST API to analyze Github search results and repo contents to find the best repo for your needs. Simply type a prompt and find projects to get started.

cameronking4/github-repo-tavily-ai-search

Repository files navigation

Open Source Project Finder

Tavily AI-search for Github repositories

screenrun-05-11-2024-20-38-17

Here lives the code for an AI-powered search engine to find the best github repo to start your project. Use Tavily AI API to retrieve, score and analyze search results from Github. Find the perfect starter template simply by searching "Next.js shadcn dashboard". Results are rendered beautifully with Vercel AI SDK Generative UI.

🧱 Stack (Adapted from Next.js Morphic template)

🚀 Quickstart

Recording.2024-05-11.182026.mp4

1. Fork and Clone repo

Fork the repo to your Github account

2. Install dependencies

pnpm i 
pnpm dev

3. Setting up Upstash Redis

Follow the guide below to set up Upstash Redis. Create a database and obtain UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN. Refer to the Upstash guide for instructions on how to proceed.

4. Fill out secrets

cp .env.local.example .env.local

Your .env.local file should look like this:

# OpenAI API key retrieved here: https://platform.openai.com/api-keys
OPENAI_API_KEY=

# Tavily API Key retrieved here: https://app.tavily.com/home
TAVILY_API_KEY=

# Upstash Redis URL and Token retrieved here: https://console.upstash.com/redis
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=

_Note: This project focuses on Generative UI and requires complex output from LLMs. Currently, it's assumed that the official OpenAI models will be used. Although it's possible to set up other models, if you use an OpenAI-compatible model, but we don't guarantee that it'll work.

About

Discover existing open source projects 10x faster using AI search. This project leverages Vercel AI SDK, OpenAI & Tavily REST API to analyze Github search results and repo contents to find the best repo for your needs. Simply type a prompt and find projects to get started.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages