{"id":13725880,"url":"https://github.com/neondatabase/yc-idea-matcher","last_synced_at":"2025-08-13T13:31:11.632Z","repository":{"id":185800262,"uuid":"674127353","full_name":"neondatabase/yc-idea-matcher","owner":"neondatabase","description":"Submit your idea and get a list of similar ideas that YCombinator has invested in in the past.","archived":false,"fork":false,"pushed_at":"2024-06-15T14:55:02.000Z","size":1835,"stargazers_count":151,"open_issues_count":4,"forks_count":17,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-12-12T19:08:48.000Z","etag":null,"topics":["nextjs","openai","pgvector","postgres","postgresql","redis","serverless","tailwindcss","vercel-deployment"],"latest_commit_sha":null,"homepage":"https://neon.tech/ycmatcher","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neondatabase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-03T07:49:45.000Z","updated_at":"2024-11-14T19:47:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"bba82848-6903-479a-9d95-29d6a59f695f","html_url":"https://github.com/neondatabase/yc-idea-matcher","commit_stats":null,"previous_names":["neondatabase/yc-idea-matcher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neondatabase%2Fyc-idea-matcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neondatabase%2Fyc-idea-matcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neondatabase%2Fyc-idea-matcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neondatabase%2Fyc-idea-matcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neondatabase","download_url":"https://codeload.github.com/neondatabase/yc-idea-matcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229763593,"owners_count":18120482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","openai","pgvector","postgres","postgresql","redis","serverless","tailwindcss","vercel-deployment"],"created_at":"2024-08-03T01:02:38.723Z","updated_at":"2024-12-14T23:08:11.172Z","avatar_url":"https://github.com/neondatabase.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# YC idea matcher\n\n![Screenshot of the app UI](ui.png)\n\nThis project allows you Submit your idea and get a list of similar ideas that YCombinator has invested in before.\n\nThe project is built using the following technologies:\n\n- [Neon](https://neon.tech): Serverless Postgres\n- [pgvector](https://github.com/pgvector/pgvector): open-source Postgres extension for vector storage and similarity search\n- [Neon Serverless Driver](https://github.com/neondatabase/serverless)\n- [Next.js](https://nextjs.org): Fullstack framework for React\n- [Vercel](https://vercel.com): deployment platform\n- [OpenAI API](https://openai.com): generating vector embeddings\n- [TailwindCSS](https://tailwindcss.com): Utility-first CSS framework\n- [Upstash Redis](https://upstash.com): serverless Redis for rate limiting\n- [Zod](https://zod.dev): TypeScript-first schema validation\n- [React Query](https://react-query.tanstack.com): data fetching and caching library\n- [Vaul](https://vaul.emilkowal.ski/): Drawer component for React.\n\n## How the app works\n\nYou will find a script called `generate-embeddings.ts` located in the root directory of this project. After running `npm run generate-embeddings`, the script does the following:\n\n1. It creates the database schema and installs the `pgvector` extension\n2. It goes through the YCombinator API 'https://api.ycombinator.com/v0.1/companies?page=1' and gets all the companies\n3. For each company it generates embeddings using the long description and then stores the company data in the database.\n  \n\u003e Some companies don't have a long description, so we needed to manually remove those from the database by running `delete from companies WHERE embedding = ARRAY[]::real[];`\n\nThe app itself is a Next.js app with an API route located at `/api/idea`. Whenever a user submits an idea, the following happens:\n\n1. The idea is sent to the OpenAI API to generate an embedding\n2. We then use pgvector to retrieve the top 3 most similar ideas\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneondatabase%2Fyc-idea-matcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneondatabase%2Fyc-idea-matcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneondatabase%2Fyc-idea-matcher/lists"}